/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/
/****** 変数 ******/
:root {
  /* color-scheme を必ず宣言する */
  color-scheme: only light;
  /* ── Backgrounds ─────────────────────────────────── */
  --color-background-primary:   rgba(255, 255, 255, 1);
  --color-background-primary:   light-dark(rgba(255, 255, 255, 1), rgba(48, 48, 46, 1));
  --color-background-secondary: rgba(245, 244, 237, 1);
  --color-background-secondary: light-dark(rgba(245, 244, 237, 1), rgba(38, 38, 36, 1));
  --color-background-tertiary:  rgba(250, 249, 245, 1);
  --color-background-tertiary:  light-dark(rgba(250, 249, 245, 1), rgba(20, 20, 19, 1));
  --color-background-inverse:   rgba(20, 20, 19, 1);
  --color-background-inverse:   light-dark(rgba(20, 20, 19, 1), rgba(250, 249, 245, 1));
  --color-background-ghost:     rgba(255, 255, 255, 0);
  --color-background-ghost:     light-dark(rgba(255, 255, 255, 0), rgba(48, 48, 46, 0));
  --color-background-info:      rgba(214, 228, 246, 1);
  --color-background-info:      light-dark(rgba(214, 228, 246, 1), rgba(37, 62, 95, 1));
  --color-background-danger:    rgba(247, 236, 236, 1);
  --color-background-danger:    light-dark(rgba(247, 236, 236, 1), rgba(96, 42, 40, 1));
  --color-background-success:   rgba(233, 241, 220, 1);
  --color-background-success:   light-dark(rgba(233, 241, 220, 1), rgba(27, 70, 20, 1));
  --color-background-warning:   rgba(246, 238, 223, 1);
  --color-background-warning:   light-dark(rgba(246, 238, 223, 1), rgba(72, 58, 15, 1));
  --color-background-disabled:  rgba(255, 255, 255, 0.5);
  --color-background-disabled:  light-dark(rgba(255, 255, 255, 0.5), rgba(48, 48, 46, 0.5));
  /* ── Text ────────────────────────────────────────── */
  --contrast: rgba(0,0,0,1);
  --contrast: light-dark(rgba(0,0,0,1),rgba(250, 249, 245, 1));
  --color-text-primary:    rgba(20, 20, 19, 1);
  --color-text-primary:    light-dark(rgba(20, 20, 19, 1), rgba(250, 249, 245, 1));
  --color-text-secondary:  rgba(61, 61, 58, 1);
  --color-text-secondary:  light-dark(rgba(61, 61, 58, 1), rgba(194, 192, 182, 1));
  --color-text-tertiary:   rgba(115, 114, 108, 1);
  --color-text-tertiary:   light-dark(rgba(115, 114, 108, 1), rgba(156, 154, 146, 1));
  --color-text-inverse:    rgba(255, 255, 255, 1);
  --color-text-inverse:    light-dark(rgba(255, 255, 255, 1), rgba(20, 20, 19, 1));
  --color-text-info:       rgba(50, 102, 173, 1);
  --color-text-info:       light-dark(rgba(50, 102, 173, 1), rgba(128, 170, 221, 1));
  --color-text-danger:     rgba(127, 44, 40, 1);
  --color-text-danger:     light-dark(rgba(127, 44, 40, 1), rgba(238, 136, 132, 1));
  --color-text-success:    rgba(38, 91, 25, 1);
  --color-text-success:    light-dark(rgba(38, 91, 25, 1), rgba(122, 185, 72, 1));
  --color-text-warning:    rgba(90, 72, 21, 1);
  --color-text-warning:    light-dark(rgba(90, 72, 21, 1), rgba(209, 160, 65, 1));
  --color-text-disabled:   rgba(20, 20, 19, 0.5);
  --color-text-disabled:   light-dark(rgba(20, 20, 19, 0.5), rgba(250, 249, 245, 0.5));
  --color-text-ghost:      rgba(115, 114, 108, 0.5);
  --color-text-ghost:      light-dark(rgba(115, 114, 108, 0.5), rgba(156, 154, 146, 0.5));
  /* ── Borders ─────────────────────────────────────── */
  --color-border-primary:   rgba(31, 30, 29, 0.4);
  --color-border-primary:   light-dark(rgba(31, 30, 29, 0.4), rgba(222, 220, 209, 0.4));
  --color-border-secondary: rgba(31, 30, 29, 0.3);
  --color-border-secondary: light-dark(rgba(31, 30, 29, 0.3), rgba(222, 220, 209, 0.3));
  --color-border-tertiary:  rgba(31, 30, 29, 0.15);
  --color-border-tertiary:  light-dark(rgba(31, 30, 29, 0.15), rgba(222, 220, 209, 0.15));
  --color-border-inverse:   rgba(255, 255, 255, 0.3);
  --color-border-inverse:   light-dark(rgba(255, 255, 255, 0.3), rgba(20, 20, 19, 0.15));
  --color-border-ghost:     rgba(31, 30, 29, 0);
  --color-border-ghost:     light-dark(rgba(31, 30, 29, 0), rgba(222, 220, 209, 0));
  --color-border-info:      rgba(70, 130, 213, 1);
  --color-border-info:      light-dark(rgba(70, 130, 213, 1), rgba(70, 130, 213, 1));
  --color-border-danger:    rgba(167, 61, 57, 1);
  --color-border-danger:    light-dark(rgba(167, 61, 57, 1), rgba(205, 92, 88, 1));
  --color-border-success:   rgba(67, 116, 38, 1);
  --color-border-success:   light-dark(rgba(67, 116, 38, 1), rgba(89, 145, 48, 1));
  --color-border-warning:   rgba(128, 92, 31, 1);
  --color-border-warning:   light-dark(rgba(128, 92, 31, 1), rgba(168, 120, 41, 1));
  --color-border-disabled:  rgba(31, 30, 29, 0.1);
  --color-border-disabled:  light-dark(rgba(31, 30, 29, 0.1), rgba(222, 220, 209, 0.1));
  /* ── Rings ───────────────────────────────────────── */
  --color-ring-primary:    rgba(20, 20, 19, 0.7);
  --color-ring-primary:    light-dark(rgba(20, 20, 19, 0.7), rgba(250, 249, 245, 0.7));
  --color-ring-secondary:  rgba(61, 61, 58, 0.7);
  --color-ring-secondary:  light-dark(rgba(61, 61, 58, 0.7), rgba(194, 192, 182, 0.7));
  --color-ring-inverse:    rgba(255, 255, 255, 0.7);
  --color-ring-inverse:    light-dark(rgba(255, 255, 255, 0.7), rgba(20, 20, 19, 0.7));
  --color-ring-info:       rgba(50, 102, 173, 0.5);
  --color-ring-info:       light-dark(rgba(50, 102, 173, 0.5), rgba(128, 170, 221, 0.5));
  --color-ring-danger:     rgba(167, 61, 57, 0.5);
  --color-ring-danger:     light-dark(rgba(167, 61, 57, 0.5), rgba(205, 92, 88, 0.5));
  --color-ring-success:    rgba(67, 116, 38, 0.5);
  --color-ring-success:    light-dark(rgba(67, 116, 38, 0.5), rgba(89, 145, 48, 0.5));
  --color-ring-warning:    rgba(128, 92, 31, 0.5);
  --color-ring-warning:    light-dark(rgba(128, 92, 31, 0.5), rgba(168, 120, 41, 0.5));
  /* ── Typography (変更なし) ──────────────────────── */
  --font-sans:  Anthropic Sans, sans-serif;
  --font-mono:  ui-monospace, monospace;
  --font-weight-normal:   400;
  --font-weight-medium:   500;
  --font-weight-semibold: 600;
  --font-weight-bold:    700;
  /* ── Font sizes & line heights (変更なし) ─────── */
  --font-text-xs-size:  12px;  --font-text-xs-line-height:  1.4;
  --font-text-sm-size:  14px;  --font-text-sm-line-height:  1.4;
  --font-text-md-size:  16px;  --font-text-md-line-height:  1.4;
  --font-text-lg-size:  20px;  --font-text-lg-line-height:  1.25;
  --font-heading-xs-size:  12px;  --font-heading-xs-line-height:  1.4;
  --font-heading-sm-size:  14px;  --font-heading-sm-line-height:  1.4;
  --font-heading-md-size:  16px;  --font-heading-md-line-height:  1.4;
  --font-heading-lg-size:  20px;  --font-heading-lg-line-height:  1.25;
  --font-heading-xl-size:  24px;  --font-heading-xl-line-height:  1.25;
  --font-heading-2xl-size: 28px;  --font-heading-2xl-line-height: 1.1;
  --font-heading-3xl-size: 36px;  --font-heading-3xl-line-height: 1;
  /* ── Border radius & shadow (変更なし) ─────────── */
  --border-radius-xs:   4px;
  --border-radius-sm:   6px;
  --border-radius-md:   8px;
  --border-radius-lg:  10px;
  --border-radius-xl:  12px;
  --border-radius-full: 9999px;
  --border-width-regular: 0.5px;
  --shadow-hairline: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}
