/* サブページだけで読み込み、既存トップ・共通CSSを維持する。 */
.rev-main { padding: 58px 0 90px; background: var(--dot-paper); }
.rev-site h1, .rev-site h2, .rev-site p, .rev-site a, .rev-site dd { overflow-wrap: anywhere; }
.rev-heading { border-bottom: 5px solid #101010; padding-bottom: 26px; margin-bottom: 28px; }
.rev-heading > p:first-child { color: var(--blue); font-weight: 900; letter-spacing: .12em; }
.rev-heading h1 { font-size: clamp(1.8rem, 4vw, 3rem); margin: 8px 0; line-height: 1.4; }
.rev-heading p { margin: 8px 0; }
.rev-note { font-size: .85rem; }
.rev-filter { display: flex; align-items: center; gap: 14px; margin: 28px 0; flex-wrap: wrap; }
.rev-site select, .rev-site input[type=search] { min-height: 52px; padding: 10px 16px; border: 2px solid #101010; background: white; font: inherit; max-width: 100%; border-radius: 0; }
.rev-site select { min-width: 250px; }
.rev-button { display: inline-flex; justify-content: center; align-items: center; padding: 14px 24px; min-height: 52px; border: 3px solid #101010; box-shadow: 6px 6px 0 var(--line); font: inherit; font-weight: 900; cursor: pointer; text-align: center; }
.rev-yellow { background: var(--yellow); color: #101010; }
.rev-blue { background: var(--blue); color: white; }
.rev-button:disabled { opacity: .5; cursor: not-allowed; }
.rev-site :focus-visible { outline: 3px solid var(--blue); outline-offset: 5px; }
.rev-company-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
.rev-company-card { border: 4px solid #101010; box-shadow: 7px 7px #101010; background: white; min-width: 0; }
.rev-company-card a { display: flex; flex-direction: column; height: 100%; }
.rev-card-image { position: relative; border-bottom: 4px solid #101010; }
.rev-card-image img { width: 100%; height: 205px; object-fit: cover; }
.rev-card-image > span { position: absolute; bottom: 0; left: 0; background: var(--blue); color: white; padding: 2px 18px; font-weight: 900; font-size: 1.4rem; }
.rev-card-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.rev-category {
  display: inline-block;
  align-self: flex-start;
  justify-self: start;
  max-width: 100%;
  padding: 3px 10px;
  border-radius: 4px;
  background: var(--industry-color, #475569);
  color: #fff;
  font-weight: 800;
  font-size: .85rem;
  line-height: 1.6;
  margin: 0 0 8px;
}
/* 業種タグは全ページで同じ配色を使用する。 */
[data-industry="精密機械・製造"] { --industry-color: #1d4ed8; }
[data-industry="金属加工・製造"] { --industry-color: #9a3412; }
[data-industry="IT・システム開発"] { --industry-color: #6d28d9; }
[data-industry="電気・電子"] { --industry-color: #a16207; }
[data-industry="素材・化学"] { --industry-color: #15803d; }
[data-industry="ロボット・自動化"] { --industry-color: #be185d; }

.rev-card-body h2 { font-size: 1.25rem; line-height: 1.6; margin: 0; }
.rev-catch { color: var(--blue); font-weight: 800; margin: 16px 0 22px; }
.rev-detail-link { display: flex; justify-content: space-between; margin-top: auto; padding: 10px 12px; background: var(--yellow); border: 2px solid #101010; font-weight: 900; }
.rev-company-card a:hover .rev-detail-link { transform: translate(3px, 3px); box-shadow: 3px 3px 0 var(--line); }
.rev-back { display: inline-block; margin: 12px 0 26px; text-decoration: underline; font-weight: 700; }
.rev-detail-heading { background: white; border-left: 8px solid var(--blue); padding: 20px 28px; }
.rev-detail-heading h1 { font-size: clamp(1.5rem, 3vw, 2.3rem); margin: 0 0 16px; }
.rev-detail-catch { font-size: clamp(1.7rem, 4vw, 3.1rem); font-weight: 900; line-height: 1.5; margin: 0; }
.rev-panel-title { display: inline-block; background: var(--yellow); padding: 8px 18px; margin: 0 0 20px; font-size: 1.3rem; }
.rev-site .member-detail__panel p + p { margin-top: 18px; }
.rev-gallery { display: flex; gap: 20px; margin: 28px 0; }
.rev-gallery figure { flex: 1; min-width: 0; margin: 0; border: 4px solid #101010; background: white; }
.rev-gallery img { width: 100%; aspect-ratio: 4 / 3; max-height: 420px; object-fit: cover; filter: grayscale(1); }
.rev-gallery figcaption { padding: 8px 12px; font-size: .8rem; font-weight: 700; }
.rev-login-copy { color: white; margin: 0 0 28px; }
.rev-site .login-panel__form input { min-width: 0; width: 100%; }
.rev-site .login-panel .rev-note { margin-top: 24px; margin-bottom: 0; }
.rev-site .signage-status__label { margin: 0; font-size: 1.3rem; }
.rev-site .signage-status__headline p { margin: 8px 0 0; font-size: .9rem; font-weight: 500; }
.rev-site .signage-status__body p { margin: 0; }
.rev-site .signage-status__body { gap: 24px; }
.rev-site .signage-status__action { min-width: 0; padding: 14px 20px; }
.rev-status strong { background: var(--yellow); padding: 2px 10px; }
.rev-steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); padding: 0; margin: 0 0 40px; border: 3px solid #101010; background: white; }
.rev-steps li { padding: 16px 12px; font-weight: 900; text-align: center; border-right: 1px solid #ccc; }
.rev-steps .is-current { background: var(--blue); color: white; }
.rev-steps .is-done { background: #e8f0ff; color: #0047d1; }
.rev-fieldset { margin: 0 0 32px; padding: 26px; background: white; border: 3px solid #101010; min-width: 0; }
.rev-fieldset legend { font-size: 1.4rem; font-weight: 900; background: var(--yellow); padding: 4px 14px; border: 2px solid #101010; }
.rev-device-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.rev-choice { display: flex; align-items: center; gap: 10px; position: relative; padding: 18px; border: 2px solid #777; background: white; cursor: pointer; min-width: 0; }
.rev-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rev-choice:has(input:checked) { border: 3px solid var(--blue); background: #edf4ff; padding: 17px; }
.rev-choice:has(input:focus-visible) { outline: 3px solid #101010; outline-offset: 4px; }
.rev-choice-body { flex: 1; min-width: 0; display: grid; gap: 4px; overflow-wrap: anywhere; }
.rev-choice-body strong { font-size: 1.05rem; }
.rev-choice-mark { width: 24px; height: 24px; border: 2px solid #777; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; }
.rev-choice input:checked ~ .rev-choice-mark { background: var(--blue); border-color: var(--blue); color: white; }
.rev-choice input:checked ~ .rev-choice-mark::after {
  content: "";
  display: block;
  width: 12px;
  height: 10px;
  background: currentColor;
  clip-path: polygon(0 45%, 15% 30%, 40% 60%, 85% 0, 100% 15%, 40% 100%);
}
.rev-fieldset > label { display: block; margin-bottom: 8px; }
.rev-site input[type=search] { width: 100%; }
.rev-options { display: grid; gap: 12px; }
.rev-options .rev-choice-body { grid-template-columns: 1fr auto; }
.rev-options .rev-choice-body > span:last-child { grid-column: 1 / -1; font-size: .9rem; }
.rev-confirm, .rev-complete { background: white; border: 4px solid #101010; box-shadow: 6px 6px #101010; padding: 30px; margin-bottom: 24px; }
.rev-confirm h2, .rev-complete h2 { margin: 0 0 24px; }
.rev-summary { margin: 0 0 28px; }
.rev-summary > div { display: grid; grid-template-columns: 200px 1fr; gap: 18px; padding: 16px 0; border-bottom: 1px solid #ccc; }
.rev-summary dt { font-weight: 700; }
.rev-summary dd { margin: 0; }
.rev-confirm .rev-button { width: 100%; font-size: 1.1rem; }
.rev-complete-mark { font-size: 2rem; background: var(--blue); color: white; width: 60px; text-align: center; }
.rev-site [hidden] { display: none !important; }
@media (max-width: 1000px) { .rev-company-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) {
  .rev-main { padding: 32px 0 60px; }
  .rev-site .site-header__inner { gap: 10px; }
  .rev-site .menu-toggle { flex-shrink: 0; }
  .rev-site .login-panel h1 { font-size: clamp(1.25rem, 6vw, 1.6rem); line-height: 1.5; }
  .rev-company-grid, .rev-device-grid { grid-template-columns: 1fr; gap: 22px; }
  .rev-filter { display: grid; }
  .rev-site select { width: 100%; min-width: 0; }
  .rev-gallery { flex-direction: column; }
  .rev-steps { grid-template-columns: 1fr; }
  .rev-steps li { text-align: left; padding: 8px 16px; border-bottom: 1px solid #ccc; }
  .rev-fieldset, .rev-confirm, .rev-complete { padding: 18px 14px; }
  .rev-fieldset legend { font-size: 1.2rem; }
  .rev-options .rev-choice-body { grid-template-columns: 1fr; }
  .rev-summary > div { grid-template-columns: 1fr; gap: 6px; }
  .rev-detail-heading { padding: 16px; }
  .rev-site .signage-status__headline { padding: 18px; }
}

/* 参考図の学生操作画面：端末 → 企業 → 再生状況／確認・送信 */
.signage-console .rev-heading { padding-bottom: 16px; margin-bottom: 20px; }
.signage-console .rev-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 24px; }
.signage-console .rev-fieldset { margin-bottom: 22px; padding: 18px 22px; }
.signage-console .rev-device-grid .rev-choice { flex-direction: column; text-align: center; gap: 10px; }
.signage-console .rev-device-grid .rev-choice-body::before { content: ''; display: block; width: 30px; height: 20px; border: 3px solid var(--blue); box-shadow: 0 5px 0 -2px white, 0 8px 0 -2px var(--blue); margin: 0 auto 10px; }
.signage-console .rev-device-grid .rev-choice-body { flex: auto; }
.console-search-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.signage-console input[type=search] { max-width: 640px; }
.signage-console #search-count { margin: 8px 0; font-size: .85rem; }
.signage-console .rev-options { grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: 258px; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; padding: 5px; }
.signage-console .rev-options .rev-choice { padding: 12px; }
.signage-console .rev-options .rev-choice:has(input:checked) { padding: 11px; }
.signage-console .rev-options .rev-choice-body { grid-template-columns: 1fr; gap: 2px; }
.signage-console .rev-options .rev-category { margin: 0; }
.console-bottom { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 20px; }
.console-current, .signage-console .rev-confirm { border: 3px solid #101010; box-shadow: 5px 5px #101010; background: white; padding: 20px; margin: 0; min-width: 0; }
.console-current h2, .signage-console .rev-confirm h2 { font-size: 1.15rem; margin: 0 0 12px; }
.console-current p { margin: 8px 0; }
.signage-console .rev-summary { margin-bottom: 14px; }
.signage-console .rev-summary > div { grid-template-columns: 84px minmax(0, 1fr); gap: 12px; padding: 8px 0; }
.signage-console .rev-confirm .rev-button { display: flex; width: auto; margin-left: auto; font-size: 1rem; }
.console-guidance { margin: 26px 0 8px; font-weight: 800; color: #0047d1; }
@media (max-width: 720px) {
  .signage-console .rev-fieldset { padding: 16px 12px; }
  .signage-console .rev-steps li { font-size: .85rem; padding: 10px 6px; text-align: center; }
  .signage-console .rev-device-grid { gap: 12px; }
  .signage-console .rev-device-grid .rev-choice { flex-direction: row; text-align: left; }
  .signage-console .rev-device-grid .rev-choice-body { flex: 1; }
  .signage-console .rev-device-grid .rev-choice-body::before { display: none; }
  .signage-console .rev-options, .console-bottom { grid-template-columns: 1fr; }
  .signage-console .rev-options { max-height: 330px; }
  .signage-console .rev-summary > div { grid-template-columns: 1fr; gap: 4px; }
  .signage-console .rev-confirm .rev-button { width: 100%; }
}


.console-company-filters { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.console-company-filters > div { min-width: 0; }
.console-company-filters label { display: block; margin-bottom: 6px; font-weight: 700; }
.signage-console .console-company-filters input,
.signage-console .console-company-filters select { width: 100%; min-width: 0; max-width: none; }
@media (max-width: 720px) {
  .console-company-filters { grid-template-columns: 1fr; }
}
.signage-operation-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
  padding: 28px;
  border: 4px solid var(--line);
  background: var(--white);
  box-shadow: 6px 6px 0 var(--line);
}
.signage-operation-entry h2 { margin: 0 0 10px; font-size: 1.5rem; }
.signage-operation-entry p { margin: 0; }
.signage-operation-entry .cta { flex-shrink: 0; }
@media (max-width: 720px) {
  .signage-operation-entry { flex-direction: column; align-items: stretch; padding: 22px 18px; }
}
.rev-company-card .rev-card-body h2 { color: #000; }

.news-archive .news-item { grid-template-columns: 160px minmax(0, 1fr); scroll-margin-top: 120px; }
.news-archive .news-item h2 { margin: 0; font-size: 1.1rem; line-height: 1.75; }

.news-archive .rev-back { margin-top: 36px; }
@media (max-width: 720px) {
  .news-archive .news-item { grid-template-columns: 1fr; }
}

.news-archive a.news-item:is(:hover, :focus, :active, :target) {
  border-color: var(--line);
  outline: none;
}
.news-archive a.news-item:focus-visible {
  outline: none;
}
.news-archive a.news-item:focus-visible h2 {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.news-archive a.news-item:hover h2 { text-decoration: underline; text-underline-offset: 4px; }
.news-detail__body { padding: clamp(24px, 4vw, 48px); background: white; border: 3px solid var(--line); margin-bottom: 32px; }
.news-detail__body p { margin: 0 0 28px; line-height: 2; }
.news-detail .rev-heading h1 { font-size: clamp(1.6rem, 3.5vw, 2.6rem); }

.news-detail__body p:last-child { margin-bottom: 0; }

#company-grid { scroll-margin-top: 120px; }
#company-pagination { flex-wrap: wrap; }
#company-pagination button { font: inherit; font-weight: 700; cursor: pointer; }

.rev-site #industry:focus,
.rev-site #industry:focus-visible {
  outline: none;
  box-shadow: none;
  border-color: var(--line);
}
.industry-dropdown { position: relative; width: min(320px, 100%); }
.industry-dropdown summary { display: flex; justify-content: space-between; gap: 12px; align-items: center; min-height: 52px; padding: 10px 16px; border: 2px solid var(--line); background: white; cursor: pointer; list-style: none; }
.industry-dropdown summary::-webkit-details-marker { display: none; }
.industry-dropdown__options { position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 20; max-height: 280px; overflow-y: auto; border: 2px solid var(--line); background: white; box-shadow: 4px 4px 0 var(--line); }
.industry-dropdown__options label { display: flex; align-items: center; gap: 10px; padding: 10px 12px; cursor: pointer; }
.industry-dropdown__options label:hover { background: #f2f2f2; }
.industry-dropdown__options input { accent-color: var(--black); }
.rev-site .industry-dropdown summary:focus-visible { outline: none; text-decoration: underline; }
#company-detail > .rev-back { display: inline-block; margin-top: 32px; }
