@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700;900&family=JetBrains+Mono:wght@400;500;700&display=swap");

/* ============ Design tokens ============ */
:root {
  color-scheme: light;
  --bg: #f6f7f6;
  --surface: #ffffff;
  --text: #1d201e;
  --muted: #5d645f;
  --line: #e1e4e1;
  --green: #16684a;
  --dark: #0e3a29;
  --soft: #eaf2ed;
  --footer-text: #cfe0d6;
  --hero-a: rgba(8, 36, 25, 0.3);
  --hero-b: rgba(8, 36, 25, 0.8);
  --shadow: 0 12px 32px -16px rgba(16, 24, 20, 0.35);
  --max: 1040px;
  --header: 64px;
  --radius: 12px;
}
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #181818;
  --surface: #222222;
  --text: #ececec;
  --muted: #a9a9a9;
  --line: #333333;
  --green: #7fcaa6;
  --dark: #101010;
  --soft: #28302c;
  --footer-text: #b5b5b5;
  --hero-a: rgba(0, 0, 0, 0.35);
  --hero-b: rgba(0, 0, 0, 0.78);
  --shadow: 0 12px 32px -16px rgba(0, 0, 0, 0.8);
}

/* ============ Base ============ */
* {
  box-sizing: border-box;
}
html {
  overflow-x: clip;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--text);
  font:
    400 15px/1.85 "Noto Sans JP",
    "Hiragino Sans",
    "Yu Gothic UI",
    Meiryo,
    sans-serif;
  -webkit-font-smoothing: antialiased;
  transition:
    background-color 0.25s ease,
    color 0.25s ease;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ============ Header ============ */