/****** 管理画面のpost.phpだけ表示するメモ ******/
.post-php .admin-memo { display: block; }
/* それ以外は非表示 */
.admin-memo { display: none; }
/****** ヘッダー検索窓 ******/
.inside-header {
	gap: 10px;
}
.custom-header-search {
    margin-left: auto;
    display: flex;
    align-items: center;
}
.custom-header-search form {
    display: flex;
    align-items: stretch;
}
.custom-header-search input[type="text"] {
    padding: 6px 12px;
    border: 1px solid #ccc;
    border-radius: 4px 0 0 4px;
    width: 200px;
    font-size: 13px;
    height: 34px;
    box-sizing: border-box;
}
.custom-header-search button {
    padding: 0 12px;
    border: none;
    border-radius: 0 4px 4px 0;
    background: #0d2f4f;
    color: #fff;
    cursor: pointer;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}
.custom-header-search button:hover {
    background: #1a4a7a;
}
/****** 文字 ******/
.text-red {
    color: #d00 !important;
}
#epkb-sidebar-container-v2 .epkb-category-level-2-3 .epkb-category-level-2-3__cat-name {
    color: #05703c !important;
}
.epkb-article__text {
	font-weight: 700 !important;
}
.vk_alert_icon_text {
	font-size: 11px !important;
}
.vk_alert_content p {
	margin-bottom: 0 !important;
}
/*
/****** ブロック ******/
#eckb-article-content-body h2,
#eckb-article-content-body h3,
#eckb-article-content-body h5 {
	margin-top: 1em;
}
#eckb-article-content-body p {
	margin: 0 0 .8em;
}
#eckb-article-content-body ul,
#eckb-article-content-body ol {
	margin: 0 0 .3em 1.5em !important;
}
#eckb-article-content-body ul li,
#eckb-article-content-body ol li{
	margin: .4em 0;
}
.wp-block-list li {
	margin-bottom: .6em;
}
.vk_borderBox .vk_borderBox_body .wp-block-heading {
	margin-top: 0 !important;
}
.vk_borderBox .vk_borderBox_body p {
	margin-bottom: 0 !important;
}
/*
/****** スクロール  ******/
html {
  scroll-behavior: smooth;
}
/*
/****** サイドバー ******/
/* スマホのときにコンテンツをサイドバーより上に表示 */
@media (max-width: 768px) {
    #eckb-archive-left-sidebar {
        order: 2 !important;
    }
    #eckb-archive-content {
        order: 1 !important;
    }
}
#epkb-sidebar-container-v2 .epkb-sidebar__cat__top-cat__body-container {
	padding-right: 10px !important;
}
#epkb-sidebar-container-v2 .epkb-sidebar__cat__top-cat__heading-container .epkb-sidebar__heading__inner__name .epkb-sidebar__heading__inner__cat-name {
	font-size: 16px !important;
}
.eckb-article-title__text,
#epkb-sidebar-container-v2 .epkb-category-level-2-3 .epkb-category-level-2-3__cat-name {
	font-size: 14px !important;
}
/*
/****** 記事ヘッダー ******/
#eckb-article-page-container-v2 #eckb-article-body #eckb-article-content #eckb-article-content-header-v2 {
	margin-bottom: 2em;
}
/*
/******* table ******/
.wpdt-c.wpDataTableContainerSimpleTable .wpdtSimpleTable,
.wpdt-c .wpDataTableContainerSimpleTable .wpdtSimpleTable {
	margin: 0 !important;
}
h2.wpdt-c, h3.wpdt-c, h5.wpdt-c {
	margin-bottom: .75em;
    font-size: 1.2em;
}
.wp-block-table thead {
	background: #f1f1f1;
	border-bottom: 1px solid;
}
.align-top td {
	vertical-align: top;
}
/*
/****** VK Blocks ******/
.vk_flow .vk_flow_frame {
  padding: 10px 0 10px 15px !important;
}
.vk_flow.vk_flow-arrow-on::after, .vk_flow>.vk_flow_frame_arrow {
	background-size: 50px 50px !important;
	height: 30px !important;
}
.vk_borderBox .vk_borderBox_body {
	padding: 1em !important;
}
.vk_alert.has-alert-icon {
	padding: .75rem !important;
}
.vk_faq p {
	margin-bottom: 0 !important;
}
@media (max-width: 768px) {
	.vk_alert.has-alert-icon {
		flex-direction: column !important;
	}
	.vk_alert.has-alert-icon>.vk_alert_content {
		padding-left: 0 !important;
		border-left: 0 !important;
	}
}
/*
/****** 提出物一覧のカード ******/
.submission-cards { display: flex; flex-direction: column; gap: 10px; }
.submission-card {
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.submission-card-header {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px; cursor: pointer;
}
.submission-card-header:hover { background: #f7f7f7; }
.badge {
  font-size: 11px; font-weight: bold; padding: 2px 8px;
  border-radius: 100px; white-space: nowrap; flex-shrink: 0;
}
.badge-required { background: #FCEBEB; color: #A32D2D; }
.badge-optional { background: #E6F1FB; color: #0C447C; }
.submission-card-title {
  flex: 1; margin: 0; font-size: 1em; font-weight: 600; line-height: 1.4;
  min-width: 0; display: flex; align-items: center;
}
.submission-card-deadline {
  font-size: 12px; color: #888; white-space: nowrap; flex-shrink: 0;
}
.submission-card-deadline span { color: #333; font-weight: 700; }
.toggle-icon {
  font-size: 12px; color: #aaa; flex-shrink: 0;
}
.submission-card-body {
  border-top: 1px solid #ebebeb;
  background: #f9f9f9;
  display: none;
}
.submission-card-body.open { display: block; }
.sub-items { display: flex; flex-direction: column; }
.sub-item { border-bottom: 1px solid #ebebeb; }
.sub-item:last-child { border-bottom: none; }
.sub-item-header {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  font-size: 13px; font-weight: 600; color: #333;
  cursor: pointer;
}
.sub-item-header:hover { background: #f0f0f0; }
.sub-arrow {
  font-size: 10px; color: #aaa; flex-shrink: 0;
  transition: transform 0.2s;
  margin-left: auto;
}
.sub-arrow.open { transform: rotate(180deg); }
.sub-item-detail {
  display: none;
  padding: 6px 16px 12px 32px;
  background: #fafafa;
}
.sub-item-detail.open { display: block; }
.detail-list { list-style: none; display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 0; }
.detail-list li {
  margin: 0 !important;
  font-size: 12px; color: #555;
  display: flex; gap: 8px; align-items: baseline;
}
.detail-list li::before { content: "–"; flex-shrink: 0; color: #bbb; }
.detail-footer {
  padding: 12px 16px;
  border-top: 1px solid #e8e8e8;
  display: flex;
  align-items: center;
  gap: 8px;
}
.form-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  background: #05703c;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.15s;
}
.form-link:hover { background: #04592f; }
.form-link.disabled {
  background: #ccc; color: #888;
  cursor: not-allowed; pointer-events: none;
}
.form-link svg { width: 13px; height: 13px; flex-shrink: 0; }
.form-link-note { font-size: 11px; color: #aaa; }
@media (max-width: 767.98px) {
  .submission-card-header { flex-wrap: wrap; }
  .submission-card-title { flex-basis: 100%; order: 2; min-width: 0; }
  .badge { order: 1; }
  .submission-card-deadline { order: 3; margin-left: auto; flex-shrink: 0; }
  .toggle-icon { order: 3; }
}
/*
/****** 搬入・搬出スケジュール表（縦型） ******/
.sched-outer {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1em;
}
.scroll-hint {
  display: none;
  font-size: 11px;
  color: #666;
  text-align: right;
  margin-bottom: 4px;
}
@media (max-width: 640px) {
  .scroll-hint {
    display: block;
  }
}
.vtl-wrap {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--color-text-primary);
  min-width: 480px;
}
table.vtl {
  border-collapse: collapse;
  width: 100%;
  table-layout: fixed;
}
table.vtl th,
table.vtl td {
  border: 0.5px solid rgba(31, 30, 29, 0.3);
  padding: 3px 5px;
  vertical-align: top;
  line-height: 1.5;
}
table.vtl thead th {
  background: #555;
  color: #f1efe8;
  font-weight: 500;
  font-size: 13px;
  text-align: center;
  padding: 4px 3px;
}
table.vtl .day-header td {
  background: #2c2c2a;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  padding: 5px 8px;
}
table.vtl .time-cell {
  font-size: 10px;
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
  background: rgb(245, 244, 237);
  color: var(--color-text-primary);
}
table.vtl .cell-active {
  background: #fff;
}
table.vtl .cell-gray {
  background: rgb(250, 249, 245);
}
.sched-badge-red,
.sched-badge-darkred,
.sched-badge-blue,
.sched-badge-green {
  display: inline-block;
  color: #fff;
  font-size: 10px;
  font-weight: 500;
  padding: 1px 4px;
  border-radius: 2px;
  white-space: nowrap;
}
.sched-badge-red {
  background: #e24b4a;
}
.sched-badge-darkred {
  background: #a32d2d;
}
.sched-badge-blue {
  background: #185fa5;
}
.sched-badge-green {
  background: #082;
}
.sched-warn,
.sched-stop {
  font-size: 12px;
  padding: 2px 5px;
  margin-top: 3px;
  line-height: 1.5;
}
.sched-warn {
  color: #633806;
  background: #faeeda;
  border-left: 2px solid #ba7517;
}
.sched-stop {
  color: #791f1f;
  background: #fcebeb;
  border-left: 2px solid #e24b4a;
}
.sched-note {
  font-size: 12px;
  color: #666;
  line-height: 1.5;
}
.sched-trange {
  display: inline-block;
  font-size: 10px;
  font-weight: 500;
  color: #777;
  margin-bottom: 2px;
}
table.vtl td p {
  margin: 0 0 2px;
  font-weight: 500;
}
/*
/****** レンタル備品表 ******/
@media print {
  .dt-buttons, .dataTables_filter, .dataTables_length, .dataTables_info, .dataTables_paginate { display: none !important; }
  .rental-table img { width: 60px; height: 60px; }
  body { font-size: 11px; }
}
.rental-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  font-family: sans-serif;
}
.rental-table th {
  background: #2c4770;
  color: #fff;
  padding: 8px 10px;
  text-align: left;
  font-weight: 500;
  white-space: nowrap;
}
.rental-table td {
  border: 0.5px solid #cccccc;
  padding: 8px 10px;
  vertical-align: top;
}
.rental-table tr:nth-child(even) td {
  background: #f5f5f5;
}
.rental-table img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  display: block;
}
.rental-item-no {
  font-weight: 500;
  color: #2c4770;
  white-space: nowrap;
}
.rental-item-name { font-weight: 500; }
.rental-item-size { color: #666; font-size: 11px; margin-top: 3px; }
.rental-item-price { white-space: nowrap; font-weight: 500; }
.rental-item-note { font-size: 11px; color: #666; margin-top: 4px; }
/* ソートアイコン */
table.rental-table thead th .dt-column-order {
  display: inline-block;
  width: 12px;
  margin-left: 4px;
  vertical-align: middle;
}
table.rental-table thead th .dt-column-order::before {
  content: "▲";
  display: block;
  font-size: 8px;
  line-height: 1;
  color: rgba(255,255,255,0.4);
}
table.rental-table thead th .dt-column-order::after {
  content: "\25BC";
  display: block;
  font-size: 8px;
  line-height: 1;
  color: rgba(255,255,255,0.4);
}
table.rental-table thead th.dt-ordering-asc .dt-column-order::before {
  color: #ffffff;
}
table.rental-table thead th.dt-ordering-desc .dt-column-order::after {
  color: #ffffff;
}
.dt-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
}
.dt-search {
  order: 1;
}
.dt-buttons {
  order: 2;
}
.dt-container table.rental-table {
  order: 3;
  width: 100%;
}
/* 絞り込み入力欄 */
.dt-search .dt-input {
  border: 1px solid #ccc !important;
  border-radius: 4px !important;
  padding: 6px 10px !important;
  font-size: 13px !important;
}
.dt-search label {
  font-size: 14px !important;
  font-weight: 700 !important;
}
/* 印刷ボタン */
.dt-buttons .dt-button {
  background: #333 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 4px !important;
  padding: 6px 16px !important;
  font-size: 14px !important;
  cursor: pointer !important;
  font-weight: 700 !important;
}
.dt-buttons .dt-button:hover {
  background: #555 !important;
}
/* 件数情報を中央寄せ */
.dt-info {
  order: 4;
  width: 100%;
  text-align: center;
  font-size: 12px;
  color: #666;
  margin-top: 8px;
}
/* ページネーション */
.dt-paging {
  order: 5;
  width: 100%;
  text-align: center;
}
.dt-paging nav {
  display: inline-flex;
  gap: 4px;
}
.dt-paging-button {
  background: #333 !important;
  color: #fff !important;
  border: none !important;
  padding: 6px 12px !important;
  border-radius: 4px !important;
  cursor: pointer !important;
  font-size: 13px !important;
}
.dt-paging-button:hover {
  background: #555 !important;
}
.dt-paging-button.current {
  background: #555 !important;
}
.dt-paging-button.disabled {
  background: #999 !important;
  cursor: default !important;
}
/* カテゴリ一覧などの続きを読む */
.eckb-read-more-link {
  color: var(--color-text-info);
  text-decoration: underline;
  cursor: pointer;
}