/* 製品の情報配置。公式DADS部品の寸法・状態は変更しない。 */
:root { --app-viewport-height: 100dvh; --app-viewport-top: 0px; }
html { scroll-padding-block: 24px 112px; }
input, textarea, select { scroll-margin-block: 24px; }
.ws-search-form { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1; max-width: 640px; margin-left: auto; }
.ws-search-form .ws-search { flex: 1; min-width: 0; }
.ws-search-clear { flex: none; }
.ws-mobile-companies { display: none; }
.ws-company-detail:focus { outline: none; }
.ws-mobile-more { display: none; }
.ws-menu-links { display: grid; gap: 8px; padding: 16px 24px 24px; }
.ws-menu-links a { display: flex; align-items: center; min-height: 48px; padding: 8px; text-decoration: underline; }
.ws-agenda { list-style: none; padding: 0 28px 24px; margin: 0; }
.ws-agenda li + li { border-top: 1px solid #b3b3b3; }
.ws-agenda button { display: grid; grid-template-columns: 160px 1fr 24px; gap: 24px; width: 100%; padding: 24px 8px; background: #fff; border: 0; color: #1a1a1a; text-align: left; align-items: center; }
.ws-agenda time { color: var(--color-key-900); font-weight: 700; }
.ws-agenda strong, .ws-agenda small { display: block; }
.ws-agenda small { color: #595959; margin-top: 4px; }
.ws-schedule-view { display: flex; gap: 8px; margin: 0 28px 24px; }
.ws-schedule-view [aria-pressed="true"] { border-width: 3px; font-weight: 700; }
.ws-schedule-options { margin: 0 28px 24px; border-block: 1px solid #b3b3b3; }
.ws-schedule-options > summary { padding: 12px 0; cursor: pointer; font-weight: 700; }
.ws-schedule-options > summary span { font-size: 14px; font-weight: 400; margin-left: 16px; }
.ws-schedule-options .ws-schedule-caption { padding: 16px 0; }
.ws-schedule-options .ws-schedule-controls { padding-top: 16px; flex-wrap: wrap; }
.ws-dialog, .app-dialog { position: fixed; inset-block-start: var(--app-viewport-top); inset-block-end: auto; margin: 16px auto; max-height: calc(var(--app-viewport-height) - 32px); overflow-y: auto; overscroll-behavior: contain; scroll-padding-block: 84px 24px; }
.ws-dialog > header { top: 0; }
.ws-dialog .ws-field textarea { font-size: 1rem; max-height: max(80px, calc(var(--app-viewport-height) - 160px)); }
@media(max-width:600px) {
  .ws-app .ws-toolbar { position: relative; padding: 16px; border-bottom: 1px solid #b3b3b3; gap: 12px; }
  .ws-app .ws-toolbar::before { content: 'カタヅク就活'; display: block; width: calc(100% - 56px); font-size: 18px; }
  .ws-app .ws-toolbar > .ws-icon-button { position: absolute; right: 12px; top: 4px; }
  .ws-app .ws-search { width: 100%; display: flex; gap: 8px; }
  .ws-search-form { flex-basis: 100%; }
  .ws-app .ws-search > svg, .ws-app .ws-breadcrumb { display: none; }
  .ws-app .ws-search input { width: 100%; font-size: 16px; }
  .ws-app .ws-sidebar { padding-bottom: env(safe-area-inset-bottom, 0px); height: calc(72px + env(safe-area-inset-bottom, 0px)); background: #fff; z-index: 20; }
  .ws-app .ws-sidebar nav a { min-height: 72px; padding: 8px 2px; }
  .ws-app .ws-sidebar nav a svg { width: 22px; height: 22px; }
  .ws-app .ws-side-bottom { display: none; }
  .ws-mobile-more { display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; gap: 4px; align-self: stretch; border: 0; background: transparent; font-size: 14px; }
  .ws-mobile-more svg { width: 22px; height: 22px; }
  .ws-app { padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
  .ws-app .ws-page-head { padding: 24px 16px; }
  .ws-app .ws-page-head h1 { font-size: 28px; }
  .ws-app .ws-select-label { width: 100%; align-items: start; flex-direction: column; gap: 8px; }
  .ws-select-label .dads-select__control, .ws-app .ws-select-label select { width: 100%; max-width: none; }
  .ws-company-list .ws-table-wrap { display: none; }
  .ws-mobile-companies { display: block; list-style: none; padding: 0 16px; margin: 0; }
  .ws-mobile-companies li { border-top: 1px solid #b3b3b3; padding: 20px 0; }
  .ws-mobile-companies li:last-child { border-bottom: 1px solid #b3b3b3; }
  .ws-mobile-company-open { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; padding: 0 0 8px; background: transparent; border: 0; text-align: left; font-size: 18px; font-weight: 700; color: var(--color-key-900); text-decoration: underline; text-underline-offset: 4px; }
  .ws-mobile-company-open svg { width: 16px; flex-shrink: 0; }
  .ws-company-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 0 0 12px; font-size: 14px; color: #595959; }
  .ws-mobile-companies .ws-contact-names { display: flex; flex-wrap: wrap; gap: 8px; }
  .ws-company-back { width: 100%; margin-bottom: 24px; }
  .ws-app .ws-company-detail { padding: 16px; }
  .ws-app .ws-detail-head { align-items: start; }
  .ws-detail-head .ws-company-icon { display: none; }
  .ws-app .ws-detail-head h2 { font-size: 24px; }
  .ws-app .ws-face-grid { grid-template-columns: repeat(2,minmax(0,1fr)); padding: 0 16px; gap: 24px 16px; }
  .ws-app .ws-person-name { font-size: 18px; }
  .ws-app .ws-filter-bar { margin-inline: 16px; }
  .ws-app .ws-filter-bar > [role="group"] { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .ws-app .ws-search-clear { font-size: 16px; }
  .ws-schedule-view { margin: 0 16px 24px; }
  .ws-schedule-options { margin: 0 16px 24px; }
  .ws-agenda { padding: 0 16px 24px; }
  .ws-agenda button { grid-template-columns: 1fr 24px; gap: 8px; padding: 20px 0; }
  .ws-agenda time { grid-column: 1; }
  .ws-agenda button > span { grid-column: 1; }
  .ws-agenda button > svg { grid-column: 2; grid-row: 1 / 3; }
  .ws-app .ws-connect { padding: 24px 16px; }
  .access-state, .ws-connect .access-state { min-height: 0; overflow: visible; }
  .access-layout { display: none; }
  .access-entry { padding: 0; background: none; }
  .access-form { max-width: none; padding: 20px; box-shadow: none; }
  .ws-dialog, .ws-dialog.wide { width: calc(100% - 24px); max-width: none; padding: 0; margin-block: 12px; max-height: calc(var(--app-viewport-height) - 24px); }
  .ws-dialog > header { padding: 12px 16px; gap: 8px; }
  .ws-dialog > header h2 { font-size: 18px; }
  .ws-dialog .ws-profile-body { padding: 0 16px 24px; }
  html[data-keyboard-open="true"] { scroll-padding-block: 16px; }
  [data-keyboard-open="true"] body { padding-bottom: var(--app-keyboard-inset, 0px); }
  [data-keyboard-open="true"] .ws-sidebar { display: none; }
  [data-keyboard-open="true"] .ws-app { padding-bottom: 24px; }
  [data-keyboard-open="true"] .ws-toolbar::before, [data-keyboard-open="true"] .ws-toolbar > .ws-icon-button { display: none; }
  [data-keyboard-open="true"] .site-header { position: relative; }
}