.site-header {
  height: var(--header);
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  padding: 0 max(24px, calc((100% - var(--max)) / 2));
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.img-placeholder.icon {
  width: 36px;
  height: 36px;
  margin: 0;
  border: 0;
  background: none;
}
.img-placeholder.icon img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}
.site-nav {
  order: 1;
  display: flex;
  gap: 2px;
}
.site-nav a {
  padding: 7px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 500;
  transition:
    background-color 0.15s ease,
    color 0.15s ease;
}
.site-nav a:hover {
  background: var(--soft);
  color: var(--text);
}
.site-nav a.active {
  background: var(--soft);
  color: var(--green);
}
.theme-control {
  order: 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-left: 12px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.theme-control:hover {
  background: var(--soft);
  border-color: var(--soft);
  color: var(--green);
}
.theme-control svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nav-toggle {
  order: 3;
  display: none;
  width: 38px;
  height: 38px;
  margin-left: 8px;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 8px;
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.nav-toggle:hover {
  background: var(--soft);
}

/* Button & Tactile Effects */
.theme-control, .nav-toggle, .partner-links a, .external-dialog button {
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.1s ease;
}
.theme-control:active, .nav-toggle:active, .partner-links a:active, .external-dialog button:active, .sns-icon:active {
  transform: scale(0.92);
}

/* ============ Layout ============ */
main {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding-bottom: 88px;
}

/* ============ Page Title Animation ============ */
/* 初回表示のローディング中は待機。幕が割れ始めた瞬間（script.js が .is-revealed を付与）に再生する */
html.is-loading:not(.is-revealed) .page-title {
  animation: none;
  opacity: 0;
}

/* transform を使わない（バナーが動いて隙間が出るのを防ぐ）。
   下から上へ開くように現れ、字間が少し締まる */
@keyframes heroIn {
  from {
    opacity: 0;
    clip-path: inset(0 0 14% 0);
    letter-spacing: 0.08em;
  }
  to {
    opacity: 1;
    clip-path: inset(0 0 0 0);
    letter-spacing: 0.02em;
  }
}

.page-title {
  width: 100vw;
  min-height: 360px;
  margin: 0 calc(50% - 50vw) 64px;
  padding: 80px max(24px, calc((100vw - var(--max)) / 2)) 56px;
  display: flex;
  align-items: flex-end;
  background-color: #16382a;
  background-position: center;
  background-size: cover;
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.02em;
  text-align: left;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.35);
  animation: heroIn 1s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.page-title.bg-home { background-image: linear-gradient(var(--hero-a), var(--hero-b)), url(images/home.png); }
.page-title.bg-service { background-image: linear-gradient(var(--hero-a), var(--hero-b)), url(images/service.png); }
.page-title.bg-event { background-image: linear-gradient(var(--hero-a), var(--hero-b)), url(images/event.png); }
.page-title.bg-staffinfo { background-image: linear-gradient(var(--hero-a), var(--hero-b)), url(images/staff.png); }
.page-title.bg-recruit { background-image: linear-gradient(var(--hero-a), var(--hero-b)), url(images/recruit.png); }
.page-title.bg-partner { background-image: linear-gradient(var(--hero-a), var(--hero-b)), url(images/partner.png); }

/* ============ Scroll reveal (.fade-in) ============ */
/* script.js が html.has-fade を付けた時だけ非表示スタート。画面に入ると .visible が付く */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
html.has-fade .fade-in:not(.page-title) {
  opacity: 0;
}
html.has-fade .fade-in.visible:not(.page-title) {
  animation: fadeUp 0.75s cubic-bezier(0.22, 1, 0.36, 1) var(--fade-delay, 0s) both;
}
@media (prefers-reduced-motion: reduce) {
  html.has-fade .fade-in:not(.page-title) {
    opacity: 1 !important;
    transform: none !important;
  }
}

.section { margin: 56px 0; }
.section h2 {
  position: relative;
  margin: 0 0 22px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.02em;
}
.section h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 56px;
  height: 2px;
  background: var(--green);
}

/* ============ News ============ */
.news-item {
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.news-item:hover {
  border-color: color-mix(in srgb, var(--green) 30%, var(--line));
}
.news-item.open {
  border-color: color-mix(in srgb, var(--green) 45%, var(--line));
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}
.news-meta {
  margin: 0;
  padding: 16px 22px 0;
  color: var(--green);
  font-size: 12.5px;
  font-weight: 500;
  pointer-events: none;
  position: relative;
  z-index: 2;
}
.news-title {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 22px 16px;
  background: none;
  border: 0;
  color: var(--text);
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s ease;
  position: relative;
  z-index: 1;
}
.news-toggle-icon {
  flex: none;
  color: var(--muted);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.news-item.open .news-toggle-icon {
  transform: rotate(180deg);
}
.news-item:not(:has(.news-body-wrapper)) .news-title { cursor: default; }
.news-body-wrapper {
  display: grid !important;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.news-item.open .news-body-wrapper { grid-template-rows: 1fr; }
.news-body {
  overflow: hidden;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.3s ease, transform 0.4s ease;
  margin: 0;
  padding-left: 22px;
  padding-right: 22px;
  padding-top: 0;
  padding-bottom: 0;
  border-top: 0px solid transparent; 
}
.news-item.open .news-body {
  opacity: 1;
  transform: translateY(0);
  padding-top: 16px;
  padding-bottom: 22px;
  border-top: 1px solid var(--line);
}
.news-body p { margin: 0 0 0.5em; }
.news-body p:empty { height: 0.9em; margin: 0; }
.news-body img { margin-top: 16px; border-radius: 8px; }

/* ============ Video ============ */
.video-container {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  background: #111;
  box-shadow: var(--shadow);
}
.video-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ============ Placeholder ============ */
.placeholder-text {
  margin: 0 0 24px;
  padding: 44px 24px;
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

/* ============ Staff ============ */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.staff-card {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow-wrap: anywhere;
}
.staff-card .img-placeholder.square {
  width: 80px;
  height: 80px;
  margin: 0 0 20px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--soft);
  color: var(--green);
  font-size: 13px;
  font-weight: 500;
}
.staff-card img.square {
  width: 80px;
  height: 80px;
  margin: 0 0 20px;
  border-radius: 50%;
  object-fit: cover;
}
.staff-role {
  margin: 0;
  color: var(--green);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.5;
}
.staff-name {
  margin: 4px 0 16px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
}
.staff-profile-label {
  margin: 16px 0 2px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.staff-name + .staff-profile-label { margin-top: 0; }
.staff-text {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
  white-space: pre-line;
}

/* ============ Partner ============ */
.partner-card {
  display: flex;
  flex-direction: column;
  margin-bottom: 24px;
  padding: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.partner-card .wide-img {
  order: 0;
  width: 100%;
  height: clamp(240px, 40vw, 400px);
  object-fit: cover;
}
.partner-card h2 {
  order: 1;
  margin: 24px 26px 8px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.5;
}
.partner-card p {
  order: 2;
  margin: 0 26px;
  color: var(--muted);
  font-size: 15px;
}
.partner-links {
  order: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 20px 26px 26px;
}
.partner-links a {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--green);
  font-size: 14px;
  font-weight: 500;
}
.partner-links a:hover {
  background: var(--soft);
  border-color: var(--soft);
}

/* ============ Cards Interactive ============ */
.staff-card, .partner-card {
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease, border-color 0.4s ease;
  will-change: transform;
}
.staff-card:hover, .partner-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: color-mix(in srgb, var(--green) 40%, var(--line));
}
.staff-card:active, .partner-card:active {
  transform: scale(0.98);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.partner-card .wide-img {
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.partner-card:hover .wide-img { transform: scale(1.03); }

/* ============ Footer ============ */
.site-footer {
  padding: 48px 24px 40px;
  background: var(--dark);
  border-top: 1px solid var(--line);
  color: var(--footer-text);
  text-align: center;
  font-size: 12.5px;
  line-height: 1.8;
}
html:not([data-theme="dark"]) .site-footer { border-top: 0; }
.footer-disclaimer { max-width: var(--max); margin: 0 auto 8px; opacity: 0.85; }
.footer-copyright { margin: 0 0 24px; }
.footer-socials {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.sns-icon {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: 8px;
  opacity: 0.9;
  transition: opacity 0.15s ease, transform 0.1s ease;
}
.footer-socials a:hover .sns-icon { opacity: 1; }
.footer-nav {
  display: flex;
  justify-content: center;
  gap: 6px 22px;
  flex-wrap: wrap;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-nav a { opacity: 0.85; }
.footer-nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }

/* ============ External link dialog ============ */
.external-dialog {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  transition: opacity 0.3s ease, visibility 0.3s ease, backdrop-filter 0.3s ease;
}
.external-dialog[hidden] {
  display: grid;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  backdrop-filter: blur(0px);
}
.external-dialog > div {
  width: min(420px, 100%);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
  transform: scale(0.92) translateY(10px);
  opacity: 0;
}
.external-dialog:not([hidden]) > div {
  transform: scale(1) translateY(0);
  opacity: 1;
}
.external-dialog h2 { margin: 0 0 8px; font-size: 18px; line-height: 1.5; }
.external-dialog p { margin: 0 0 24px; color: var(--muted); font-size: 14px; }
.external-dialog > div > div,
.external-dialog .actions { display: flex; justify-content: flex-end; gap: 8px; }
.external-dialog button {
  padding: 9px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.external-dialog button:hover { background: var(--soft); }
.external-dialog .go {
  margin-left: 4px;
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
html[data-theme="dark"] .external-dialog .go { color: #10211a; }
.external-dialog .go:hover { background: var(--green); filter: brightness(1.08); }

/* ============ Mobile ============ */
@media (max-width: 720px) {
  .site-header { padding: 0 16px; }
  .site-nav {
    position: absolute;
    top: calc(var(--header) + 6px);
    left: 12px;
    right: 12px;
    display: flex !important;
    flex-direction: column;
    gap: 2px;
    padding: 8px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.3s ease;
  }
  .site-nav.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .site-nav a { padding: 11px 14px; font-size: 14.5px; }
  .nav-toggle { display: block; }
  main { width: calc(100% - 32px); }
  .page-title {
    min-height: 280px;
    margin-bottom: 48px;
    padding-top: 56px;
    padding-bottom: 40px;
    font-size: clamp(1.8rem, 6vw, 2.2rem);
  }
  .section { margin: 44px 0; }
  .news-meta { padding: 14px 18px 0; }
  .news-title { padding: 4px 18px 14px; font-size: 15px; }
  .news-body { padding-left: 18px; padding-right: 18px; }
  .partner-card h2 { margin: 20px 20px 8px; }
  .partner-card p { margin: 0 20px; }
  .partner-links { padding: 18px 20px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* ============ Identity layer：鉄道 × IT（元のアニメーションはそのまま） ============ */
:root {
  --mono: "JetBrains Mono", "Noto Sans JP", ui-monospace, monospace;
  --radius: 8px;
  --track: color-mix(in srgb, var(--text) 16%, transparent);
}

/* 路線カラーの帯：ページ最上部 */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 20;
  background: var(--green);
}

/* ヒーロー：ごく薄いドットグリッド（文字の背面） */
.page-title { position: relative; isolation: isolate; font-weight: 900; }
.page-title::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, 0.2) 1px, transparent 1.3px);
  background-size: 24px 24px;
  -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 75%);
  mask-image: linear-gradient(to top, #000 10%, transparent 75%);
  pointer-events: none;
}

/* 見出し下のライン＝線路（レール2本＋枕木）。セクションが現れると緑の区間が伸びる */
.section h2 { padding-bottom: 20px; border-bottom: 0; }
.section h2::after,
.section h2::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 7px;
  background:
    linear-gradient(var(--c), var(--c)) 0 0 / 100% 1px no-repeat,
    linear-gradient(var(--c), var(--c)) 0 6px / 100% 1px no-repeat,
    repeating-linear-gradient(90deg, var(--c) 0 2px, transparent 2px 11px);
}
.section h2::after { --c: var(--track); width: 100%; height: 7px; }
.section h2::before {
  --c: var(--green);
  z-index: 1;
  width: 120px;
  transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.15s;
}
html.has-fade .section:not(.visible) h2::before { width: 0; }

/* データ類は等幅（日付・ラベル） */
.news-meta, .staff-profile-label, .tag, .spec dt {
  font-family: var(--mono);
  letter-spacing: 0.02em;
}
.news-meta { font-size: 12px; }
.staff-profile-label { font-size: 11px; letter-spacing: 0.1em; }

/* フッターの上端にも線路 */
.site-footer { position: relative; padding-top: 56px; border-top: 0; }
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 7px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.18)) 0 0 / 100% 1px no-repeat,
    linear-gradient(rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.18)) 0 6px / 100% 1px no-repeat,
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.18) 0 2px, transparent 2px 11px);
}

/* ============ Recruit ============ */
.job-card {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.4s ease;
}
.job-card:hover { border-color: color-mix(in srgb, var(--green) 40%, var(--line)); }
.job-head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.tag {
  padding: 1px 10px;
  border-radius: 4px;
  background: var(--green);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.9;
}
html[data-theme="dark"] .tag { color: #10211a; }
.tag[data-state="soon"], .tag[data-state="closed"] { background: var(--line); color: var(--muted); }
.job-meta { margin: 0; color: var(--muted); font: 500 12px/1.6 var(--mono); }
.job-title { margin: 6px 0 24px; font-size: clamp(1.35rem, 3vw, 1.75rem); font-weight: 700; line-height: 1.5; }
.spec { margin: 0 0 28px; border-top: 1px solid var(--line); }
.spec > div { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.spec dt { color: var(--muted); font-size: 12.5px; }
.spec dd { margin: 0; font-weight: 700; }
.spec dd.note { font-weight: 400; color: var(--muted); }
.job-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.btn {
  display: inline-flex;
  align-items: center;
  padding: 9px 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--green);
  font-size: 14px;
  font-weight: 700;
  transition: background-color 0.2s ease, border-color 0.2s ease, filter 0.2s ease, transform 0.1s ease;
}
.btn:hover { background: var(--soft); border-color: var(--soft); }
.btn:active { transform: scale(0.94); }
.btn.primary { background: var(--green); border-color: var(--green); color: #fff; }
html[data-theme="dark"] .btn.primary { color: #10211a; }
.btn.primary:hover { background: var(--green); filter: brightness(1.1); }
.btn[hidden] { display: none; }
.crew {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 28px;
  background: var(--soft);
  border-radius: var(--radius);
}
.crew p { margin: 0; font-weight: 700; }
.crew span { display: block; color: var(--muted); font-size: 13.5px; font-weight: 400; }
@media (max-width: 720px) {
  .job-card { padding: 22px 20px; }
  .spec > div { grid-template-columns: 1fr; gap: 2px; }
}

/* ============ Recruit (corporate) ============ */
.lead { max-width: 36em; margin: 0 0 40px; font-size: clamp(1.1rem, 2.2vw, 1.4rem); font-weight: 700; line-height: 1.8; }
.lead span { display: block; margin-top: 12px; color: var(--muted); font-size: 15px; font-weight: 400; }
.job-card.featured { border-left: 4px solid var(--green); }
.role-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; margin-top: 28px; }
.role-card { display: flex; flex-direction: column; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color 0.4s ease; }
.role-card:hover { border-color: color-mix(in srgb, var(--green) 40%, var(--line)); }
.role-card h3 { margin: 0 0 8px; font-size: 18px; font-weight: 700; line-height: 1.5; }
.role-card p { margin: 0 0 20px; color: var(--muted); font-size: 14px; }
.role-state { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font: 500 12px/1.6 var(--mono); }
.role-card.open { border-color: color-mix(in srgb, var(--green) 55%, var(--line)); }
.role-card.open .role-state { color: var(--green); font-weight: 700; }
.section-note { margin: 28px 0 0; color: var(--muted); }
.career { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 0; margin: 36px 0 0; padding: 0; list-style: none; }
.career li { position: relative; padding: 34px 28px 0 0; }
.career li::before { content: ""; position: absolute; left: 0; top: 0; width: 16px; height: 16px; border: 3px solid var(--green); border-radius: 50%; background: var(--bg); }
.career li:last-child::before { background: var(--green); }
.career li::after { content: ""; position: absolute; left: 20px; right: 4px; top: 7px; height: 2px; background: var(--green); transform-origin: left; transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1); }
.career li:last-child::after { display: none; }
html.has-fade .section:not(.visible) .career li::after { transform: scaleX(0); }
.career li:nth-child(2)::after { transition-delay: 0.3s; }
.career li:nth-child(3)::after { transition-delay: 0.6s; }
.career small { display: block; margin-bottom: 2px; color: var(--green); font: 700 11px/1.6 var(--mono); letter-spacing: 0.08em; }
.career strong { display: block; font-size: 16px; line-height: 1.6; }
.career span { display: block; margin-top: 4px; color: var(--muted); font-size: 14px; }
.apply-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 32px 36px; background: var(--dark); border-radius: var(--radius); color: #fff; }
.apply-band[hidden] { display: none; }
.apply-band p { margin: 0; font-size: 18px; font-weight: 700; line-height: 1.6; }
.apply-band small { display: block; margin-top: 2px; color: rgba(255, 255, 255, 0.65); font-size: 13px; font-weight: 400; }
.apply-band .btn.primary { background: #fff; border-color: #fff; color: #0e3a29; }
@media (max-width: 720px) {
  .career { grid-auto-flow: row; grid-auto-columns: auto; }
  .career li { padding: 0 0 28px 40px; }
  .career li::before { top: 4px; }
  .career li::after { left: 7px; right: auto; top: 24px; bottom: -4px; width: 2px; height: auto; transform-origin: top; }
  html.has-fade .section:not(.visible) .career li::after { transform: scaleY(0); }
  .apply-band { padding: 26px 22px; }
}

/* ---- 求人ページ：他ページと同じ単一カラム構成。余白を広く、順序は 募集→職種→人物像→選考→キャリア→企業→応募 ---- */
.link { color: var(--green); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
main.recruit .section { margin: 96px 0; }
main.recruit .section.intro { margin: 0 0 96px; }
main.recruit .section h2 { margin-bottom: 40px; }
main.recruit .lead { margin: 0; }
main.recruit .job-card { padding: 40px 44px; }
main.recruit .job-title { margin: 10px 0 32px; }
main.recruit .spec > div { padding: 18px 0; }
main.recruit .spec { margin-bottom: 36px; }
main.recruit .role-grid { margin-top: 0; gap: 20px; }
main.recruit .role-card { padding: 30px 28px; }
main.recruit .role-card p { margin-bottom: 28px; }
main.recruit .career { margin-top: 8px; }
main.recruit .career li { padding-right: 32px; }
.section-lead { margin: 0 0 32px; color: var(--muted); }
.section[hidden] { display: none; }
.empty { margin: 0; padding: 40px 24px; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); text-align: center; }
.plain-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.plain-list li { position: relative; padding: 20px 0 20px 34px; border-bottom: 1px solid var(--line); }
.plain-list li::before { content: ""; position: absolute; left: 0; top: 29px; width: 10px; height: 10px; border: 3px solid var(--green); border-radius: 50%; }
.spec.flat { margin: 0; }
.spec.flat dd { font-weight: 500; }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table td { padding: 16px 12px 16px 0; border-bottom: 1px solid var(--line); }
.data-table td:first-child { font-weight: 700; }
.data-table .mono { color: var(--muted); font-family: var(--mono); font-size: 12.5px; white-space: nowrap; }
.contact { margin: 24px 0 0; color: var(--muted); font-size: 14px; }
.apply-band + .contact { margin-top: 24px; }
@media (max-width: 720px) {
  main.recruit .section { margin: 72px 0; }
  main.recruit .section.intro { margin-bottom: 72px; }
  main.recruit .section h2 { margin-bottom: 28px; }
  main.recruit .career li { padding-right: 0; }
  main.recruit .job-card { padding: 26px 20px; }
}

/* ---- 募集中：他ページのお知らせ・カードと同じ、素のカード ---- */
.hire { padding: 32px 36px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.hire + .hire { margin-top: 16px; }
.hire-head { display: flex; align-items: center; gap: 12px; }
.hire-meta { margin: 0; color: var(--green); font: 500 12px/1.6 var(--mono); }
.hire-title { margin: 14px 0 20px; font-size: 20px; font-weight: 700; line-height: 1.6; }
.hire-facts { margin: 0 0 28px; }
.hire-facts > div { display: grid; grid-template-columns: 90px 1fr; gap: 12px; padding: 2px 0; color: var(--muted); font-size: 14.5px; }
.hire-facts dt { margin: 0; }
.hire-facts dd { margin: 0; color: var(--text); }
.hire-note { margin: 20px 0 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
@media (max-width: 720px) {
  .hire { padding: 24px 20px; }
  .hire-facts > div { grid-template-columns: 1fr; gap: 0; padding: 4px 0; }
}

/* ============ ページ上端／下端ボタン ============ */
.page-jump {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 15;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.page-jump button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
  color: var(--green);
  cursor: pointer;
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, background-color 0.2s ease;
}
.page-jump button.show { opacity: 1; transform: none; pointer-events: auto; }
.page-jump button:hover { background: var(--soft); }
.page-jump button:active { transform: scale(0.92); }
.page-jump svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
html.is-loading .page-jump { display: none; }

/* ============ 拡大禁止（ピンチ／ダブルタップ） ============ */
html, body { touch-action: pan-x pan-y; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

/* ============ Loading Screen ============ */
/* 初回のみ script.js が html に .is-loading を付けて表示する（通常は非表示）
   画面は常にダーク固定。上下2枚の幕が斜めの継ぎ目で合わさり、
   終了時に上下へ割れて本編が現れる。 */
#loading-screen {
  --lo-accent: #5fcf9f;
  --lo-seam-top: 47%; /* 継ぎ目の右端の高さ */
  --lo-seam-bottom: 53%; /* 継ぎ目の左端の高さ */
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  background: transparent;
}
html.is-loading {
  overflow: hidden;
}
html.is-loading #loading-screen {
  display: flex;
}
 
/* 上下の幕：同じ clip-path の継ぎ目を共有するので、画面サイズに関係なく隙間が出ない */
#loading-screen::before,
#loading-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
}
#loading-screen::before {
  background:
    radial-gradient(120% 90% at 50% 100%, rgba(95, 207, 159, 0.1), transparent 60%),
    linear-gradient(180deg, #080908, #111413);
  clip-path: polygon(0 0, 100% 0, 100% var(--lo-seam-top), 0 var(--lo-seam-bottom));
}
#loading-screen::after {
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(95, 207, 159, 0.08), transparent 60%),
    linear-gradient(180deg, #0d0f0e, #060706);
  clip-path: polygon(0 var(--lo-seam-bottom), 100% var(--lo-seam-top), 100% 100%, 0 100%);
}
 
/* ロゴ */
.loading-logo {
  position: relative;
  z-index: 3;
  width: 56px;
  height: 56px;
  margin-bottom: 24px;
  border-radius: 14px;
  object-fit: contain;
  animation: loading-rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}
 
/* テキストまとまり（transform を付けない：中の fixed を画面基準にするため） */
.loading-text-container {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 90vw;
}
 
/* タイトル：字間が締まりながら現れる */
.loading-text {
  margin: 0;
  padding-left: 0.24em; /* 字間ぶんの視覚補正 */
  color: #fff;
  font-size: clamp(36px, 7.5vw, 68px);
  font-weight: 700;
  letter-spacing: 0.24em;
  line-height: 1.1;
  text-align: center;
  animation: loading-title 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}
 
/* サブタイトル＋その下の進行バー */
.loading-subtitle {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 18px 0 0;
  padding-left: 0.5em;
  color: rgba(255, 255, 255, 0.55);
  font-size: clamp(9px, 2vw, 12px);
  font-weight: 500;
  letter-spacing: 0.5em;
  text-align: center;
  animation: loading-rise 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.45s both;
}
.loading-subtitle::after {
  content: "";
  display: block;
  width: 100vw;
  height: 24px;
  margin: 56px 0 0 -0.5em;
  /* 画面いっぱいの線路：レール2本＋枕木。枕木の層だけが流れ続ける（28pxで1周＝継ぎ目なし） */
  background:
    linear-gradient(var(--lo-accent), var(--lo-accent)) 0 6px / 100% 2px no-repeat,
    linear-gradient(var(--lo-accent), var(--lo-accent)) 0 16px / 100% 2px no-repeat,
    linear-gradient(90deg, rgba(255, 255, 255, 0.4) 0 6px, transparent 6px) 0 0 / 28px 100% repeat-x;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  animation: loading-track 0.5s linear infinite;
}
 
/* 斜めの継ぎ目に走る光のライン（文字の背面） */
.loading-line {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--lo-accent) 22%,
    var(--lo-accent) 78%,
    transparent 100%
  );
  clip-path: polygon(
    0 var(--lo-seam-bottom),
    100% var(--lo-seam-top),
    100% calc(var(--lo-seam-top) + 2px),
    0 calc(var(--lo-seam-bottom) + 2px)
  );
  transform-origin: 50% 50%;
  animation: loading-seam 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}
 
