:root {
  --ink: #16181B;
  --ink-2: #33363B;
  --muted: #5C6066;
  --ground: #F5F4F0;
  --card: #FFFFFF;
  --line: #DEDBD2;
  --sand: #F6F1E8;
  --accent: #F0A040;
  --accent-ink: #1A1C1E;
  --accent-text: #A85A00;
  --ok-bg: #DCEFE1;
  --ok-text: #1E5B2E;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink-2);
  font-family: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.75;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent-text); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }

/* header / footer */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: #16181B; color: #fff;
  padding-top: env(safe-area-inset-top, 0px);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 56px; gap: 12px; }
.logo { white-space: nowrap; color: #fff; text-decoration: none; font-weight: 900; font-size: 20px; letter-spacing: .04em; }
.logo span { color: var(--accent); }
.nav { display: flex; gap: 2px; justify-content: flex-end; }
.nav a { white-space: nowrap; }
@media (max-width: 599px) { .nav .wide { display: none; } }
.nav a { color: #E6E8EB; text-decoration: none; font-size: 13px; padding: 10px 8px; min-height: 44px; display: inline-flex; align-items: center; }
.nav a[aria-current="page"] { color: var(--accent); font-weight: 700; }
.site-footer { background: #16181B; color: #D9DCE0; margin-top: 48px; padding: 28px 0 calc(28px + env(safe-area-inset-bottom, 0px)); font-size: 13px; line-height: 1.8; }
.site-footer a { color: #F0A040; display: inline-flex; min-height: 44px; align-items: center; margin-right: 16px; }
.site-footer p { margin: 8px 0; }

/* headings & blocks */
h1 { font-size: 26px; line-height: 1.35; margin: 24px 0 8px; color: var(--ink-2); font-weight: 900; }
h2 { font-size: 19px; line-height: 1.4; margin: 32px 0 12px; font-weight: 900; color: var(--ink-2); }
h3 { font-size: 16px; margin: 20px 0 8px; font-weight: 700; }
.lead { color: var(--muted); margin: 0 0 16px; }
.hero { background: #16181B; color: #fff; padding: 24px 0 26px; }
.hero h1 { color: #fff; margin-top: 0; font-size: 22px; }
.hero .meta { color: #D9DCE0; font-size: 13px; }

/* search */
.search-row { display: flex; gap: 8px; margin-top: 8px; }
.search-row input {
  flex: 1; min-width: 0; height: 48px; border-radius: 8px; border: 1px solid var(--line);
  padding: 0 12px; font-size: 16px; font-family: inherit; background: #fff; color: #1A1C1E;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 48px; padding: 0 18px; border-radius: 8px; border: 1px solid transparent;
  font: inherit; font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-outline { border-color: currentColor; color: var(--ink-2); background: transparent; }
.btn-block { display: flex; width: 100%; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tile {
  display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 10px;
  background: var(--card); border: 1px solid var(--line); color: var(--ink-2); text-decoration: none;
}
.tile strong { font-size: 16px; }
.tile small { color: var(--muted); font-size: 12px; line-height: 1.5; }
.tile .count { color: var(--accent-text); font-size: 12px; font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 22px;
  background: var(--card); border: 1px solid var(--line); color: var(--ink-2); text-decoration: none; font-size: 14px;
}
.tag { display: inline-block; font-size: 12px; padding: 3px 9px; border-radius: 4px; background: var(--sand); color: var(--ink-2); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* company cards */
.cards { display: flex; flex-direction: column; gap: 12px; }
.card {
  display: flex; gap: 12px; padding: 12px; border-radius: 12px; background: var(--card);
  border: 1px solid var(--line); color: var(--ink-2); text-decoration: none;
}
.thumb {
  flex: none; width: 84px; height: 150px; border-radius: 8px; background: #3A4048; color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 11px; text-align: center; overflow: hidden;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.card-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.card-body strong { font-size: 16px; line-height: 1.4; }
.card-body .where { font-size: 13px; color: var(--muted); }
.empty { padding: 24px; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); text-align: center; }

/* company page */
.player {
  position: relative; width: 100%; max-width: 420px; margin: 0 auto; aspect-ratio: 9 / 16; max-height: 70vh;
  background: #3A4048; border-radius: 0; overflow: hidden; color: #fff;
  display: flex; align-items: center; justify-content: center; text-align: center;
}
.player video { width: 100%; height: 100%; object-fit: cover; background: #000; }
.player .placeholder { padding: 24px; font-size: 13px; color: #E6E8EB; }
.video-list { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.video-item { flex: none; width: 110px; border: none; background: transparent; padding: 0; text-align: left; cursor: pointer; font: inherit; color: var(--ink-2); }
.video-item .thumb { width: 110px; height: 196px; }
.video-item[aria-pressed="true"] .thumb { outline: 3px solid var(--accent); }
.video-item span { display: block; font-size: 12px; font-weight: 700; margin-top: 6px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px 16px; }
.panel + .panel { margin-top: 12px; }
dl.spec { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 8px 10px; margin: 12px 0; font-size: 14px; }
dl.spec dt { color: var(--muted); }
dl.spec dd { margin: 0; }
.apply { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.note { font-size: 12px; color: var(--muted); line-height: 1.7; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px 6px; text-align: center; }
.stat small { display: block; color: var(--muted); font-size: 11px; }
.stat b { font-size: 16px; }
.table-wrap { overflow-x: auto; }
table.info { width: 100%; border-collapse: collapse; font-size: 14px; }
table.info th, table.info td { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: left; vertical-align: top; }
table.info th { width: 120px; color: var(--muted); font-weight: 500; }
.steps { padding-left: 1.4em; }
.steps li { margin-bottom: 10px; }
.prose p { margin: 0 0 14px; }
.toast {
  position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%);
  background: #FFFFFF; color: #1A1C1E; padding: 10px 16px; border-radius: 8px; font-size: 14px; z-index: 50;
  box-shadow: 0 4px 16px rgba(0,0,0,.25); max-width: calc(100% - 32px);
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }

/* ===== swipe feed ===== */
body.feed { background: #000; color: #fff; overflow: hidden; height: 100%; margin: 0; }
html.feed-html { height: 100%; background: #000; }
.feed-stage { position: fixed; inset: 0; display: flex; justify-content: center; }
.feed-scroll {
  position: relative; width: 100%; height: 100%; overflow-y: auto; scroll-snap-type: y mandatory;
  overscroll-behavior: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.feed-scroll::-webkit-scrollbar { display: none; }

.slide {
  position: relative; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; overflow: hidden;
  background: #111;
}
.slide video, .slide .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slide .poster { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: #E6E8EB; font-size: 13px; text-align: center; padding: 0 64px; }
.slide .shade-top, .slide .shade-bottom { position: absolute; left: 0; right: 0; pointer-events: none; }
.slide .shade-top { top: 0; height: 160px; background: linear-gradient(rgba(0,0,0,.55), rgba(0,0,0,0)); }
.slide .shade-bottom { bottom: 0; height: 55%; background: linear-gradient(rgba(0,0,0,0), rgba(0,0,0,.78)); }
.slide .paused { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); pointer-events: none; opacity: .9; }
.slide .info {
  position: absolute; left: 0; right: 72px; bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  padding: 0 14px; display: flex; flex-direction: column; gap: 4px; text-shadow: 0 1px 3px rgba(0,0,0,.6);
}
.slide .info .name { font-size: 17px; font-weight: 900; line-height: 1.35; }
.slide .info .where { font-size: 13px; color: #EDEFF2; }
.slide .info .job { font-size: 13px; }
.slide .info .job b { color: #FFC27A; font-weight: 700; }
.slide .info .tags { margin-top: 2px; }
.slide .info .tag { background: rgba(255,255,255,.18); color: #fff; font-size: 11px; text-shadow: none; }
.slide .info .acts { display: flex; gap: 8px; margin-top: 8px; }
.slide .info .acts a { min-height: 40px; padding: 0 14px; font-size: 13px; border-radius: 6px; text-shadow: none; }
.slide .info .acts .btn-outline { color: #fff; border-color: rgba(255,255,255,.8); background: rgba(0,0,0,.25); }
.slide .info .note { color: #D0D3D7; font-size: 10px; margin-top: 2px; }
.side {
  position: absolute; right: 8px; bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; gap: 16px; align-items: center;
}
.side button {
  width: 48px; height: 48px; border-radius: 24px; border: none; background: rgba(0,0,0,.35); color: #fff;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.side button[aria-pressed="true"] svg { fill: #F0A040; stroke: #F0A040; }
.side small { font-size: 11px; margin-top: -12px; text-shadow: 0 1px 2px rgba(0,0,0,.6); }
.progress { position: absolute; left: 0; right: 0; bottom: calc(60px + env(safe-area-inset-bottom, 0px)); height: 3px; background: rgba(255,255,255,.25); }
.progress i { display: block; height: 100%; width: 0; background: #fff; }
.feed-top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10; pointer-events: none;
  padding: calc(8px + env(safe-area-inset-top, 0px)) 0 0;
}
.feed-top .inner { width: 100%; margin: 0 auto; padding: 0 12px; pointer-events: auto; }
@media (min-width: 700px) { .feed-top .inner { width: min(100vw, calc(100dvh * 9 / 16)); } }
.feed-top .row { display: flex; align-items: center; justify-content: space-between; }
.feed-top .logo { font-size: 18px; text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.feed-top .filters { display: flex; gap: 6px; overflow-x: auto; margin-top: 6px; scrollbar-width: none; }
.filter {
  flex: none; min-height: 34px; padding: 0 14px; border-radius: 17px; font: inherit; font-size: 13px; font-weight: 700;
  background: rgba(0,0,0,.3); color: #fff; border: 1px solid rgba(255,255,255,.5); cursor: pointer;
}
.filter[aria-pressed="true"] { background: #fff; color: #1A1C1E; border-color: #fff; }
.feed-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; background: #000;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.feed-nav .inner { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 auto; }
@media (min-width: 700px) { .feed-nav .inner { width: min(100vw, calc(100dvh * 9 / 16)); } }
.feed-nav a { display: flex; align-items: center; justify-content: center; min-height: 56px; color: #B9BEC4; text-decoration: none; font-size: 12px; }
.feed-nav a[aria-current="page"] { color: #fff; font-weight: 700; }
.pc-arrows { display: none; }
@media (min-width: 700px) and (max-width: 899px) and (hover: hover) {
  .pc-arrows { display: flex; flex-direction: column; gap: 12px; position: fixed; top: 50%; transform: translateY(-50%);
    left: calc(50% + min(50vw, calc(100dvh * 9 / 32)) + 20px); z-index: 10; }
  .pc-arrows button { width: 48px; height: 48px; border-radius: 24px; border: none; background: #2A2E33; color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
  .pc-arrows button:hover { background: #3A3F45; }
}
.guide {
  position: fixed; inset: 0; z-index: 30; background: rgba(0,0,0,.72); display: flex; align-items: center; justify-content: center;
  padding: 24px; text-align: center; font-size: 15px; line-height: 1.8;
}
.guide button { margin-top: 16px; }
.end { height: 100%; scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 24px; text-align: center; color: #D9DCE0; }

/* ===== PC：YouTubeショート風（左メニュー＋中央の縦動画） ===== */
.pc-side { display: none; }
@media (min-width: 900px) {
  body.feed, html.feed-html { background: #F5F4F0; color: #1A1C1E; }
  .feed-top, .feed-nav { display: none; }
  .pc-side {
    display: flex; flex-direction: column; gap: 4px; position: fixed; top: 0; left: 0; bottom: 0; width: 232px;
    padding: 18px 12px; background: #FFFFFF; border-right: 1px solid #E4E1D8; z-index: 20; overflow-y: auto;
  }
  .pc-side .logo { color: #1A1C1E; font-size: 22px; padding: 4px 12px 16px; }
  .pc-side .logo span { color: #C96A00; }
  .pc-side nav a, .pc-side .sub a {
    display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: 10px;
    color: #1A1C1E; text-decoration: none; font-size: 14px;
  }
  .pc-side nav a:hover, .pc-side .sub a:hover { background: #F2EFE8; }
  .pc-side nav a[aria-current="page"] { background: #F2EFE8; font-weight: 700; }
  .pc-side hr { border: none; border-top: 1px solid #E4E1D8; margin: 12px 0; width: 100%; }
  .pc-side .label { font-size: 12px; color: #5C6066; padding: 0 12px 6px; font-weight: 700; }
  .pc-side .filters { display: flex; flex-direction: column; gap: 2px; }
  .pc-side .filter {
    text-align: left; min-height: 40px; border-radius: 10px; border: none; background: transparent; color: #1A1C1E;
    font-weight: 500; padding: 0 12px; font-size: 14px;
  }
  .pc-side .filter:hover { background: #F2EFE8; }
  .pc-side .filter[aria-pressed="true"] { background: #1A1C1E; color: #fff; font-weight: 700; }
  .pc-side .sub a { font-size: 13px; color: #5C6066; min-height: 36px; }
  .pc-side .note { font-size: 11px; color: #5C6066; padding: 8px 12px 0; line-height: 1.6; }

  .feed-stage { left: 232px; top: 16px; bottom: 16px; }
  .feed-scroll { width: min(calc(100vw - 232px - 160px), calc((100dvh - 32px) * 9 / 16)); border-radius: 14px; }
  .slide { border-radius: 14px; color: #fff; }
  .slide .info { bottom: 22px; }
  .side { bottom: 30px; }
  .progress { bottom: 0; }
  .pc-arrows {
    display: flex; flex-direction: column; gap: 12px; position: fixed; top: 50%; transform: translateY(-50%);
    left: calc(232px + (100vw - 232px) / 2 + min(calc(100vw - 232px - 160px), calc((100dvh - 32px) * 9 / 16)) / 2 + 20px); z-index: 10;
  }
  .pc-arrows button { width: 52px; height: 52px; border-radius: 26px; border: none; background: #E7E4DC; cursor: pointer; display: flex; align-items: center; justify-content: center; }
  .pc-arrows button svg { stroke: #1A1C1E; }
  .pc-arrows button:hover { background: #DAD6CC; }
  .end { color: #5C6066; }
}
@media (min-width: 700px) and (max-width: 899px) {
  .feed-scroll { width: min(100vw, calc(100dvh * 9 / 16)); }
}