/* ---------- 入場 ---------- */
@keyframes loading-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes loading-title {
  from {
    opacity: 0;
    transform: translateY(16px);
    letter-spacing: 0.5em;
  }
  to {
    opacity: 1;
    transform: none;
    letter-spacing: 0.24em;
  }
}
@keyframes loading-track {
  from { background-position: 0 6px, 0 16px, 0 0; }
  to { background-position: 0 6px, 0 16px, -28px 0; }
}
@keyframes loading-seam {
  from {
    opacity: 0;
    transform: scaleX(0);
  }
  to {
    opacity: 1;
    transform: scaleX(1);
  }
}
 
/* ---------- 退場：文字が消える → 継ぎ目から上下に割れる ---------- */
#loading-screen.hidden {
  pointer-events: none;
}
#loading-screen.hidden .loading-logo,
#loading-screen.hidden .loading-text,
#loading-screen.hidden .loading-subtitle {
  animation: loading-out 0.35s cubic-bezier(0.55, 0, 1, 0.45) forwards;
}
#loading-screen.hidden .loading-line {
  animation: loading-seam-out 0.4s ease 0.4s forwards;
}
#loading-screen.hidden::before {
  animation: loading-split-top 0.8s cubic-bezier(0.76, 0, 0.24, 1) 0.4s forwards;
}
#loading-screen.hidden::after {
  animation: loading-split-bottom 0.8s cubic-bezier(0.76, 0, 0.24, 1) 0.4s forwards;
}
@keyframes loading-out {
  to {
    opacity: 0;
    transform: translateY(-8px) scale(1.03);
  }
}
@keyframes loading-seam-out {
  to {
    opacity: 0;
  }
}
@keyframes loading-split-top {
  to {
    transform: translateY(-101%);
  }
}
@keyframes loading-split-bottom {
  to {
    transform: translateY(101%);
  }
}
 
/* ---------- モバイル ---------- */
@media (max-width: 600px) {
  .loading-logo {
    width: 44px;
    height: 44px;
    margin-bottom: 20px;
  }
  .loading-subtitle {
    letter-spacing: 0.4em;
    padding-left: 0.4em;
  }
  .loading-subtitle::after {
    width: 100vw;
    height: 20px;
    margin: 44px 0 0 -0.4em;
  }
}
 
/* ================= Clean v4：装飾を減らし、余白と文字で見せる（機能・アニメーションは維持） ================= */
:root { --radius: 8px; --bg: #f5f6f4; --line: #e2e5e1; --green: #16684a; --hero-a: rgba(6, 16, 11, 0.25); --hero-b: rgba(6, 16, 11, 0.78); }
html[data-theme="dark"] { --bg: #121413; --surface: #1b1e1c; --line: #2b302d; --soft: #232825; --green: #7fcaa6; }

/* 装飾を外す：上端の帯・ヒーローのドット・見出しの線路・フッターの線路・等幅ラベル */
body::before, .page-title::before, .site-footer::before, .section h2::after { display: none; }
.news-meta, .staff-profile-label, .tag, .spec dt { font-family: inherit; letter-spacing: 0.02em; }
.page-title { min-height: 380px; font-size: clamp(2rem, 5.5vw, 3.6rem); font-weight: 700; letter-spacing: 0.02em; }
.section h2 { padding-bottom: 12px; border-bottom: 1px solid var(--line); font-size: 21px; font-weight: 700; }
.section h2::before { bottom: -1px; width: 56px; height: 2px; background: var(--green); }

/* トップの導入：一文とボタンだけ */
.hero-intro .lead { max-width: 24em; margin: 0; font-size: clamp(1.3rem, 3vw, 1.8rem); }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

/* ================= Loading：ロゴ・名前・細い進捗線だけ ================= */
#loading-screen::before, #loading-screen::after { background: #0a0c0b; }
.loading-line { display: none; }
.loading-logo { width: 52px; height: 52px; border-radius: 10px; }
.loading-desc { position: relative; z-index: 3; margin: 14px 0 0; color: rgba(255, 255, 255, 0.7); font-size: clamp(12px, 2.6vw, 14px); letter-spacing: 0.1em; text-align: center; animation: loading-rise 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.35s both; }
#loading-screen.hidden .loading-desc { animation: loading-out 0.35s cubic-bezier(0.55, 0, 1, 0.45) forwards; }
.loading-subtitle { margin-top: 10px; }
.loading-subtitle::after {
  width: min(240px, 60vw); height: 2px; margin: 40px 0 0 -0.5em;
  background: linear-gradient(var(--lo-accent), var(--lo-accent)) 0 0 / 0% 100% no-repeat, rgba(255, 255, 255, 0.12);
  -webkit-mask-image: none; mask-image: none;
  animation: loading-bar 1.4s cubic-bezier(0.65, 0, 0.35, 1) 0.1s forwards;
}
@keyframes loading-bar { to { background-size: 100% 100%; } }
@media (prefers-reduced-motion: reduce) { .loading-subtitle::after { background-size: 100% 100%; } }

/* ================= v5：阪急電鉄サイトを参考に（白基調・細い罫線・実用的なヘッダー／フッター） ================= */
:root { --max: 1120px; --header: 68px; --radius: 8px; }
.section { margin: 72px 0; }

/* ---- Header：左ロゴ／中央メニュー／右テーマ ---- */
.site-header { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; column-gap: 16px; padding: 0 max(24px, calc((100% - var(--max)) / 2)); background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; }
.site-header > * { grid-row: 1; }
.site-title { grid-column: 1; justify-self: start; margin: 0; font-size: 17px; font-weight: 700; }
.site-nav { grid-column: 2; order: 0; display: flex; gap: 4px; }
.site-nav a { position: relative; padding: 8px 14px; border-radius: 0; background: none !important; color: var(--text); font-size: 14px; font-weight: 500; letter-spacing: 0.02em; }
.site-nav a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 2px; background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1); }
.site-nav a:hover::after, .site-nav a.active::after { transform: scaleX(1); }
.site-nav a.active { color: var(--green); }
.theme-control { grid-column: 3; justify-self: end; order: 0; margin: 0; }
.nav-toggle { display: none; }

/* ---- Mobile：ハンバーガー → 全画面メニュー ---- */
@media (max-width: 960px) {
  .site-header { grid-template-columns: 1fr auto auto; padding: 0 16px; }
  .theme-control { grid-column: 2; margin-right: 4px; }
  .nav-toggle { grid-column: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; width: 44px; height: 44px; margin: 0 -6px 0 0; }
  .nav-toggle span { display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px; transition: transform 0.3s ease, opacity 0.2s ease; }
  html.menu-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  html.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
  html.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  html.menu-open, html.menu-open body { overflow: hidden; }
  .site-nav { position: fixed; top: var(--header); left: 0; right: 0; bottom: 0; z-index: 9; display: flex !important; flex-direction: column; gap: 0; margin: 0; padding: 8px 24px 40px; background: var(--surface); border: 0; border-radius: 0; box-shadow: none; overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity 0.25s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.25s; }
  .site-nav.open { opacity: 1; visibility: visible; transform: none; }
  .site-nav a { display: flex; align-items: center; justify-content: space-between; padding: 20px 4px; border-bottom: 1px solid var(--line); font-size: 17px; font-weight: 700; }
  .site-nav a::after { position: static; width: auto; height: auto; background: none; transform: none; content: "›"; color: var(--muted); font-size: 22px; font-weight: 400; }
}

/* ---- Top hero：ゆっくりズーム＋フェードで画像が切り替わる ---- */
.page-title.hero { display: block; position: relative; overflow: hidden; min-height: clamp(520px, 86vh, 780px); margin-bottom: 0; padding: 0; background: #0a0d0b; border: 0; color: #fff; font-size: 1rem; font-weight: 400; letter-spacing: 0; line-height: 1.7; text-shadow: none; }
.hero-slides { position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; background-position: center; background-size: cover; opacity: 0; will-change: opacity, transform; animation: heroSlide 28s linear infinite; }
.hero-slide:nth-child(1) { animation-delay: -1.4s; }
.hero-slide:nth-child(2) { animation-delay: 5.6s; }
.hero-slide:nth-child(3) { animation-delay: 12.6s; }
.hero-slide:nth-child(4) { animation-delay: 19.6s; }
@keyframes heroSlide {
  0% { opacity: 0; transform: scale(1); }
  5% { opacity: 1; }
  25% { opacity: 1; }
  32% { opacity: 0; transform: scale(1.12); }
  100% { opacity: 0; transform: scale(1.12); }
}
.page-title.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.15) 55%), rgba(0, 0, 0, 0.22); pointer-events: none; }
.hero-inner { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: flex-end; width: min(var(--max), calc(100% - 48px)); min-height: inherit; margin: 0 auto; padding: 120px 0 72px; }
.hero h1 { margin: 0; font-size: clamp(2.2rem, 6vw, 4.4rem); font-weight: 700; line-height: 1.25; letter-spacing: 0.02em; }
.hero p { max-width: 34em; margin: 20px 0 0; color: rgba(255, 255, 255, 0.9); font-size: clamp(15px, 2vw, 18px); }
.hero .cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.hero .btn { border-radius: 6px; border-color: rgba(255, 255, 255, 0.65); color: #fff; }
.hero .btn:hover { background: rgba(255, 255, 255, 0.14); border-color: #fff; }
.hero .btn.primary { background: #fff; border-color: #fff; color: #0d1a14; }
.hero .btn.primary:hover { background: #fff; filter: none; opacity: 0.9; }
@media (prefers-reduced-motion: reduce) { .hero-slide:nth-child(n+2) { display: none; } .hero-slide:nth-child(1) { opacity: 1; } }

/* ---- Quick links ---- */
.quick { display: grid; grid-template-columns: repeat(4, 1fr); margin: 48px 0 0; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.quick a { display: block; padding: 24px; transition: background-color 0.2s ease; }
.quick a + a { border-left: 1px solid var(--line); }
.quick a:hover { background: var(--soft); }
.quick strong { display: block; font-size: 16px; }
.quick strong::after { content: "›"; margin-left: 8px; color: var(--green); }
.quick span { display: block; margin-top: 2px; color: var(--muted); font-size: 13px; }
@media (max-width: 720px) { .quick { grid-template-columns: 1fr 1fr; } .quick a:nth-child(3) { border-left: 0; } .quick a:nth-child(n+3) { border-top: 1px solid var(--line); } }

/* ---- Headings（英字は小さく添える） ---- */
.section h2 small, .page-title small { color: var(--muted); font-weight: 500; letter-spacing: 0.1em; }
.section h2 small { margin-left: 14px; font-size: 12px; }
.page-title small { display: block; margin-bottom: 10px; color: rgba(255, 255, 255, 0.8); font-size: 0.28em; letter-spacing: 0.22em; }
.page-title { min-height: 450px; border-bottom: 0; }

/* ---- News：罫線のリスト ---- */
.news-item { display: grid; grid-template-columns: 200px 1fr; align-items: center; margin: 0; background: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; }
.news-item:first-child { border-top: 1px solid var(--line); }
.news-item:hover, .news-item.open { border-color: var(--line); box-shadow: none; }
.news-meta { padding: 20px 0 20px 4px; color: var(--muted); font-size: 13px; }
.news-item[data-cat="重要なお知らせ"] .news-meta { color: #c4472f; font-weight: 700; }
html[data-theme="dark"] .news-item[data-cat="重要なお知らせ"] .news-meta { color: #ef8f7a; }
.news-title { padding: 18px 4px 18px 0; font-size: 16px; }
.news-item:hover .news-title { color: var(--green); }
.news-body-wrapper { grid-column: 1 / -1; }
.news-body, .news-item.open .news-body { padding-left: 204px; padding-right: 8px; border-top: 0; }
.news-item.open .news-body { padding-bottom: 28px; padding-top: 0; }
@media (max-width: 720px) {
  .news-item { grid-template-columns: 1fr; }
  .news-meta { padding: 16px 0 0; }
  .news-title { padding: 4px 0 16px; }
  .news-body, .news-item.open .news-body { padding-left: 0; padding-right: 0; }
}

/* ---- Cards ---- */
.staff-card, .partner-card, .role-card, .hire { border-radius: var(--radius); }
.staff-card .img-placeholder.square { font-size: 0; background: var(--soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%239aa39d'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c0-4.4 3.6-7 8-7s8 2.6 8 7z'/%3E%3C/svg%3E") center / 56% no-repeat; }
.btn { border-radius: 6px; }

/* ---- Footer：阪急風（サイトリンク＋最下段のボトムバー） ---- */
.site-footer { padding: 0; background: #0e1210; color: rgba(255, 255, 255, 0.88); text-align: left; font-size: 13px; }
.footer-main { display: grid; grid-template-columns: 1.1fr 2fr; gap: 56px; width: min(var(--max), calc(100% - 48px)); margin: 0 auto; padding: 64px 0 48px; }
.footer-logo { display: inline-flex; align-items: center; gap: 12px; color: #fff; font-size: 17px; font-weight: 700; }
.footer-logo img { width: 36px; height: 36px; border-radius: 8px; }
.footer-brand p { margin: 16px 0 20px; color: rgba(255, 255, 255, 0.65); }
.footer-socials { justify-content: flex-start; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer-cols h3 { margin: 0 0 12px; color: rgba(255, 255, 255, 0.5); font-size: 12px; font-weight: 500; letter-spacing: 0.1em; }
.footer-cols a { display: block; padding: 6px 0; color: rgba(255, 255, 255, 0.9); }
.footer-cols a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); }
.footer-bottom > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; width: min(var(--max), calc(100% - 48px)); margin: 0 auto; padding: 20px 0 28px; }
.footer-bottom p { margin: 0; max-width: none; color: rgba(255, 255, 255, 0.6); font-size: 12px; }
@media (max-width: 720px) { .footer-main { grid-template-columns: 1fr; gap: 36px; padding: 48px 0 32px; } .footer-cols { grid-template-columns: 1fr 1fr; } }
