/* 共通設定 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: sans-serif;
  padding-top: 60px;
  background: #fff;
}

p.break{
  overflow-wrap: break-word;
}

/* ヘッダー */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 60px;
  background: #fff;
  border-bottom: 1px solid #ccc;
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 16px;
  z-index: 999; /* ← これが大事！ */
}

.logo { height: 40px; }

.mypage-icon {
  width: 40px; height: 40px; border-radius: 50%; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}

.mypage-icon img {
  width: 100%; height: 100%; object-fit: cover;
}

/* スライドメニュー */
.slide-menu {
  position: fixed;
  top: 0; right: -260px;
  width: 260px; height: 100%;
  background: #fff;
  box-shadow: -2px 0 5px rgba(0,0,0,0.2);
  z-index: 2000; /* ← 必ずヘッダーより前面 */
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.slide-menu.open { right: 0; }

.slide-profile {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 16px;
  background: #fff;
}

.slide-mypage-icon {
  width: 60px; height: 60px; border-radius: 50%;
  overflow: hidden;
  display: block;
  margin-left: auto; /* ← 右寄せ */
}

.slide-mypage-icon img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

.slide-username {
  font-size: 14px; color: #333; margin-top: 8px;
}

/* メンバー評価（星） */
.member-rating {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 4px;
  font-size: 12px;
  color: #555;
}
.member-rating-stars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.member-rating-stars .fa-star {
  color: #ffd54f;
  cursor: default;
}
.member-rating[data-can-rate="1"] .member-rating-stars .fa-star {
  cursor: pointer;
  transition: transform 0.1s ease, color 0.1s ease;
}
.member-rating[data-can-rate="1"] .member-rating-stars .fa-star:hover {
  transform: scale(1.1);
}
.member-rating-text {
  margin-top: 2px;
}
.member-rating-edit-hint {
  margin-top: 2px;
  font-size: 11px;
  color: #888;
}

.slide-menu nav {
  flex: 1;
  overflow-y: auto;
  padding: 24px 16px 16px;
}

.slide-menu ul { list-style: none; margin: 0; padding: 0; }

.slide-menu li { margin-bottom: 16px; }

.slide-menu a {
  text-decoration: none; color: #333; font-size: 16px;
}

/* オーバーレイ */
.overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.4);
  display: none;
  z-index: 1500; /* ← ヘッダーより上、メニューより下 */
}

.overlay.show { display: block; }

/* メイン */
main {
  padding: 16px;
  margin-top: 20px; /* ← 追加で少し空ける */
}

/* フッター */
.site-footer {
  margin-top: 40px;
  background: linear-gradient(to top, red 30%, #f88 70%);
  color: #fff;
  font-size: 13px;
}
.footer-menu {
  background-color: #ccc;
  display: grid;
  grid-template-columns: repeat(2, auto); /* 2列に固定 */
  justify-content: center;
  gap: 12px 24px; /* 行間・列間 */
  padding: 16px 8px;
}
.footer-menu a {
  color: #333;
  text-decoration: none;
  font-weight: 500;
}
.footer-copy {
  background-color: red;
  text-align: center;
  padding: 8px;
  color: #fff;
  font-size: 12px;
}
.footer-copy .brand {
  color: #fff200;
  font-weight: bold;
}


/* calendar.css */

.calendar-header {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-bottom: 10px;
}

.calendar-header .month-nav {
  background: #fff;
  color: #333;
  border: 1px solid #ccc;
  padding: 4px 12px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
}

.calendar-header .month-nav:hover {
  background: #f0f0f0;
}

.calendar-header .current-month {
  font-weight: bold;
  font-size: 1.4em;
}


#currentMonthLabel {
  font-size: 24px;   /* 好きな大きさに */
  font-weight: bold; /* 太字にしたいなら */
}

.calendar-header button {
  font-size: 20px;
  padding: 4px 10px;
}

.calendar {
  display: flex;
  flex-direction: column;
  max-width: 100%;
}

.weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: #f0f0f0;
  text-align: center;
}

.weekday {
  padding: 10px 0;
  font-weight: bold;
}

.days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.day {
  border: 1px solid #ddd;
  min-height: 60px;
  position: relative;
  padding: 4px;
  cursor: pointer;
}

.day.sunday { color: red; }
.day.saturday { color: blue; }
.day.today { background: #e0f7fa; }
.day.worked { background: #e8f5e9; }

.day .date {
  font-size: 12px;
}

.day .hours {
  position: absolute;
  bottom: 4px;
  right: 4px;
  font-size: 12px;
}

.day.sunday {
  color: red;
  background: #ffeaea; /* 薄い赤背景 */
}

.day.saturday {
  color: blue;
  background: #eaf3ff; /* 薄い青背景 */
}

/* モーダル */
.modal {
  display: none;
  position: fixed;
  z-index: 10;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
}

.modal-content {
  background: #fff;
  margin: 100px auto;
  padding: 20px;
  width: 90%;
  max-width: 400px;
  border-radius: 8px;
}

#closeModal {
  float: right;
  font-size: 24px;
  cursor: pointer;
}

  .salary-table {
    width: 100%;
    border-collapse: collapse;
    font-family: sans-serif;
  }
  .salary-table th,
  .salary-table td {
    border: 1px solid #ccc;
    padding: 8px 12px;
    text-align: left;
  }
  .salary-table th {
    background-color: #f0f0f0;
  }
  .salary-table tfoot td {
    font-weight: bold;
    background-color: #f9f9f9;
  }
.month-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  gap: 1rem;
  margin: 1em 0;
}

.month-nav a {
  text-decoration: none;
  color: #000;
  font-weight: bold;
}

.month-nav span {
  font-weight: bold;
  white-space: nowrap;
}

/* 発注ページ用 */
.order {
  font-family: "Helvetica Neue", sans-serif;
  background-color: #ffffff;
  padding: 24px 16px 40px;
}
.order .form-container {
  background-color: #ffffff;
  padding: 24px 20px 28px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}
.order h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #0077cc;
}
.order label {
  display: block;
  font-weight: bold;
  margin: 15px 0 5px;
  color: #333;
}
.order input[type="text"],
.order textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
      border-radius: 6px;
      font-size: 16px;
      transition: border-color 0.3s;
      box-sizing: border-box;
    }

    .order input[type="text"]:focus,
    .order textarea:focus {
      border-color: #0077cc;
      outline: none;
    }

    .order button {
      display: block;
      width: 100%;
      padding: 12px;
      font-size: 16px;
      background-color: #0077cc;
      color: #fff;
      border: none;
      border-radius: 6px;
      cursor: pointer;
      margin-top: 20px;
      transition: background-color 0.3s;
    }

    .order button:hover {
      background-color: #005fa3;
    }

textarea {
  transition: height 0.2s ease;
  overflow-y: hidden;
}

/* 掲示板ページ用 */
.order-list-page body { font-family: sans-serif; background: #f6f9fc; padding: 20px; }
.order-list-page h1 { text-align: center; color: #0077cc; }
.order-list-page .count { text-align: center; margin-bottom: 20px; font-weight: bold; }
.order-list-page .card {
  background: white;
  padding: 20px;
  margin: 15px auto;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  max-width: 800px;
}
.order-list-page .card.clickable-card {
  cursor: pointer;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.order-list-page .card.clickable-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transform: translateY(-2px);
}
.favorite-info {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.favorite-count {
  font-size: 14px;
  color: #666;
  margin-right: 4px;
}
.order-list-page .card h2 { margin-bottom: 10px; color: #0077cc; }
.order-list-page .card p { margin: 5px 0; }
.order-list-page .timestamp { text-align: right; color: #888; font-size: 13px; }
.order-list-page .pagination {
  text-align: center;
  margin: 30px 0;
}
.order-list-page .pagination a {
  display: inline-block;
  margin: 0 5px;
  padding: 8px 12px;
  background-color: #0077cc;
  color: white;
  text-decoration: none;
  border-radius: 5px;
}
.order-list-page .pagination .disabled {
  background-color: #ccc;
  pointer-events: none;
}

/* お気に入りハートアイコン（ドコモ絵文字風） */
.fav-link {
  display: inline-block;
  width: 24px;
  height: 24px;
  cursor: pointer;
  border: none;
  background: transparent;
  padding: 0;
  vertical-align: middle;
  line-height: 1;
  transform: none !important;
  transition: none;
}
.fav-link:active,
.fav-link:focus {
  transform: none !important;
  outline: none;
}
.fav-link svg {
  display: block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  max-width: 20px;
  max-height: 20px;
}
.fav-link:active svg,
.fav-link:focus svg {
  width: 20px !important;
  height: 20px !important;
  transform: none !important;
}
/* デフォルト：グレー（単色） */
.fav-link .fav-heart-path {
  fill: #999 !important;
  stroke: none !important;
  transition: fill 0.2s ease;
}
/* お気に入り時：赤（単色） */
.fav-link.is-favorite .fav-heart-path {
  fill: #e60012 !important;
  stroke: none !important;
}

/* カテゴリタブ */
.category-tabs {
  display: flex;
  justify-content: center;
  gap: 0;
  margin: 20px 0;
  border-bottom: 2px solid #ddd;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.category-tab {
  padding: 12px 24px;
  background: #f5f5f5;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  font-size: 16px;
  color: #666;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}
.category-tab:hover {
  background: #e8e8e8;
}
.category-tab.active {
  background: #fff;
  color: #0077cc;
  border-bottom-color: #0077cc;
  font-weight: bold;
}

@media (max-width: 640px) {
  .category-tab {
    padding: 12px 16px;
    font-size: 14px;
  }
}

/* 売買（外部URL宣伝） */
.marketplace-notice {
  background: #fff8e6;
  color: #5c4a1a;
  border-left: 4px solid #e6a817;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 24px;
  line-height: 1.6;
}
.marketplace-notice-title {
  font-weight: 700;
  margin: 0 0 8px;
}
.marketplace-notice p {
  margin: 0;
  font-size: 14px;
}
.marketplace-form label {
  display: block;
  margin: 16px 0 8px;
  font-weight: 600;
}
.marketplace-form .required {
  color: #c62828;
  font-size: 13px;
  font-weight: 400;
}
.marketplace-submit {
  margin-top: 24px;
  width: 100%;
}
.marketplace-disclaimer-inline {
  margin-top: 8px;
  font-size: 12px;
  color: #666;
}
.marketplace-list-note {
  max-width: 800px;
  margin: 0 auto 16px;
  padding: 12px 16px;
  background: #fff8e6;
  color: #5c4a1a;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.6;
}
.marketplace-fetch-btn {
  margin-top: 12px;
  min-height: 48px;
}
.marketplace-fetch-status {
  margin: 8px 0 0;
  font-size: 13px;
  color: #555;
  min-height: 1.2em;
}
.marketplace-fetch-status.is-error {
  color: #c62828;
}
.marketplace-preview {
  margin-top: 16px;
  padding: 16px;
  background: #f5f5f7;
  border-radius: 12px;
  line-height: 1.6;
}
.marketplace-preview-label {
  font-weight: 700;
  margin: 0 0 8px;
}
.marketplace-preview-image {
  display: block;
  max-width: 240px;
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 0 0 12px;
  object-fit: cover;
}
.marketplace-manual {
  margin-top: 12px;
}
.marketplace-thumb-wrap {
  margin: 8px 0 12px;
}
.marketplace-thumb {
  display: block;
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
}

/* 受注投稿: 個人/法人タブの選択状態を明確化 */
.entry-type-tabs {
  border-bottom: none;
  gap: 10px;
  justify-content: flex-start;
}
.entry-type-tab {
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #fff;
  color: #475569;
  border-bottom: 1px solid #cbd5e1;
}
.entry-type-tab.active {
  background: #1d4ed8;
  color: #fff;
  border-color: #1d4ed8;
  border-bottom-color: #1d4ed8;
}
.order .entry-type-tabs {
  margin-bottom: 12px;
}
/* .order button の青背景・hover に負けないよう固定（未選択は白） */
.order button.entry-type-tab,
.order button.entry-type-tab:hover {
  background: #fff;
  color: #475569;
  border-color: #cbd5e1;
}
.order button.entry-type-tab.active,
.order button.entry-type-tab.active:hover {
  background: #1d4ed8;
  color: #fff;
  border-color: #1d4ed8;
}
/* 受注投稿: 投稿に含める項目の選択ブロック */
.order .entry-select-block {
  margin-top: 10px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}
.order .entry-select-title {
  font-weight: 700;
  margin-bottom: 8px;
}
.order .entry-select-note {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 8px;
}
.order .entry-option-wrap {
  margin-bottom: 8px;
}
.order .entry-option-heading {
  font-weight: 700;
  margin-bottom: 6px;
}
.order label.entry-option-item {
  display: block;
  margin-bottom: 6px;
}
.order .entry-slider-row {
  margin: 10px 0;
}
.order .entry-slider-row label {
  margin: 0 0 6px;
  font-weight: 700;
}
.order label.entry-leader-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 12px;
  font-weight: 700;
}
.order .entry-license-warning {
  margin-top: 6px;
  color: #dc2626;
  font-weight: 700;
  font-size: 13px;
}
.order .entry-license-warning a {
  text-decoration: underline;
}
.order label.entry-field-label {
  margin-top: 12px;
}
.order #applyMypageToTextBtn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.entry-calendar-wrap {
  border: 1px solid #dbe3ec;
  border-radius: 12px;
  background: #fff;
  padding: 10px;
}
.entry-calendar-wrap.order-detail-calendar {
  margin-top: 8px;
}
.inquiry-mail-link {
  margin-left: 1em;
  display: inline-block;
}
.entry-calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.entry-calendar-month {
  font-weight: 700;
  color: #1e293b;
}
.entry-calendar-nav {
  border: 1px solid #dbe3ec;
  background: #fff;
  color: #334155;
  border-radius: 8px;
  width: 30px;
  height: 30px;
  cursor: pointer;
  font-size: 12px;
  line-height: 1;
}
.entry-calendar-head .entry-calendar-nav {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 30px !important;
  min-width: 30px !important;
  max-width: 30px !important;
  height: 30px !important;
  padding: 0 !important;
  margin-top: 0 !important;
  flex: 0 0 30px !important;
}
.entry-calendar-nav:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.entry-calendar-week,
.entry-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.entry-calendar-week {
  margin-bottom: 6px;
  color: #64748b;
  font-size: 12px;
  text-align: center;
}
.entry-calendar-day {
  border: 1px solid #d1d5db !important;
  background: #eef2f7 !important; /* 未選択: 薄グレー */
  color: #334155 !important;
  border-radius: 8px;
  height: 34px;
  cursor: pointer;
}
.entry-calendar-day.is-selected {
  background: #1d4ed8 !important; /* 選択: 青 */
  border-color: #1d4ed8 !important;
  color: #fff !important;
  font-weight: 700;
}
.entry-calendar-day.is-blank {
  background: #f8fafc !important;
  border-color: #f1f5f9 !important;
  cursor: default;
}
.entry-calendar-day.is-disabled {
  background: #f3f4f6 !important;
  color: #9ca3af !important;
  border-color: #e5e7eb !important;
  cursor: not-allowed !important;
  opacity: 0.8;
}

/* 検索バー（トップ一覧） */
.search-bar {
  max-width: 800px;
  margin: 0 auto 16px;
  padding: 0 16px;
}
.search-bar-form {
  width: 100%;
}
.search-bar-inner {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  padding: 6px 12px;
}
.search-icon {
  font-size: 18px;
  color: #999;
  margin-right: 6px;
}
.search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 16px;
  padding: 6px 4px;
  background: transparent;
}
.search-input::placeholder {
  color: #aaa;
}
.search-submit {
  border: none;
  outline: none;
  background: #0077cc;
  color: #fff;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  white-space: nowrap;
}
.search-submit:hover {
  background: #005fa3;
}
.search-filter-toggle {
  margin-top: 8px;
  border: none;
  background: none;
  padding: 0;
  font-size: 13px;
  color: #0077cc;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}
.search-filter-region {
  margin-top: 8px;
  padding: 12px;
  border-radius: 12px;
  background: #f5f5f5;
}
/* 詳細条件ボトムシート */
.search-detail-toggle {
  margin-top: 8px;
  border: none;
  background: none;
  padding: 0;
  font-size: 13px;
  color: #0077cc;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}
.search-detail-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  display: none;
  z-index: 1800;
}
.search-detail-backdrop.open {
  display: block;
}
.search-detail-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  max-width: 900px;
  margin: 0 auto;
  background: #fff;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.15);
  transform: translateY(100%);
  transition: transform 0.25s ease-out;
  z-index: 1900;
  padding: 16px 16px 20px;
}
.search-detail-sheet.open {
  transform: translateY(0);
}
.search-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.search-detail-title {
  font-size: 16px;
  font-weight: bold;
  color: #333;
}
.search-detail-close {
  border: none;
  background: none;
  font-size: 13px;
  color: #666;
  cursor: pointer;
}
.search-detail-body {
  max-height: 60vh;
  overflow-y: auto;
}
.search-detail-note {
  font-size: 12px;
  color: #666;
  margin-bottom: 12px;
}
.search-detail-actions {
  margin-top: 16px;
}

/* 条件チップ */
.search-chips {
  margin-top: 8px;
  padding: 0 16px 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.search-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
}
.search-chip-region {
  background: #e0f7e9;
  color: #2e7d32;
}
.search-chip-conditions {
  background: #e3f2fd;
  color: #1976d2;
}
.search-chip-work-style {
  background: #ffebee;
  color: #c62828;
}
.search-chip-qualifications {
  background: #fff8e1;
  color: #ff8f00;
}
.search-chip-period {
  background: #eeeeee;
  color: #555555;
}

/* AIチャットコンテナ */
.ai-chat-container {
  display: none;
  margin-top: 20px;
  padding: 20px;
  background: #f5f5f5;
  border-radius: 8px;
  border: 1px solid #ddd;
}
.ai-chat-container.active {
  display: block;
}
.ai-message {
  margin-bottom: 15px;
  padding: 12px;
  border-radius: 6px;
}
.ai-message.user {
  background: #e3f2fd;
  margin-left: 20%;
}
.ai-message.assistant {
  background: #fff;
  border: 1px solid #ddd;
  margin-right: 20%;
}
.ai-input-area {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}
.ai-input-area input {
  flex: 1;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}
.ai-input-area button {
  padding: 10px 20px;
  background: #0077cc;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
.ai-input-area button:hover {
  background: #005fa3;
}
.ai-loading {
  display: none;
  text-align: center;
  padding: 10px;
  color: #666;
}
.ai-loading.active {
  display: block;
}

/* フォームステップ */
.form-step {
  display: none;
}
.form-step.active {
  display: block;
}
.step-indicator {
  margin-bottom: 20px;
  padding: 10px;
  background: #f0f0f0;
  border-radius: 4px;
  font-size: 14px;
}

/* メッセージ表示 */
.message-success {
  background: #e8f5e9;
  color: #2e7d32;
  padding: 12px;
  border-radius: 4px;
  margin-bottom: 20px;
}
.message-error {
  background: #ffebee;
  color: #c62828;
  padding: 12px;
  border-radius: 4px;
  margin-bottom: 20px;
}

/* フォーム要素 */
.form-input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 16px;
}
.form-textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 16px;
  resize: vertical;
}
.form-select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 16px;
}
.form-button {
  width: 100%;
  padding: 12px;
  background: #0077cc;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
}
.form-button:hover {
  background: #005fa3;
}
.form-button-secondary {
  background: #6c757d;
}
.form-button-secondary:hover {
  background: #5a6268;
}

/* リンクスタイル */
.back-link {
  margin-bottom: 20px;
}
.back-link a {
  color: #0077cc;
  text-decoration: none;
}

/* カテゴリバッジ */
.category-badge {
  font-size: 12px;
  color: #666;
  background: #f0f0f0;
  padding: 2px 8px;
  border-radius: 3px;
  margin-left: 8px;
}

/* クライアント名表示 */
.client-name {
  font-size: 14px;
  color: #666;
}

/* お気に入り情報 */
.favorite-info {
  float: right;
}

/* 画像表示 */
.thread-image {
  max-width: 100%;
  height: auto;
  margin-top: 10px;
}

/* マージン調整 */
.margin-bottom {
  margin-bottom: 20px;
}
.margin-top {
  margin-top: 30px;
}
.margin-top-small {
  margin-top: 20px;
}
.margin-bottom-small {
  margin-bottom: 15px;
}

/* ボタングループ */
.button-group {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.button-group button {
  flex: 1;
}

/* 確認画面 */
.confirm-box {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
}
.confirm-content {
  background: white;
  padding: 10px;
  border-radius: 4px;
  white-space: pre-wrap;
}
.confirm-content:not(:last-child) {
  margin-bottom: 10px;
}

/* 空のメッセージ */
.empty-message {
  text-align: center;
  padding: 40px 20px;
  color: #666;
}
.empty-message a {
  color: #0077cc;
  text-decoration: underline;
}

/* アクションリンク */
.action-links {
  margin-top: 10px;
}
.action-link {
  color: #0077cc;
  text-decoration: none;
  margin-right: 15px;
}
.action-link:hover {
  text-decoration: underline;
}

/* お知らせ・FAQ・ガイド用スタイル */
.notice-item {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}
.notice-item:last-child {
  border-bottom: none;
}
.notice-item h3 {
  color: #0077cc;
  margin-bottom: 10px;
  font-size: 16px;
}

.faq-item {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}
.faq-item:last-child {
  border-bottom: none;
}
.faq-item h3 {
  color: #0077cc;
  margin-bottom: 10px;
  font-size: 16px;
}
.faq-item p {
  margin-left: 20px;
  line-height: 1.8;
}

.card h1 {
  font-size: 24px;
  color: #0077cc;
  margin-bottom: 20px;
  border-bottom: 2px solid #0077cc;
  padding-bottom: 10px;
}
.card h2 {
  font-size: 20px;
  color: #333;
  margin-top: 30px;
  margin-bottom: 15px;
  padding-left: 10px;
  border-left: 4px solid #0077cc;
}
.card h3 {
  font-size: 18px;
  color: #555;
  margin-top: 20px;
  margin-bottom: 10px;
}
.card ol, .card ul {
  margin-left: 20px;
  margin-bottom: 15px;
  line-height: 1.8;
}
.card li {
  margin-bottom: 8px;
}
.card ol ol {
  margin-left: 30px;
  margin-top: 8px;
}

.inquiry-form label {
  display: block;
  font-weight: bold;
  margin-top: 20px;
  margin-bottom: 5px;
  color: #333;
}
.inquiry-form label:first-child {
  margin-top: 0;
}

/* LINEログインボタン（シンプル版） */
.login-prompt-simple {
  text-align: center;
  margin: 30px 20px;
}
.line-login-button-simple {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #00C300;
  color: white;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 16px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,195,0,0.2);
  gap: 10px;
  line-height: 1;
  white-space: nowrap;
}
.line-login-button-simple:hover {
  background: #00A000;
  box-shadow: 0 4px 12px rgba(0,195,0,0.3);
}
.line-login-button-simple:active {
  transform: scale(0.98);
}
.line-login-button-simple i {
  flex-shrink: 0;
  font-size: 22px;
  display: block;
  margin: 0;
  padding: 0;
}
.line-login-button-simple span {
  display: inline-block;
  vertical-align: middle;
  line-height: 1;
}

.line-login-btn {
  display: inline-flex;
}

/* ランディングページ */
.landing-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.landing-hero {
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  margin-bottom: 60px;
  color: white;
}
.landing-hero h1 {
  font-size: 48px;
  margin-bottom: 15px;
  font-weight: bold;
}
.hero-subtitle {
  font-size: 24px;
  margin-bottom: 20px;
  opacity: 0.95;
}
.hero-description {
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 40px;
  opacity: 0.9;
}
.hero-cta {
  margin-top: 30px;
}
.hero-visual-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.hero-visual-card {
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.26);
  border-radius: 10px;
  padding: 10px;
  text-align: center;
}
.hero-visual-image {
  width: 100%;
  max-width: 110px;
  height: 70px;
  object-fit: contain;
  margin: 0 auto 6px;
  display: block;
}
.hero-visual-card p {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
}

.landing-features {
  margin-bottom: 60px;
}
.landing-features h2 {
  text-align: center;
  font-size: 32px;
  color: #333;
  margin-bottom: 40px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}
.feature-card {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.feature-icon {
  font-size: 48px;
  margin-bottom: 15px;
}
.feature-card h3 {
  font-size: 20px;
  color: #0077cc;
  margin-bottom: 10px;
}
.feature-card p {
  color: #666;
  line-height: 1.6;
  font-size: 14px;
}

.landing-howto {
  margin-bottom: 60px;
  background: #f6f9fc;
  padding: 50px 20px;
  border-radius: 12px;
}
.landing-howto h2 {
  text-align: center;
  font-size: 32px;
  color: #333;
  margin-bottom: 40px;
}
.howto-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}
.step-item {
  background: white;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.step-number {
  width: 60px;
  height: 60px;
  background: #0077cc;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: bold;
  margin: 0 auto 20px;
}
.step-item h3 {
  font-size: 20px;
  color: #333;
  margin-bottom: 10px;
}
.step-item p {
  color: #666;
  line-height: 1.6;
  font-size: 14px;
}

.landing-cta {
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  color: white;
}
.landing-cta h2 {
  font-size: 36px;
  margin-bottom: 15px;
}
.landing-cta > p {
  font-size: 18px;
  margin-bottom: 40px;
  opacity: 0.9;
}
.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}
.cta-button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: white;
  color: #667eea;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 16px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  white-space: nowrap;
}
.cta-button-secondary:hover {
  background: #f0f0f0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.landing-alert {
  margin: 15px;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
}
.landing-alert-error {
  background: #ffebee;
  color: #c62828;
}
.landing-alert-info {
  background: #e3f2fd;
  color: #1565c0;
}
.hero-points {
  list-style: none;
  margin: 0 auto 28px;
  padding: 0;
  max-width: 680px;
  display: grid;
  gap: 8px;
}
.hero-points li {
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.24);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
}
.landing-mid-cta {
  text-align: center;
  margin-bottom: 60px;
  padding: 38px 20px;
  border: 1px solid #dbe3ec;
  border-radius: 12px;
  background: #fff;
}
.landing-mid-cta h2 {
  font-size: 28px;
  margin-bottom: 10px;
  color: #0f172a;
}
.landing-mid-cta p {
  color: #475569;
  margin-bottom: 24px;
}
.landing-sticky-cta {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 999;
  background: #00C300;
  color: #fff;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 16px;
  box-shadow: 0 8px 20px rgba(0, 195, 0, 0.35);
}
body.landing-page-body {
  padding-bottom: 76px;
}
@media (max-width: 768px) {
  .landing-hero {
    padding: 44px 16px;
    margin-bottom: 34px;
  }
  .landing-hero h1 {
    font-size: 36px;
  }
  .hero-subtitle {
    font-size: 18px;
  }
  .hero-description {
    font-size: 15px;
    margin-bottom: 24px;
  }
  .hero-visual-grid {
    grid-template-columns: 1fr;
  }
  .hero-visual-image {
    max-width: 90px;
    height: 58px;
  }
  .landing-features h2,
  .landing-howto h2,
  .landing-mid-cta h2,
  .landing-cta h2 {
    font-size: 24px;
  }
  .landing-sticky-cta {
    display: inline-flex;
  }
}

/* AI結果表示 */
.ai-result-container {
  display: none;
  margin-top: 20px;
  padding: 20px;
  background: #f0f4f8;
  border-radius: 8px;
  border: 1px solid #ddd;
}
.ai-result-box {
  background: white;
  padding: 15px;
  border-radius: 6px;
  min-height: 150px;
  max-height: 400px;
  overflow-y: auto;
  line-height: 1.8;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  word-wrap: break-word;
}
.ai-error-message {
  display: none;
  color: #d32f2f;
  margin-top: 4px;
  padding: 8px;
  background: #ffebee;
  border-radius: 4px;
  font-size: 13px;
  white-space: pre-wrap;
  line-height: 1.6;
}
.ai-result-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}
.ai-result-actions button {
  flex: 1;
  max-width: 200px;
}

/* ====================================== */
/* 詳細ページ（order_detail.php）        */
/* ====================================== */
/* 既定は通常の空白処理（pre-wrap だと行頭スペース／不可視文字がそのまま段落ズレになる） */
.detail-body {
  white-space: pre-line;
  word-break: break-word;
}
/* ユーザー投稿のコメント等は改行・スペースを保持 */
.bbs-body.detail-body {
  white-space: pre-wrap;
}
.detail-body br {
  white-space: normal;
}
.bbs-section,
.dm-section {
  margin-top: 24px;
  padding: 18px 20px 20px;
  border: 1px solid #e0e4ea;
  border-radius: 12px;
  background: #fafbff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}
.bbs-section h3,
.dm-section h3 {
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 600;
  color: #1f2933;
}
.bbs-item {
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}
.bbs-item:last-child {
  border-bottom: none;
}
.bbs-meta {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 4px;
}
.bbs-body {
  margin-top: 4px;
}
.dm-section form,
.bbs-section form {
  margin-top: 12px;
}
.dm-section button,
.bbs-section button {
  display: inline-block;
  padding: 8px 18px;
  font-size: 14px;
  border-radius: 999px;
  border: none;
  background: #0077cc;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
.dm-section button:hover,
.bbs-section button:hover {
  background: #005fa3;
}
.dm-section textarea,
.bbs-section textarea {
  width: 100%;
  min-height: 100px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #d0d7e2;
  font-size: 14px;
  resize: vertical;
}
.login-to-post {
  color: #666;
  font-size: 0.9rem;
}
.login-to-post-error {
  color: #c00;
}

/* 汎用マージン・テキストユーティリティ */
.mt-8 {
  margin-top: 8px;
}
.mt-10 {
  margin-top: 10px;
}
.mt-12 {
  margin-top: 12px;
}
.mb-12 {
  margin-bottom: 12px;
}
.text-success {
  color: #0a0;
}

/* ====================================== */
/* メッセージ一覧（messages.php）        */
/* ====================================== */
.message-list-page {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 0 8px;
  background: #fff;
}
.message-list-page h1 {
  font-size: 18px;
  padding: 10px 12px 8px;
  margin: 0;
  border-bottom: 1px solid #e0e0e0;
  background: #fff;
}
.message-list-item {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid #f0f0f0;
  text-decoration: none;
  color: inherit;
  background: #fff;
  transition: background 0.2s;
}
.message-list-item:active {
  background: #f5f5f5;
}
.message-list-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  margin-right: 14px;
  background: #e0e0e0;
}
.message-list-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.message-list-body {
  flex: 1;
  min-width: 0;
}
.message-list-name {
  font-size: 16px;
  font-weight: bold;
  color: #333;
  margin-bottom: 2px;
}
.message-list-preview {
  font-size: 13px;
  color: #888;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.message-list-meta {
  font-size: 12px;
  color: #aaa;
  margin-top: 4px;
}
.message-list-time {
  flex-shrink: 0;
  font-size: 12px;
  color: #aaa;
  margin-left: 8px;
}
.message-list-empty {
  text-align: center;
  padding: 24px 16px;
  color: #888;
  font-size: 15px;
}
.message-list-empty a {
  color: #00B900;
  text-decoration: none;
}

/* ====================================== */
/* チャット画面（message_room.php）      */
/* ====================================== */
.chat-page {
  max-width: 600px;
  margin: 0 auto 8px;
  background: #f6f9fc;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}
.chat-header {
  display: flex;
  align-items: center;
  padding: 6px 8px 6px 4px;
  background: #0077cc;
  color: #fff;
}
.chat-header-back {
  color: #fff;
  text-decoration: none;
  padding: 6px;
  margin-right: 4px;
  display: flex;
  align-items: center;
}
.chat-header-back svg {
  width: 22px;
  height: 22px;
}
.chat-header-title {
  flex: 1;
  min-width: 0;
  text-align: center;
}
.chat-header-name {
  font-size: 16px;
  font-weight: bold;
}
.chat-header-sub {
  font-size: 12px;
  opacity: 0.95;
  margin-top: 2px;
}
.chat-header-sub a {
  color: #e3f2fd;
  text-decoration: underline;
}
.chat-messages {
  padding: 8px 10px 10px;
  max-height: 60vh;
  overflow-y: auto;
  background: #e5edf5;
}
.chat-date-divider {
  text-align: center;
  margin: 8px 0;
}
.chat-date-divider span {
  background: rgba(0, 0, 0, 0.12);
  color: #333;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 12px;
}
.chat-row {
  display: flex;
  margin-bottom: 8px;
}
.chat-row.sent {
  justify-content: flex-end;
}
.chat-row.sent > div {
  min-width: 0;
  max-width: 85%;
}
.chat-row.received {
  justify-content: flex-start;
}
.chat-row.received > div {
  min-width: 0;
  max-width: 85%;
}
.chat-bubble {
  max-width: 100%;
  padding: 8px 12px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.5;
  word-break: normal;
  overflow-wrap: break-word;
  white-space: normal;
  overflow: hidden;
}
.chat-row.sent .chat-bubble {
  background: #0077cc;
  color: #fff;
  border-bottom-right-radius: 4px;
  min-width: min-content;
}
.chat-row.received .chat-bubble {
  background: #fff;
  color: #333;
  border-bottom-left-radius: 4px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08);
}
.chat-image {
  display: block;
  width: auto;
  max-width: min(100%, 78vw);
  max-height: 52vh;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
}
.chat-time {
  font-size: 11px;
  color: #777;
  margin-top: 2px;
}
.chat-row.sent .chat-time {
  text-align: right;
}
.chat-read {
  font-size: 11px;
  color: #0077cc;
  margin-top: 0;
  text-align: right;
}
.chat-input-area {
  padding: 6px 8px 8px;
  background: #f7f7f7;
  border-top: 1px solid #e0e0e0;
  display: flex;
  gap: 10px;
  align-items: flex-end;
}
.chat-input-area form {
  display: flex;
  flex: 1;
  gap: 8px;
  align-items: flex-end;
  flex-wrap: nowrap;
  min-width: 0;
}
.chat-input-area textarea {
  flex: 1;
  min-width: 0;
  min-height: 40px;
  max-height: 220px;
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 18px;
  font-size: 14px;
}
.chat-camera-btn {
  width: 36px;
  height: 36px;
  min-width: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d1d5db;
  border-radius: 50%;
  background: #fff;
  color: #475569;
  cursor: pointer;
  flex-shrink: 0;
}
.chat-camera-btn svg {
  width: 18px;
  height: 18px;
}
.chat-image-input {
  /* 見た目は隠すが、label クリックで確実にファイル選択できるようにする */
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.chat-image-status {
  font-size: 12px;
  color: #475569;
  min-width: 90px;
  text-align: left;
  line-height: 1.2;
  margin-bottom: 8px;
}
.chat-camera-btn.is-has-image {
  border-color: #22c55e;
  background: #ecfdf5;
  color: #16a34a;
}
#chatSend {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border: none;
  border-radius: 50%;
  background: #2563eb;
  color: #fff;
  font-size: 16px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
#chatSend:disabled {
  background: #94a3b8;
}

/* ====================================== */
/* 発注フォーム系（new_order_write 等）  */
/* ====================================== */
.checkbox-group {
  margin-top: 12px;
  padding: 12px;
  background: #f5f5f5;
  border-radius: 8px;
}
.checkbox-group-title {
  display: block;
  font-weight: bold;
  margin-bottom: 8px;
  color: #333;
  font-size: 14px;
}
.checkbox-group-title-small {
  margin-bottom: 4px;
}
.checkbox-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 15px;
  margin-bottom: 0;
}
.checkbox-row label {
  display: flex;
  align-items: center;
  font-weight: normal;
  cursor: pointer;
  font-size: 13px;
  white-space: nowrap;
  margin: 0;
}
.checkbox-row input[type="checkbox"] {
  margin-right: 4px;
  cursor: pointer;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.tone-adjustment {
  margin-top: 8px;
  padding: 0;
  background: transparent;
  border-radius: 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-4px);
  transition: max-height 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
}
.tone-adjustment.open {
  max-height: 500px;
  opacity: 1;
  transform: translateY(0);
}
.ai-tune-toggle {
  margin-top: 12px;
  border: none;
  background: none;
  padding: 0;
  font-size: 12px;
  color: #0077cc;
  cursor: pointer;
  text-align: left;
}
.order .ai-tune-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: auto;
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  color: #0077cc;
}
.ai-tune-toggle:hover {
  text-decoration: underline;
}
.tone-slider-container {
  margin-top: 8px;
}
.tone-slider {
  width: 100%;
  height: 8px;
  border-radius: 5px;
  background: #ddd;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}
.tone-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #4CAF50;
  cursor: pointer;
}
.tone-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #4CAF50;
  cursor: pointer;
  border: none;
}
.tone-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 12px;
  color: #666;
}
.tone-labels span:nth-child(2) {
  font-weight: bold;
  color: #4CAF50;
  font-size: 14px;
}

.voice-input-container {
  margin-top: 12px;
  margin-bottom: 12px;
}
#voice-mic-btn {
  width: 100%;
  height: 60px;
  background-color: #007bff;
  color: white;
  font-size: 18px;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  margin-bottom: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s;
}
#voice-mic-btn:hover {
  background-color: #0056b3;
}
#voice-mic-btn.recording {
  background-color: #dc3545;
  animation: pulse 1.5s infinite;
}
#voice-mic-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.02); }
  100% { transform: scale(1); }
}
#voice-status {
  font-size: 14px;
  color: #666;
  margin-bottom: 8px;
  min-height: 20px;
}
@media (max-width: 480px) {
  #voice-mic-btn {
    height: 50px;
    font-size: 16px;
  }
}

input[readonly] {
  background-color: #f5f5f5;
  cursor: not-allowed;
  color: #666;
}
button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

.region-dropdown-wrap {
  margin-bottom: 8px;
}
.region-dropdown-wrap select {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
}
.region-panels-wrap {
  margin-top: 10px;
  overflow: hidden;
}
.region-panel {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease-out;
}
.region-panel.active {
  max-height: 500px;
  transition: max-height 0.4s ease-in;
}
.region-panel-inner {
  padding: 12px 0 4px 0;
  border-bottom: 1px solid #eee;
}
.region-prefectures {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}
.region-prefectures label {
  display: flex;
  align-items: center;
  font-size: 13px;
  cursor: pointer;
  margin: 0;
  color: #333;
}

/* 地域選択のプレビュー表示 */
.region-selected-preview {
  margin-top: 12px;
}
.region-selected-preview-box {
  margin-top: 6px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  color: #475569;
  min-height: 20px;
  font-size: 13px;
  line-height: 1.5;
}
.region-prefectures input {
  margin-right: 4px;
}

/* 地域の設定ページ（regional_settings.php） */
.region-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  margin: 20px 0;
}
.region-item {
  display: flex;
  align-items: center;
  padding: 10px;
  background: #f9f9f9;
  border: 2px solid #ddd;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.region-item:hover {
  background: #f0f0f0;
  border-color: #0077cc;
}
.region-item input[type="checkbox"] {
  margin-right: 8px;
  width: 18px;
  height: 18px;
  cursor: pointer;
}
.region-item.selected {
  background: #e3f2fd;
  border-color: #0077cc;
}
.region-controls {
  margin: 20px 0;
  padding: 15px;
  background: #f5f5f5;
  border-radius: 6px;
}
.region-controls button {
  margin-right: 10px;
  padding: 8px 16px;
  background: #0077cc;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
.region-controls button:hover {
  background: #005fa3;
}
.region-controls button.secondary {
  background: #666;
}
.region-controls button.secondary:hover {
  background: #444;
}

.unknown-hint {
  display: none;
  color: #c62828;
  font-size: 13px;
  margin-top: 4px;
  line-height: 1.5;
}

.form-note {
  margin-bottom: 16px;
  color: #666;
  font-size: 14px;
}
.form-note-small {
  font-size: 12px;
  color: #666;
  margin-bottom: 6px;
}

/* 任意設定ブロック（締切日・募集タイプ） */
.optional-settings {
  margin-top: 24px;
  padding: 16px;
  border-radius: 12px;
  background: #f5f5f5;
}
.optional-settings-title {
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 8px;
}
.optional-settings-description {
  font-size: 12px;
  color: #666;
  margin-bottom: 12px;
}
.optional-settings-field {
  margin-top: 12px;
}
.optional-settings-field-label {
  display: block;
  font-size: 12px;
  color: #555;
  margin-bottom: 4px;
}

/* ====================================== */
/* 請求書PDF系（invoice_*）              */
/* ====================================== */
@media print {
  .invoice-print-body {
    margin: 0;
    padding: 20px;
  }
  .no-print {
    display: none !important;
  }
}
.invoice-print-body {
  font-family: "MS PGothic", "Hiragino Kaku Gothic ProN", sans-serif;
}
.no-print {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #f0f0f0;
  padding: 15px;
  text-align: center;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.no-print p {
  margin: 5px 0;
}
.no-print button,
.no-print a {
  padding: 10px 20px;
  font-size: 16px;
  margin: 5px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.btn-pdf {
  background: #dc3545;
  color: white;
}
.btn-print {
  background: #007bff;
  color: white;
}
.btn-back {
  background: #6c757d;
  color: white;
}
.invoice-content {
  margin-top: 80px;
}

.invoice-body {
  font-family: "MS PGothic", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  font-size: 12px;
  line-height: 1.6;
  margin: 0;
  padding: 20px;
}
.invoice-header {
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #333;
}
.invoice-title {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 10px;
}
.invoice-number {
  font-size: 14px;
  color: #666;
}
.invoice-info-section {
  display: flex;
  justify-content: space-between;
  margin-bottom: 30px;
}
.invoice-info-box {
  flex: 1;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 4px;
  margin: 0 10px;
}
.invoice-info-box h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 14px;
  color: #666;
  font-weight: bold;
}
.invoice-info-box p {
  margin: 5px 0;
  line-height: 1.6;
}
.invoice-date-info {
  margin-bottom: 20px;
}
.invoice-date-info p {
  margin: 5px 0;
}
.invoice-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 30px;
}
.invoice-table th,
.invoice-table td {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: left;
}
.invoice-table th {
  background: #f5f5f5;
  font-weight: bold;
}
.text-right {
  text-align: right;
}
.invoice-summary {
  margin-left: auto;
  width: 350px;
  margin-top: 20px;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #ddd;
}
.summary-row:last-child {
  border-bottom: none;
  font-size: 20px;
  font-weight: bold;
  color: #007bff;
  border-top: 2px solid #333;
  padding-top: 15px;
  margin-top: 10px;
}
.invoice-notes {
  margin-top: 30px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 4px;
}
.invoice-notes h3 {
  margin-top: 0;
  font-size: 14px;
  font-weight: bold;
}

/* invoice_create.php（.btn / .form-group などは他ページでも使うため .invoice-form-container 配下に限定） */
.invoice-form-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}
.invoice-form-container .form-section {
  background: #fff;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.invoice-form-container .form-section h3 {
  margin-top: 0;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #007bff;
  color: #333;
}
.invoice-form-container .form-row {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
}
.invoice-form-container .form-row > div {
  flex: 1;
}
.invoice-form-container .form-row > .form-group-wide {
  flex: 2;
}
.invoice-form-container .form-group {
  margin-bottom: 15px;
}
.invoice-form-container .form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: #333;
}
.invoice-form-container .form-group input,
.invoice-form-container .form-group textarea,
.invoice-form-container .form-group select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  box-sizing: border-box;
}
.invoice-form-container .form-group textarea {
  min-height: 80px;
  resize: vertical;
}
.invoice-form-container .required-mark {
  color: red;
}
.invoice-form-container .invoice-items-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}
.invoice-form-container .invoice-items-table th,
.invoice-form-container .invoice-items-table td {
  padding: 10px;
  border: 1px solid #ddd;
  text-align: left;
}
.invoice-form-container .invoice-items-table th {
  background: #f5f5f5;
  font-weight: bold;
}
.invoice-form-container .invoice-items-table .col-item-name { width: 30%; }
.invoice-form-container .invoice-items-table .col-description { width: 25%; }
.invoice-form-container .invoice-items-table .col-quantity { width: 10%; }
.invoice-form-container .invoice-items-table .col-unit-price { width: 15%; }
.invoice-form-container .invoice-items-table .col-amount { width: 15%; }
.invoice-form-container .invoice-items-table .col-remove { width: 5%; }
.invoice-form-container .invoice-items-table input {
  width: 100%;
  padding: 5px;
  border: 1px solid #ddd;
  border-radius: 4px;
}
.invoice-form-container .btn-add-item {
  background: #28a745;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 10px;
}
.invoice-form-container .btn-add-item:hover {
  background: #218838;
}
.invoice-form-container .btn-remove-item {
  background: #dc3545;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
}
.invoice-form-container .btn-remove-item:hover {
  background: #c82333;
}
/* 明細が1行のときは削除ボタンを隠す（JS が style.display で表示切替） */
.invoice-form-container .btn-remove-item.is-hidden {
  display: none;
}
.invoice-form-container .invoice-summary {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 4px;
  margin-top: 20px;
}
.invoice-form-container .invoice-summary-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #ddd;
}
.invoice-form-container .invoice-summary-row:last-child {
  border-bottom: none;
  font-size: 18px;
  font-weight: bold;
  color: #007bff;
}
.invoice-form-container .form-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.invoice-form-container .btn {
  padding: 12px 24px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
}
.invoice-form-container .btn-primary {
  background: #007bff;
  color: white;
}
.invoice-form-container .btn-primary:hover {
  background: #0056b3;
}
.invoice-form-container .btn-secondary {
  background: #6c757d;
  color: white;
}
.invoice-form-container .btn-secondary:hover {
  background: #5a6268;
}
@media (max-width: 768px) {
  .invoice-form-container .form-row {
    flex-direction: column;
  }
  .invoice-form-container .invoice-items-table {
    font-size: 12px;
  }
  .invoice-form-container .invoice-items-table th,
  .invoice-form-container .invoice-items-table td {
    padding: 5px;
  }
}

/* mypage_edit.php */
.mypage-edit-page .order .form-container {
  background: transparent;
  border: none;
  box-shadow: none;
  padding-left: 0;
  padding-right: 0;
}
.mypage-edit-page .mypage-card {
  background: #fff;
  border: 1px solid #dbe3ec;
  border-radius: 16px;
  padding: 18px 16px;
  margin-top: 22px;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.06);
}
.mypage-edit-page .mypage-card:first-of-type {
  margin-top: 0;
}
.mypage-edit-page .mypage-card .profile-section:last-child {
  margin-bottom: 0;
}
.mypage-edit-page .profile-section {
  margin-bottom: 30px;
}
.mypage-edit-page .profile-section h3 {
  margin-bottom: 15px;
  color: #0077cc;
  font-size: 18px;
}
.mypage-edit-page .profile-avatar {
  text-align: center;
  margin-bottom: 20px;
}
.mypage-edit-page .profile-avatar img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 3px solid #0077cc;
  object-fit: cover;
}
.mypage-edit-page .profile-note {
  font-size: 12px;
  color: #666;
  margin-top: 5px;
}
.mypage-edit-page .experience-section { margin-bottom: 28px; }
.mypage-edit-page .experience-type-tabs {
  display: flex;
  gap: 10px;
  margin: 10px 0 16px;
}
.mypage-edit-page .experience-type-tab {
  flex: 1;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #475569;
  border-radius: 999px;
  padding: 8px 10px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}
.mypage-edit-page .experience-type-tab.active {
  border-color: #0077cc;
  background: #e6f2fb;
  color: #005fa3;
}
.mypage-edit-page .experience-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 18px 16px;
  margin-bottom: 16px;
}
.mypage-edit-page .experience-card-title {
  font-weight: bold;
  color: #334155;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid #0077cc;
  font-size: 15px;
}
.mypage-edit-page .license-modal-card {
  text-align: left;
}
.mypage-edit-page .license-field-wide {
  grid-column: 1 / -1;
}
.mypage-edit-page .experience-fields {
  display: grid;
  gap: 12px 16px;
  align-items: end;
}
.mypage-edit-page .experience-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mypage-edit-page .experience-field label {
  font-size: 12px;
  color: #475569;
  font-weight: 600;
}
.mypage-edit-page .experience-field select,
.mypage-edit-page .experience-field input[type="number"] {
  width: 100%;
  max-width: 280px;
  padding: 8px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 14px;
}
.mypage-edit-page .license-search-input,
.mypage-edit-page .license-select-wide {
  width: 100%;
  max-width: 100%;
}
.mypage-edit-page .license-footer-row {
  margin-top: 14px;
  justify-content: flex-start;
}
.mypage-edit-page .experience-row-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.mypage-edit-page .experience-row-footer .form-input[type="number"] { max-width: 100px; }
.mypage-edit-page .exp-years-wrap,
.mypage-edit-page .exp-people-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.mypage-edit-page .exp-years-wrap .form-input,
.mypage-edit-page .exp-people-wrap .form-input {
  width: 100px;
  min-width: 100px;
  max-width: 100px;
}
.mypage-edit-page .exp-unit {
  display: inline-block;
  white-space: nowrap;
  line-height: 1;
}
.mypage-edit-page .exp-type-toggle {
  display: inline-flex;
  gap: 6px;
}
.mypage-edit-page .exp-type-text {
  font-size: 14px;
  font-weight: 600;
  color: #334155;
}
.mypage-edit-page .exp-type-btn {
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #475569;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 13px;
  cursor: pointer;
}
.mypage-edit-page .exp-type-btn.active {
  border-color: #0077cc;
  background: #e6f2fb;
  color: #005fa3;
}
.mypage-edit-page .experience-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.mypage-edit-page .experience-add-link {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #94a3b8;
  background: #f8fafc;
  color: #0f172a;
  text-decoration: none;
  display: inline-block;
}
.mypage-edit-page .experience-add-link:active {
  background: #e2e8f0;
}
.mypage-edit-page .experience-history-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  font-size: 14px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
}
.mypage-edit-page .experience-history-table th,
.mypage-edit-page .experience-history-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}
.mypage-edit-page .experience-history-table th {
  background: #f1f5f9;
  font-weight: 600;
  color: #475569;
}
.mypage-edit-page .experience-history-table tr:last-child td { border-bottom: none; }
.mypage-edit-page .experience-history-table tbody tr:hover { background: #f8fafc; }
@media (max-width: 600px) {
  .mypage-edit-page .experience-history-table th, .mypage-edit-page .experience-history-table td { padding: 8px 6px; font-size: 12px; }
}
@media (min-width: 600px) {
  .mypage-edit-page .experience-fields { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 599px) {
  .mypage-edit-page .experience-fields { grid-template-columns: 1fr; }
}
.mypage-edit-page .exp-action-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; margin: 0 2px; border: none; border-radius: 6px;
  background: #e2e8f0; color: #475569; text-decoration: none; font-size: 16px;
  cursor: pointer; transition: background .15s;
}
.mypage-edit-page .exp-action-btn:hover { background: #cbd5e1; color: #1e293b; }
.mypage-edit-page .exp-action-btn.edit { background: #dbeafe; color: #1d4ed8; }
.mypage-edit-page .exp-action-btn.edit:hover { background: #bfdbfe; }
.mypage-edit-page .exp-action-btn.del { background: #fee2e2; color: #dc2626; }
.mypage-edit-page .exp-action-btn.del:hover { background: #fecaca; }
.mypage-edit-page .experience-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}
.mypage-edit-page .experience-modal.experience-modal-open {
  display: flex;
}
.mypage-edit-page .experience-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  cursor: pointer;
}
.mypage-edit-page .experience-modal-panel {
  position: relative;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px;
  animation: experienceModalPop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes experienceModalPop {
  0% { transform: scale(0.92); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.mypage-edit-page .experience-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #e2e8f0;
}
.mypage-edit-page .experience-modal-header h3 {
  margin: 0;
  font-size: 18px;
  color: #1e293b;
}
.mypage-edit-page .experience-modal-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  background: #f1f5f9;
  color: #64748b;
  font-size: 22px;
  line-height: 1;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.mypage-edit-page .experience-modal-close:hover {
  background: #e2e8f0;
  color: #1e293b;
}
.mypage-edit-page #experience-add-form.hidden { display: none !important; }

/* 建設業ニュース / コラム */
.construction-news-page {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 6px;
}

.construction-news-title {
  margin: 8px 0 14px;
  color: #0f172a;
  font-size: 20px;
}

.construction-news-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 14px;
}

.construction-news-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid #dbe3ec;
  border-radius: 999px;
  background: #fff;
  color: #1e293b;
  text-decoration: none;
  font-size: 14px;
}

.construction-news-tab.is-active {
  background: #dbeafe;
  border-color: #93c5fd;
  color: #1d4ed8;
}

.news-tab-icon i { font-size: 14px; }

.construction-news-actions {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.construction-news-hint {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  color: #475569;
  flex: 1;
}

.construction-news-generate-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: #1d4ed8;
  color: #fff;
  border-radius: 14px;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.construction-news-generate-btn.is-loading {
  opacity: 0.9;
}

.construction-news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.construction-news-card {
  background: #fff;
  border: 1px solid #dbe3ec;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.06);
}

.construction-news-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.construction-news-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #334155;
}

.construction-news-date {
  font-size: 13px;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.construction-news-card-title {
  margin: 0 0 8px;
  font-size: 18px;
  color: #0f172a;
  line-height: 1.4;
}

.construction-news-card-summary {
  color: #334155;
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 12px;
}

.construction-news-card-footer {
  display: flex;
  justify-content: flex-end;
}

.construction-news-readmore {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #1d4ed8;
  text-decoration: none;
  font-weight: 600;
}

.construction-news-readmore:hover { text-decoration: underline; }

.construction-news-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}

.construction-news-page-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #dbe3ec;
  border-radius: 14px;
  text-decoration: none;
  color: #0f172a;
  background: #fff;
  font-size: 14px;
}

.construction-news-page-current {
  font-size: 14px;
  color: #475569;
}

.construction-news-empty {
  padding: 18px;
  border: 1px dashed #cbd5e1;
  border-radius: 16px;
  color: #475569;
  background: #fff;
}

/* 詳細ページ */
.construction-news-detail-page {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 6px;
}

.construction-news-back a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #1d4ed8;
  text-decoration: none;
  font-weight: 600;
  margin: 10px 0 14px;
}

.construction-news-detail-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.construction-news-detail-title {
  margin: 10px 0 12px;
  color: #0f172a;
  font-size: 24px;
}

.construction-news-detail-summary {
  color: #334155;
  font-size: 14px;
  line-height: 1.8;
  padding: 14px 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  margin-bottom: 14px;
}

.construction-news-detail-content {
  color: #0f172a;
  font-size: 15px;
  line-height: 2;
  background: #fff;
  border: 1px solid #dbe3ec;
  border-radius: 16px;
  padding: 18px 16px;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.04);
  white-space: normal;
}

.construction-news-source {
  margin-top: 14px;
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #334155;
}

.construction-news-source a { color: #1d4ed8; text-decoration: none; font-weight: 600; }
.construction-news-source a:hover { text-decoration: underline; }

.construction-news-disclaimer {
  margin-top: 14px;
  padding: 14px 16px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 16px;
  color: #9a3412;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  line-height: 1.7;
}

/* ====================================================== */
/* デザイン刷新 2026-10-29                                 */
/* 見た目だけを上書きする。HTML・JS・機能には触れない。    */
/* 元に戻すときはこのブロックから下を消せばよい。          */
/* ====================================================== */
:root {
  --bl-brand: #0077cc;
  --bl-brand-dark: #005a9e;
  --bl-brand-soft: #e8f2fb;
  --bl-accent: #e8590c;
  --bl-text: #1d1d1f;
  --bl-text-sub: #6e6e73;
  --bl-line: #e5e5ea;
  --bl-bg: #f5f5f7;
  --bl-card: #ffffff;
  --bl-radius: 16px;
  --bl-radius-sm: 12px;
  --bl-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.04);
  --bl-shadow-hover: 0 2px 4px rgba(0, 0, 0, 0.04), 0 12px 32px rgba(0, 0, 0, 0.08);
}

body {
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
  background: var(--bl-bg);
  color: var(--bl-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
/* 請求書・印刷は白地のまま */
body.invoice-print-body,
body.invoice-body {
  background: #fff;
}

a {
  color: var(--bl-brand);
}

/* ---------- ヘッダー ---------- */
.site-header {
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

/* ---------- スライドメニュー ---------- */
.slide-menu {
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.12);
  border-radius: 16px 0 0 16px;
}
.slide-profile {
  border-bottom: 1px solid var(--bl-line);
}
.slide-username {
  font-size: 15px;
  font-weight: 600;
  color: var(--bl-text);
}
.slide-menu nav {
  padding: 8px;
}
.slide-menu li {
  margin-bottom: 0;
}
.slide-menu nav a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 16px;
  border-radius: var(--bl-radius-sm);
  font-size: 15px;
  color: var(--bl-text);
  transition: background 0.15s ease;
}
.slide-menu nav a:hover,
.slide-menu nav a:focus-visible {
  background: var(--bl-bg);
}
.overlay {
  background: rgba(0, 0, 0, 0.32);
}

/* ---------- LINEログイン ---------- */
.login-prompt-simple {
  margin: 8px 16px 24px;
}
.line-login-button-simple {
  min-height: 52px;
  padding: 0 32px;
  border-radius: 999px;
  box-shadow: 0 4px 16px rgba(0, 195, 0, 0.24);
}

/* ---------- 検索バー ---------- */
.search-bar {
  margin-bottom: 8px;
}
.search-bar-inner {
  min-height: 56px;
  padding: 6px 6px 6px 16px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: var(--bl-shadow);
}
.search-icon {
  color: var(--bl-text-sub);
  margin-right: 8px;
}
.search-submit {
  min-height: 44px;
  padding: 0 24px;
  font-size: 15px;
  background: var(--bl-brand);
  transition: background 0.15s ease;
}
.search-submit:hover {
  background: var(--bl-brand-dark);
}
.search-detail-toggle {
  min-height: 40px;
  padding: 0 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--bl-brand);
  gap: 8px;
}
.search-detail-toggle::before {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  content: "\f1de";
}
.search-detail-sheet {
  border-radius: 24px 24px 0 0;
  padding: 24px 16px;
}
.search-detail-close {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--bl-bg);
  font-size: 14px;
  color: var(--bl-text);
}
.checkbox-group,
.search-filter-region {
  background: var(--bl-bg);
  border-radius: var(--bl-radius-sm);
  padding: 16px;
}
.checkbox-group.margin-top {
  margin-top: 16px;
}
.checkbox-row input[type="checkbox"] {
  accent-color: var(--bl-brand);
}
.search-chip {
  padding: 4px 12px;
  font-weight: 600;
}

/* ---------- カテゴリタブ（一覧ページだけ） ---------- */
.order-list-page .category-tabs {
  max-width: 800px;
  margin: 16px auto;
  padding: 4px;
  gap: 4px;
  justify-content: flex-start;
  background: #e8e8ed;
  border-bottom: none;
  border-radius: 999px;
}
.order-list-page .category-tab {
  flex: 1 1 0;
  min-width: 0;
  min-height: 44px;
  padding: 0 8px;
  background: transparent;
  border: none;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  color: var(--bl-text-sub);
}
.order-list-page .category-tab:hover {
  background: rgba(255, 255, 255, 0.5);
  color: var(--bl-text);
}
.order-list-page .category-tab.active {
  background: #fff;
  color: var(--bl-brand);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

/* ---------- 件数 ---------- */
.order-list-page .count {
  max-width: 800px;
  margin: 0 auto 16px;
  padding: 0 4px;
  text-align: left;
  font-size: 14px;
  font-weight: 500;
  color: var(--bl-text-sub);
}

/* ---------- カード共通（一覧・詳細・お知らせ等） ---------- */
.order-list-page .card {
  margin: 0 auto 16px;
  padding: 24px;
  border-radius: var(--bl-radius);
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: var(--bl-shadow);
}
.order-list-page .card.clickable-card:hover {
  box-shadow: var(--bl-shadow-hover);
  transform: translateY(-2px);
}

/* 一覧カードの見出し：上の余白と左の線をなくし、名前とハートを横並びに */
.order-list-page .card.clickable-card h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  padding: 0;
  border-left: none;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--bl-text);
}
.order-list-page .card.clickable-card .favorite-info {
  float: none;
  margin-left: auto;
  flex-shrink: 0;
}
.order-list-page .card.clickable-card .category-badge {
  border-radius: 999px;
  padding: 2px 12px;
  background: var(--bl-brand-soft);
  color: var(--bl-brand);
  font-weight: 600;
}

/* 一覧カードの本文：項目名は小さめのグレー、値は読みやすく */
.order-list-page .card.clickable-card p {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--bl-text);
}
.order-list-page .card.clickable-card p strong {
  font-size: 13px;
  font-weight: 600;
  color: var(--bl-text-sub);
}
/* 求人の3行目＝発注金額を目立たせる */
.order-list-page .card.clickable-card[data-category="job"] p:nth-of-type(3) {
  font-weight: 700;
  color: var(--bl-accent);
}
/* 最後の行＝アクセス数と投稿日を区切り線の下に小さく */
.order-list-page .card.clickable-card p:last-of-type {
  margin: 16px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--bl-line);
  font-size: 13px;
  color: var(--bl-text-sub);
}
.order-list-page .card.clickable-card .timestamp {
  margin-top: -21px;
  font-size: 13px;
  color: var(--bl-text-sub);
}

/* 投稿の間に入るニュース行（index.php・2026-11-07 インラインstyleをやめてクラス指定に） */
.order-list-page .card.idx-news-card {
  padding: 12px 16px;
  background: var(--bl-brand-soft);
  border: none;
  border-radius: var(--bl-radius-sm);
  box-shadow: none;
}
.order-list-page .card.idx-news-card p.idx-news-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
}
.order-list-page .card.idx-news-card strong {
  display: inline-block;
  margin-right: 8px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--bl-brand);
  color: #fff;
  font-size: 11px;
  line-height: 20px;
}
.order-list-page .card.idx-news-card a {
  color: var(--bl-text);
  text-decoration: none;
}
.order-list-page .card.idx-news-card a:hover {
  color: var(--bl-brand);
  text-decoration: underline;
}

/* ---------- ページ送り ---------- */
.order-list-page .pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 32px 0;
}
.order-list-page .pagination a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: 0;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid var(--bl-line);
  background: #fff;
  color: var(--bl-brand);
  font-weight: 600;
  transition: background 0.15s ease, color 0.15s ease;
}
.order-list-page .pagination a:hover {
  background: var(--bl-brand);
  border-color: var(--bl-brand);
  color: #fff;
}
.order-list-page .pagination .disabled {
  background: transparent;
  border-color: transparent;
  color: #b0b0b5;
}

/* ---------- お知らせ・規約・ガイドの見出し ---------- */
.card h1 {
  color: var(--bl-text);
  border-bottom: 1px solid var(--bl-line);
  padding-bottom: 16px;
}
.card h2 {
  color: var(--bl-text);
  border-left-color: var(--bl-brand);
}
.notice-item h3,
.faq-item h3 {
  color: var(--bl-text);
}
.notice-item,
.faq-item {
  border-bottom-color: var(--bl-line);
}

/* ---------- 投稿フォーム（.order） ---------- */
.order {
  background: transparent;
}
.order .form-container {
  padding: 32px 24px;
  border-radius: var(--bl-radius);
  box-shadow: var(--bl-shadow);
}
.order h2 {
  color: var(--bl-text);
  font-size: 22px;
}
.order label {
  font-size: 14px;
  color: var(--bl-text);
}
.order input[type="text"],
.order textarea,
.form-input,
.form-textarea,
.form-select {
  padding: 12px 14px;
  border: 1px solid #d2d2d7;
  border-radius: var(--bl-radius-sm);
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.order input[type="text"],
.form-input,
.form-select {
  min-height: 48px;
}
.order input[type="text"]:focus,
.order textarea:focus,
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--bl-brand);
  box-shadow: 0 0 0 4px rgba(0, 119, 204, 0.15);
  outline: none;
}
.form-button {
  min-height: 48px;
  border-radius: var(--bl-radius-sm);
  font-weight: 700;
  background: var(--bl-brand);
}
.form-button:hover {
  background: var(--bl-brand-dark);
}
.form-button-secondary {
  background: #8e8e93;
}
.message-success,
.message-error {
  border-radius: var(--bl-radius-sm);
  padding: 12px 16px;
}
.optional-settings {
  background: var(--bl-bg);
}

/* ---------- 詳細ページのコメント・DM ---------- */
.bbs-section,
.dm-section {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: var(--bl-radius);
  box-shadow: var(--bl-shadow);
}
.bbs-item {
  border-bottom-color: var(--bl-line);
}
.dm-section textarea,
.bbs-section textarea {
  border-radius: var(--bl-radius-sm);
  border-color: #d2d2d7;
}

/* ---------- ランディング ---------- */
.landing-hero,
.landing-cta {
  background: linear-gradient(135deg, #0b3d6e 0%, #0077cc 100%);
  border-radius: 24px;
}
.landing-howto {
  background: #fff;
  border-radius: 24px;
  box-shadow: var(--bl-shadow);
}
.feature-card,
.step-item {
  border-radius: var(--bl-radius);
  box-shadow: var(--bl-shadow);
}
.feature-card:hover {
  box-shadow: var(--bl-shadow-hover);
}
.cta-button-secondary {
  min-height: 52px;
  border-radius: 999px;
  color: var(--bl-brand);
}
.landing-mid-cta {
  border: none;
  border-radius: 24px;
  box-shadow: var(--bl-shadow);
}

/* ---------- フッター（赤をやめて落ち着いた紺に） ---------- */
.site-footer {
  margin-top: 48px;
  background: #1c2330;
  color: #c7ccd6;
}
.footer-menu {
  background: transparent;
  gap: 8px 32px;
  padding: 32px 16px 24px;
}
.footer-menu a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: #e5e7eb;
  font-size: 14px;
}
.footer-menu a:hover {
  color: #fff;
  text-decoration: underline;
}
.footer-copy {
  background: transparent;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px;
  color: #8b93a3;
}
.footer-copy a {
  color: #e5e7eb;
  text-decoration: none;
}
.footer-copy .brand {
  color: #fff;
}
@media (min-width: 640px) {
  .footer-menu {
    grid-template-columns: repeat(3, auto);
  }
}

/* ====================================================== */
/* ランディング（landing.php）2026-10-29 作り直し          */
/* クラス名は lp- で始める                                 */
/* ====================================================== */
body.landing-page-body {
  background: #fff;
  padding-bottom: 0;
}
body.landing-page-body main.lp {
  padding: 0;
  margin-top: 0;
}
.lp-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}
.lp-inner-narrow {
  max-width: 760px;
}
.lp-alerts {
  padding-top: 16px;
}
.lp-alerts .landing-alert {
  margin: 0 0 8px;
  border-radius: var(--bl-radius-sm);
  text-align: left;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

/* ヘッダーのログインボタン */
.lp-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.lp-header-login {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: #06c755;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.lp-header-login i {
  font-size: 18px;
}

/* ボタン */
.lp-btn-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 32px;
  border-radius: 999px;
  background: #06c755;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(6, 199, 85, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.lp-btn-line i {
  font-size: 24px;
}
.lp-btn-line:hover {
  background: #05b34c;
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(6, 199, 85, 0.4);
}
.lp-btn-line-lg {
  min-height: 64px;
  padding: 0 48px;
  font-size: 18px;
}
.lp-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 56px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease;
}
.lp-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}
.lp-btn-ghost i {
  font-size: 12px;
}

/* ヒーロー */
.lp-hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 72px;
  color: #fff;
  background:
    radial-gradient(circle at 85% 15%, rgba(0, 119, 204, 0.55) 0, rgba(0, 119, 204, 0) 45%),
    radial-gradient(circle at 10% 90%, rgba(245, 158, 11, 0.18) 0, rgba(245, 158, 11, 0) 40%),
    linear-gradient(160deg, #0a1a2f 0%, #0d2a4a 55%, #0b3d6e 100%);
}
/* 工事現場のテープを思わせる細い斜めストライプ */
.lp-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 8px;
  background: repeating-linear-gradient(-45deg, #f59e0b 0 16px, #1c2330 16px 32px);
}
.lp-hero-grid {
  position: relative;
  display: grid;
  gap: 40px;
  align-items: center;
}
.lp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 13px;
  font-weight: 600;
  color: #dbe7f5;
}
.lp-eyebrow i {
  color: #f59e0b;
}
.lp-hero-title {
  font-size: 40px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: 0.01em;
  margin-bottom: 24px;
}
.lp-hero-accent {
  background: linear-gradient(90deg, #4ade80, #06c755);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lp-hero-lead {
  max-width: 560px;
  font-size: 16px;
  line-height: 1.9;
  color: #c9d6e6;
  margin-bottom: 32px;
}
.lp-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}
.lp-hero-badges {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: 14px;
  color: #c9d6e6;
}
.lp-hero-badges i {
  color: #4ade80;
  margin-right: 8px;
}

/* ヒーロー右側：新着の求人 */
.lp-hero-visual {
  display: grid;
  gap: 12px;
}
.lp-live-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #dbe7f5;
}
.lp-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.2);
  animation: lpPulse 2s ease-in-out infinite;
}
@keyframes lpPulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.2); }
  50% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); }
}
.lp-job-card {
  display: grid;
  gap: 8px;
  padding: 16px 20px;
  border-radius: var(--bl-radius);
  background: rgba(255, 255, 255, 0.96);
  color: var(--bl-text);
  text-decoration: none;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease;
}
.lp-job-card:hover {
  transform: translateY(-2px);
}
.lp-job-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
.lp-job-pref {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 12px;
  border-radius: 999px;
  background: var(--bl-brand-soft);
  color: var(--bl-brand);
  font-weight: 700;
}
.lp-job-pay {
  font-weight: 800;
  color: var(--bl-accent);
}
.lp-job-text {
  font-size: 14px;
  line-height: 1.6;
  color: #3a3a3c;
}

/* 数字 */
.lp-stats {
  background: #fff;
  border-bottom: 1px solid var(--bl-line);
}
.lp-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}
.lp-stat {
  padding: 24px 8px;
  text-align: center;
}
.lp-stat-value {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--bl-text);
  letter-spacing: -0.01em;
}
.lp-stat-value span {
  margin-left: 2px;
  font-size: 14px;
  font-weight: 700;
  color: var(--bl-text-sub);
}
.lp-stat-label {
  margin-top: 4px;
  font-size: 13px;
  color: var(--bl-text-sub);
}

/* セクション共通 */
.lp-section {
  padding: 72px 0;
}
.lp-section-gray {
  background: var(--bl-bg);
}
.lp-section-kicker {
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--bl-brand);
  text-align: center;
}
.lp-section-title {
  margin-bottom: 40px;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.4;
  text-align: center;
  color: var(--bl-text);
}

/* こんな方に */
.lp-audience-grid {
  display: grid;
  gap: 16px;
}
.lp-audience-card {
  padding: 32px 24px;
  border-radius: 24px;
  background: var(--bl-bg);
}
.lp-audience-card-dark {
  background: #0d2a4a;
  color: #fff;
}
.lp-audience-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
  border-radius: 16px;
  background: #fff;
  color: var(--bl-brand);
  font-size: 24px;
  box-shadow: var(--bl-shadow);
}
.lp-audience-card-dark .lp-audience-icon {
  background: rgba(255, 255, 255, 0.1);
  color: #f59e0b;
  box-shadow: none;
}
.lp-audience-who {
  font-size: 13px;
  font-weight: 700;
  color: var(--bl-text-sub);
  margin-bottom: 8px;
}
.lp-audience-card-dark .lp-audience-who {
  color: #9fb3cc;
}
.lp-audience-card h3 {
  font-size: 20px;
  line-height: 1.5;
  margin-bottom: 16px;
}
.lp-check-list {
  list-style: none;
  display: grid;
  gap: 12px;
  font-size: 15px;
  line-height: 1.6;
}
.lp-check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.lp-check-list i {
  flex-shrink: 0;
  margin-top: 4px;
  color: #06c755;
}

/* 機能 */
.lp-feature-grid {
  display: grid;
  gap: 16px;
}
.lp-feature {
  padding: 24px;
  border-radius: var(--bl-radius);
  background: #fff;
  box-shadow: var(--bl-shadow);
}
.lp-feature > i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: var(--bl-brand-soft);
  color: var(--bl-brand);
  font-size: 20px;
}
.lp-feature h3 {
  font-size: 17px;
  margin-bottom: 8px;
}
.lp-feature p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--bl-text-sub);
}

/* 流れ */
.lp-steps {
  list-style: none;
  display: grid;
  gap: 16px;
  counter-reset: none;
}
.lp-step {
  position: relative;
  padding: 24px 24px 24px 88px;
  border-radius: var(--bl-radius);
  border: 1px solid var(--bl-line);
  background: #fff;
}
.lp-step-num {
  position: absolute;
  left: 24px;
  top: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #0d2a4a;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
}
.lp-step h3 {
  font-size: 17px;
  margin-bottom: 4px;
}
.lp-step p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--bl-text-sub);
}

/* よくある質問 */
.lp-faq {
  display: grid;
  gap: 8px;
}
.lp-faq-item {
  border-radius: var(--bl-radius-sm);
  background: #fff;
  box-shadow: var(--bl-shadow);
}
.lp-faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 56px;
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.lp-faq-item summary::-webkit-details-marker {
  display: none;
}
.lp-faq-item summary::after {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  content: "\f078";
  font-size: 12px;
  color: var(--bl-text-sub);
  transition: transform 0.2s ease;
}
.lp-faq-item[open] summary::after {
  transform: rotate(180deg);
}
.lp-faq-item p {
  padding: 0 20px 20px;
  font-size: 14px;
  line-height: 1.8;
  color: #3a3a3c;
}
.lp-faq-more {
  margin-top: 24px;
  text-align: center;
}
.lp-faq-more a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  text-decoration: none;
}
.lp-faq-more i {
  font-size: 12px;
}

/* 最後の登録ボタン */
.lp-final {
  padding: 80px 0;
  text-align: center;
  color: #fff;
  background:
    radial-gradient(circle at 50% 0%, rgba(0, 119, 204, 0.5) 0, rgba(0, 119, 204, 0) 60%),
    #0a1a2f;
}
.lp-final h2 {
  font-size: 30px;
  line-height: 1.4;
  font-weight: 800;
  margin-bottom: 16px;
}
.lp-final > .lp-inner > p {
  color: #c9d6e6;
  margin-bottom: 32px;
}
.lp-final .lp-final-sub {
  margin: 24px 0 0;
}
.lp-final-sub a {
  color: #c9d6e6;
  font-size: 14px;
}
body.landing-page-body .site-footer {
  margin-top: 0;
}

/* 画面下に出る登録ボタン（スマホだけ） */
body.landing-page-body .landing-sticky-cta {
  min-height: 56px;
  background: #06c755;
  box-shadow: 0 8px 24px rgba(6, 199, 85, 0.4);
}

@media (max-width: 767px) {
  body.landing-page-body {
    padding-bottom: 88px;
  }
  .lp-header-login span {
    display: none;
  }
  .lp-header-login {
    padding: 0 12px;
  }
  .lp-hero {
    padding: 40px 0 56px;
  }
  .lp-hero-title {
    font-size: 32px;
  }
  .lp-hero-actions a {
    width: 100%;
    justify-content: center;
  }
  .lp-section {
    padding: 56px 0;
  }
  .lp-section-title {
    font-size: 24px;
  }
  .lp-final h2 {
    font-size: 24px;
  }
}
@media (min-width: 768px) {
  .lp-hero {
    padding: 96px 0 104px;
  }
  .lp-hero-grid {
    grid-template-columns: 1.15fr 1fr;
    gap: 64px;
  }
  .lp-hero-title {
    font-size: 52px;
  }
  .lp-stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .lp-stat + .lp-stat {
    border-left: 1px solid var(--bl-line);
  }
  .lp-audience-grid {
    grid-template-columns: 1fr 1fr;
  }
  .lp-feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .lp-steps {
    grid-template-columns: repeat(3, 1fr);
  }
  .lp-step {
    padding: 88px 24px 24px;
  }
  .lp-section-title {
    font-size: 34px;
  }
  .lp-final h2 {
    font-size: 36px;
  }
  .landing-sticky-cta {
    display: none !important;
  }
}


/* ====================================================== */
/* チャット（message_room.php / messages.php）2026-10-29   */
/* 上の古い chat-* / message-list-* の指定を上書きする      */
/* ====================================================== */
body.chat-body {
  background: #fff;
}
body.chat-body .site-footer {
  display: none;
}
main.chat-main {
  padding: 0;
  margin: 0;
}
.chat-page {
  max-width: 760px;
  height: calc(100vh - 60px);
  height: calc(100dvh - 60px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
}
@media (min-width: 760px) {
  .chat-page {
    border-left: 1px solid var(--bl-line);
    border-right: 1px solid var(--bl-line);
  }
}

/* ヘッダー */
.chat-header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  background: #fff;
  color: var(--bl-text);
  border-bottom: 1px solid var(--bl-line);
}
.chat-header-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border-radius: 50%;
  color: var(--bl-text);
  font-size: 18px;
}
.chat-header-back:hover {
  background: var(--bl-bg);
}
.chat-header-title {
  flex: 1;
  min-width: 0;
  text-align: left;
}
.chat-header-name {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chat-header-sub {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  font-size: 12px;
  color: var(--bl-text-sub);
  text-decoration: none;
  opacity: 1;
  min-width: 0;
}
.chat-header-sub span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chat-header-sub:hover {
  color: var(--bl-brand);
}
.chat-notify-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: var(--bl-bg);
  color: var(--bl-text-sub);
  font-size: 17px;
  cursor: pointer;
}
.chat-notify-btn.is-on {
  background: var(--bl-brand-soft);
  color: var(--bl-brand);
}
.chat-notify-btn[hidden] {
  display: none;
}

/* 相手の頭文字アイコン */
.chat-avatar {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b9be0, #0b4f8a);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}
.chat-avatar-lg {
  width: 44px;
  height: 44px;
  font-size: 18px;
}
/* 会員が選んだアイコンを丸の中に出す（無ければ頭文字） */
.chat-avatar.has-icon,
.dash-avatar.has-icon {
  background: #fff;
  border: 1px solid #dde3ea;
  overflow: hidden;
}
.chat-avatar.has-icon img,
.dash-avatar.has-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
/* 求人・受注の詳細：投稿者名の左に顔（青い線の代わり） */
.card h2.has-poster-avatar {
  border-left: none;
  padding-left: 0;
}
.poster-avatar {
  vertical-align: middle;
  margin-right: 10px;
}

/* メッセージ欄 */
.chat-messages {
  flex: 1;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px 12px 24px;
  background: #f2f4f7;
}
.chat-date-divider {
  margin: 24px 0 8px;
}
.chat-date-divider:first-child {
  margin-top: 0;
}
.chat-date-divider span {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.06);
  color: var(--bl-text-sub);
  font-size: 12px;
}
.chat-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin: 12px 0 0;
}
.chat-row.is-continued {
  margin-top: 4px;
}
.chat-row.is-continued .chat-avatar {
  visibility: hidden;
}
.chat-row.received {
  justify-content: flex-start;
}
.chat-row.sent {
  flex-direction: row-reverse;
  justify-content: flex-start;
}
.chat-row.sent > div,
.chat-row.received > div {
  max-width: none;
  min-width: 0;
}
.chat-row > .chat-stack {
  max-width: 75%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.chat-row.sent > .chat-stack {
  align-items: flex-end;
}
.chat-bubble {
  max-width: 100%;
  padding: 10px 14px;
  border-radius: 20px;
  font-size: 15px;
  line-height: 1.6;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
}
.chat-row.sent .chat-bubble {
  background: var(--bl-brand);
  color: #fff;
  border-bottom-right-radius: 6px;
  min-width: 0;
}
.chat-row.received .chat-bubble {
  background: #fff;
  color: var(--bl-text);
  border-bottom-left-radius: 6px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}
.chat-bubble a {
  color: inherit;
  text-decoration: underline;
}
.chat-image-link {
  display: block;
}
.chat-image {
  display: block;
  max-width: min(240px, 60vw);
  max-height: 320px;
  width: auto;
  height: auto;
  object-fit: cover;
  border-radius: 16px;
}
.chat-meta {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-bottom: 2px;
  font-size: 11px;
  line-height: 1.3;
  color: var(--bl-text-sub);
}
.chat-row.sent .chat-meta {
  align-items: flex-end;
}
.chat-time {
  margin: 0;
  font-size: 11px;
  color: var(--bl-text-sub);
}
.chat-read {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  color: var(--bl-brand);
  text-align: right;
}
.chat-row.is-new {
  animation: chatIn 0.25s ease-out;
}
@keyframes chatIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.chat-empty {
  margin: 48px auto 0;
  max-width: 320px;
  text-align: center;
  color: var(--bl-text);
}
.chat-empty i {
  font-size: 40px;
  color: #c7c7cc;
  margin-bottom: 16px;
}
.chat-empty p {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
}
.chat-empty .chat-empty-sub {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 400;
  color: var(--bl-text-sub);
}

/* 入力欄 */
.chat-input-area {
  flex-shrink: 0;
  display: block;
  padding: 8px 12px;
  padding-bottom: calc(8px + env(safe-area-inset-bottom));
  background: #fff;
  border-top: 1px solid var(--bl-line);
}
.chat-form,
.chat-input-area form {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}
.chat-input-area textarea {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  max-height: 160px;
  padding: 11px 16px;
  border: none;
  border-radius: 22px;
  background: #f2f4f7;
  color: var(--bl-text);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.4;
  resize: none;
  outline: none;
  transition: box-shadow 0.15s ease, background 0.15s ease;
}
.chat-input-area textarea:focus {
  background: #fff;
  box-shadow: 0 0 0 2px var(--bl-brand);
}
.chat-camera-btn {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--bl-text-sub);
  font-size: 20px;
}
.chat-camera-btn:hover {
  background: var(--bl-bg);
}
.chat-camera-btn.is-has-image {
  background: var(--bl-brand-soft);
  color: var(--bl-brand);
  border: none;
}
#chatSend {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 50%;
  background: var(--bl-brand);
  font-size: 16px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}
#chatSend:active {
  transform: scale(0.94);
}
#chatSend:disabled {
  background: #c7c7cc;
  opacity: 1;
}
#chatSend.is-sending {
  opacity: 0.6;
}
.chat-attach-preview {
  position: relative;
  display: inline-block;
  margin: 4px 0 8px 52px;
}
.chat-attach-preview[hidden] {
  display: none;
}
.chat-attach-preview img {
  display: block;
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 12px;
}
.chat-attach-remove {
  position: absolute;
  top: -8px;
  right: -8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--bl-text);
  color: #fff;
  font-size: 11px;
  cursor: pointer;
}
.chat-hint {
  margin: 4px 0 0 52px;
  font-size: 11px;
  color: #aeaeb2;
}
.chat-hint[hidden] {
  display: none;
}
.chat-notice {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
  padding: 10px 12px;
  border-radius: var(--bl-radius-sm);
  font-size: 13px;
  line-height: 1.6;
}
.chat-notice-muted {
  margin-bottom: 0;
  background: var(--bl-bg);
  color: var(--bl-text-sub);
}
.chat-notice-error {
  background: #ffebee;
  color: #c62828;
}
.chat-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- メッセージ一覧 ---------- */
main.message-list-main {
  padding: 16px 0 0;
  margin: 0;
}
.message-list-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 16px;
  background: transparent;
}
.message-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0 16px;
}
.message-list-page h1 {
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  font-size: 24px;
  font-weight: 800;
}
.message-list-unread-total {
  padding: 4px 12px;
  border-radius: 999px;
  background: #ff3b30;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.message-list-unread-total[hidden] {
  display: none;
}
.notify-card {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 16px;
  border-radius: var(--bl-radius);
  background: #fff;
  box-shadow: var(--bl-shadow);
}
.notify-card[hidden] {
  display: none;
}
.notify-card-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bl-brand-soft);
  color: var(--bl-brand);
}
.notify-card.is-on .notify-card-icon {
  background: #e7f9ee;
  color: #06a84a;
}
.notify-card-text {
  flex: 1;
  min-width: 0;
}
.notify-card-title {
  font-size: 14px;
  font-weight: 700;
}
.notify-card-sub {
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--bl-text-sub);
}
.notify-card-btn {
  flex-shrink: 0;
  min-height: 40px;
  padding: 0 16px;
  border: none;
  border-radius: 999px;
  background: var(--bl-brand);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}
.notify-card.is-on .notify-card-btn {
  background: var(--bl-bg);
  color: var(--bl-text);
}
.message-list {
  overflow: hidden;
  border-radius: var(--bl-radius);
  background: #fff;
  box-shadow: var(--bl-shadow);
}
.message-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--bl-line);
  background: #fff;
  color: inherit;
  text-decoration: none;
}
.message-list-item:last-child {
  border-bottom: none;
}
.message-list-item:hover {
  background: #fafafa;
}
.message-list-body {
  flex: 1;
  min-width: 0;
}
.message-list-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.message-list-name {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--bl-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.message-list-time {
  flex-shrink: 0;
  margin: 0;
  font-size: 12px;
  color: var(--bl-text-sub);
}
.message-list-preview {
  margin-top: 2px;
  font-size: 12px;
  color: var(--bl-brand);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.message-list-preview i {
  margin-right: 4px;
  font-size: 11px;
}
.message-list-bottom {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}
.message-list-meta {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 13px;
  color: var(--bl-text-sub);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.message-list-item.is-unread .message-list-meta {
  color: var(--bl-text);
  font-weight: 700;
}
.message-list-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #06c755;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
.message-list-empty {
  padding: 48px 16px;
  border-radius: var(--bl-radius);
  background: #fff;
  box-shadow: var(--bl-shadow);
  text-align: center;
  color: var(--bl-text);
}
.message-list-empty i {
  margin-bottom: 12px;
  font-size: 40px;
  color: #c7c7cc;
}
.message-list-empty p {
  font-size: 15px;
  font-weight: 600;
}
.message-list-empty .message-list-empty-sub {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 400;
  color: var(--bl-text-sub);
}

/* ---------- 未読のしるし（全ページ・script.js が付ける） ---------- */
.mypage-icon {
  position: relative;
  overflow: visible;
}
.mypage-icon img {
  border-radius: 50%;
}
.bl-unread-dot {
  position: absolute;
  top: 0;
  right: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ff3b30;
  border: 2px solid #fff;
}
.bl-unread-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  margin-left: auto;
  padding: 0 7px;
  border-radius: 999px;
  background: #ff3b30;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

/* ====================================================== */
/* 音声入力のマイクボタン（new_order_write.php）2026-10-30 */
/* ====================================================== */
.order-title-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-bottom: 20px;
}
.order .order-title-row h2 {
  margin: 0;
  padding: 0 56px;
}
.voice-mic-btn {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 50%;
  background: var(--bl-brand-soft);
  color: var(--bl-brand);
  font-size: 20px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.order .voice-mic-btn {
  display: inline-flex;
  width: 48px;
  margin-top: 0;
  padding: 0;
  border-radius: 50%;
  background: var(--bl-brand-soft);
  color: var(--bl-brand);
}
.voice-mic-btn[hidden] {
  display: none;
}
.order .voice-mic-btn:hover {
  background: #d6e8f8;
}
.order .voice-mic-btn.is-listening {
  background: #ff3b30;
  color: #fff;
  animation: voicePulse 1.4s ease-in-out infinite;
}
@keyframes voicePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.45); }
  50% { box-shadow: 0 0 0 10px rgba(255, 59, 48, 0); }
}
.voice-status {
  margin: -8px 0 16px;
  padding: 10px 14px;
  border-radius: var(--bl-radius-sm);
  background: #fff1f0;
  color: #c62828;
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}
.voice-status[hidden] {
  display: none;
}
.voice-status.is-error {
  background: var(--bl-bg);
  color: var(--bl-text-sub);
}

/* 入力欄の見出しの横に置くマイク（new_order_entry.php の投稿文章） */
.voice-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  margin-bottom: 8px;
}
.order .voice-label-row label {
  margin: 0;
}
.voice-label-row .voice-mic-btn {
  position: static;
  transform: none;
  flex-shrink: 0;
}
.voice-label-row + .voice-status {
  margin: 0 0 8px;
}

/* 売りたい（new_marketplace.php）の手順と同意 2026-10-30 */
.marketplace-howto {
  margin-bottom: 16px;
  padding: 16px;
  border-radius: var(--bl-radius-sm);
  background: var(--bl-brand-soft);
  color: var(--bl-text);
  line-height: 1.7;
}
.marketplace-howto-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  font-weight: 700;
  color: var(--bl-brand-dark);
}
.marketplace-steps {
  margin: 0;
  padding-left: 24px;
  font-size: 14px;
}
.marketplace-steps li {
  margin-bottom: 4px;
}
.marketplace-notice strong {
  color: #8a5a00;
}
.order .marketplace-agree {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 24px 0 0;
  padding: 12px 16px;
  border-radius: var(--bl-radius-sm);
  background: var(--bl-bg);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.6;
  cursor: pointer;
}
.marketplace-agree input[type="checkbox"] {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--bl-brand);
}

/* 売買：値段の確認日・投稿履歴の売買欄 2026-10-30 */
.marketplace-price-date {
  margin-left: 4px;
  font-size: 12px;
  font-weight: 400;
  color: var(--bl-text-sub);
}
.sale-history {
  max-width: 800px;
  margin: 32px auto 0;
}
.sale-history-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 0 4px;
  font-size: 18px;
  font-weight: 800;
  color: var(--bl-text);
}
.sale-history-title i {
  color: var(--bl-brand);
}
.order-list-page .card.sale-history-card.is-closed {
  background: #fafafa;
}
.sale-history-card.is-closed .sale-history-name {
  color: var(--bl-text-sub);
}
.sale-history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.sale-history-platform {
  padding: 2px 12px;
  border-radius: 999px;
  background: var(--bl-brand-soft);
  color: var(--bl-brand);
  font-size: 12px;
  font-weight: 700;
}
.sale-history-state {
  font-size: 12px;
  font-weight: 700;
}
.sale-history-state.is-open {
  color: #06a84a;
}
.sale-history-state.is-closed {
  color: var(--bl-text-sub);
}
.sale-history-name {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
}
.sale-history-reason {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--bl-text-sub);
}
.sale-history-reason i {
  margin-top: 4px;
}
.sale-history-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}
.sale-history-withdraw {
  margin: 0;
}
.sale-history-withdraw-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid #f1c4c4;
  border-radius: 999px;
  background: #fff;
  color: #c62828;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.sale-history-withdraw-btn:hover {
  background: #fff5f5;
}

/* 管理画面：アイコン一覧（admin/icons.php）2026-10-30 */
main.icon-admin {
  max-width: 1040px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}
.icon-admin-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 24px;
  font-weight: 800;
}
.icon-admin-title i {
  color: var(--bl-brand);
}
.icon-admin-lead {
  margin-bottom: 16px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--bl-text-sub);
}
.icon-admin-note {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-bottom: 24px;
  padding: 12px 16px;
  border-radius: var(--bl-radius-sm);
  background: #fff8e6;
  color: #5c4a1a;
  font-size: 13px;
  line-height: 1.7;
}
.icon-admin-note i {
  margin-top: 4px;
}
.icon-admin-default {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding: 16px;
  border-radius: var(--bl-radius);
  background: #fff;
  box-shadow: var(--bl-shadow);
}
.icon-admin-default-title {
  font-size: 15px;
  font-weight: 700;
}
.icon-admin-default-sub {
  margin-top: 4px;
  font-size: 13px;
  color: var(--bl-text-sub);
}
.icon-admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.icon-admin-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--bl-line);
  color: var(--bl-text);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.icon-admin-tab.is-active {
  background: var(--bl-brand);
  border-color: var(--bl-brand);
  color: #fff;
}
.icon-admin-count {
  min-width: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--bl-bg);
  color: var(--bl-text-sub);
  font-size: 12px;
  line-height: 20px;
  text-align: center;
}
.icon-admin-tab.is-active .icon-admin-count {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}
.icon-admin-hint {
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--bl-text-sub);
}
.icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
}
.icon-card {
  margin: 0;
  padding: 12px 8px;
  border-radius: var(--bl-radius-sm);
  background: #fff;
  box-shadow: var(--bl-shadow);
  text-align: center;
}
.icon-card.is-dup,
.icon-card.is-cluster {
  background: #fafafa;
}
/* 透明な部分が分かるよう、うすい市松の下地に置く */
.icon-thumb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background-color: #fff;
  background-image:
    linear-gradient(45deg, #f1f3f5 25%, transparent 25%),
    linear-gradient(-45deg, #f1f3f5 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #f1f3f5 75%),
    linear-gradient(-45deg, transparent 75%, #f1f3f5 75%);
  background-size: 16px 16px;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
  overflow: hidden;
  flex-shrink: 0;
}
.icon-thumb img {
  display: block;
  width: 96px;
  height: 96px;
  object-fit: contain;
}
.icon-card figcaption {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  font-size: 12px;
}
.icon-card-no {
  font-weight: 700;
  color: var(--bl-text);
}
/* ジャンルごとのまとまり（2026-11-03） */
.icon-admin-tab i {
  font-size: 13px;
}
.icon-genre {
  margin-bottom: 28px;
}
.icon-genre-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-size: 17px;
  font-weight: 700;
  color: var(--bl-text);
}
.icon-genre-title i {
  color: var(--bl-brand);
}
@media (max-width: 600px) {
  .icon-admin-tab {
    min-height: 36px;
    padding: 0 12px;
    font-size: 13px;
    gap: 6px;
  }
}

/* アイコンの使える条件（2026-11-03） */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.icon-admin-note.is-ok {
  background: #e8f6ee;
  color: #1e5c3a;
}
.icon-admin-note.is-error {
  background: #fdecec;
  color: #8a1f1f;
}
.icon-rule-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.icon-rule-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--bl-line);
  font-size: 12px;
  color: var(--bl-text);
}
.icon-rule-chip i {
  color: var(--bl-brand);
}
.icon-check-form {
  margin-bottom: 20px;
  padding: 12px 16px;
  border-radius: var(--bl-radius-sm);
  background: #fff;
  box-shadow: var(--bl-shadow);
}
.icon-check-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--bl-text);
}
.icon-check-label i {
  color: var(--bl-brand);
}
.icon-check-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.icon-check-prefix {
  font-weight: 700;
  color: var(--bl-text-sub);
}
.icon-check-input {
  width: 110px;
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid var(--bl-line);
  border-radius: 8px;
  font-size: 16px;
}
.icon-check-btn,
.icon-save-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--bl-brand);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.icon-check-clear {
  font-size: 13px;
  color: var(--bl-text-sub);
}
.icon-check-result {
  margin-top: 10px;
  font-size: 13px;
  color: var(--bl-text);
}
.icon-check-head {
  margin-bottom: 6px;
}
.icon-check-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--bl-text-sub);
}
.icon-check-counts i {
  margin-right: 4px;
  color: var(--bl-brand);
}
.icon-card {
  position: relative;
}
.icon-card.is-locked .icon-thumb img {
  opacity: 0.35;
  filter: grayscale(1);
}
.icon-card.is-unlocked {
  outline: 2px solid #3aa76d;
}
.icon-thumb {
  position: relative;
}
.icon-card-lock {
  position: absolute;
  right: 6px;
  bottom: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 12px;
}
.icon-rule-text {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  font-size: 11px;
  line-height: 1.4;
  color: var(--bl-text-sub);
}
.icon-rule-text i {
  color: var(--bl-brand);
}
.icon-rule-edit {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  margin-top: 4px;
}
.icon-rule-select {
  width: 100%;
  min-height: 34px;
  padding: 0 6px;
  border: 1px solid var(--bl-line);
  border-radius: 8px;
  background: #fff;
  font-size: 12px;
}
.icon-rule-num {
  display: flex;
  align-items: center;
  gap: 4px;
}
.icon-rule-input {
  flex: 1;
  min-width: 0;
  min-height: 34px;
  padding: 0 8px;
  border: 1px solid var(--bl-line);
  border-radius: 8px;
  font-size: 14px;
}
.icon-rule-unit {
  flex-shrink: 0;
  font-size: 12px;
  color: var(--bl-text-sub);
}
.icon-save-bar {
  position: sticky;
  bottom: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 12px;
  padding: 12px 16px;
  border-radius: var(--bl-radius-sm) var(--bl-radius-sm) 0 0;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
}
.icon-save-hint {
  font-size: 12px;
  color: var(--bl-text-sub);
}

/* 会員がアイコンを選ぶ画面 my_icon.php（2026-11-03） */
.my-icon-page {
  padding-bottom: 40px;
}
.my-icon-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0 16px;
  font-size: 20px;
  font-weight: 700;
  color: var(--bl-text);
}
.my-icon-title i {
  color: var(--bl-brand);
}
.my-icon-msg {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 10px 14px;
  border-radius: var(--bl-radius-sm);
  font-size: 14px;
}
.my-icon-msg.is-ok {
  background: #e8f6ee;
  color: #1e5c3a;
}
.my-icon-msg.is-error {
  background: #fdecec;
  color: #8a1f1f;
}
.my-icon-now {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
  padding: 16px;
  border-radius: var(--bl-radius-sm);
  background: #fff;
  box-shadow: var(--bl-shadow);
}
.my-icon-now-img img {
  display: block;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  background: #f4f6f8;
}
.my-icon-now-label {
  margin: 0 0 4px;
  font-weight: 700;
  color: var(--bl-text);
}
.my-icon-now-sub {
  margin: 0;
  font-size: 13px;
  color: var(--bl-text-sub);
}
.my-icon-progress {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}
.my-icon-stat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--bl-line);
  font-size: 12px;
  color: var(--bl-text-sub);
}
.my-icon-stat i {
  color: var(--bl-brand);
}
.my-icon-stat strong {
  margin-left: 2px;
  color: var(--bl-text);
}
.my-icon-line {
  margin-bottom: 20px;
}
.my-icon-line .my-icon-item {
  flex-direction: row;
  width: 100%;
  justify-content: flex-start;
  gap: 12px;
}
.my-icon-genre {
  margin-bottom: 24px;
}
.my-icon-genre-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 700;
  color: var(--bl-text);
}
.my-icon-genre-title i {
  color: var(--bl-brand);
}
.my-icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 10px;
}
.my-icon-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 0;
  padding: 10px 6px;
  border: 2px solid transparent;
  border-radius: var(--bl-radius-sm);
  background: #fff;
  box-shadow: var(--bl-shadow);
  font: inherit;
  color: var(--bl-text);
  cursor: pointer;
}
button.my-icon-item:hover,
button.my-icon-item:focus-visible {
  border-color: var(--bl-brand-soft);
}
.my-icon-item.is-current {
  border-color: var(--bl-brand);
}
.my-icon-item.is-locked {
  cursor: default;
  background: #f7f8fa;
  box-shadow: none;
}
.my-icon-thumb {
  position: relative;
  display: inline-flex;
}
.my-icon-thumb img {
  display: block;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
}
.my-icon-item.is-locked .my-icon-thumb img {
  opacity: 0.3;
  filter: grayscale(1);
}
.my-icon-lock {
  position: absolute;
  right: -2px;
  bottom: -2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 11px;
}
.my-icon-name {
  font-size: 14px;
  font-weight: 700;
}
.my-icon-badge {
  padding: 0 8px;
  border-radius: 999px;
  background: var(--bl-brand);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 20px;
}
.my-icon-cond {
  font-size: 10px;
  line-height: 1.4;
  color: var(--bl-text-sub);
  text-align: center;
  word-break: break-all;
}
.my-icon-left {
  font-size: 11px;
  font-weight: 700;
  color: var(--bl-brand);
}
.profile-icon-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--bl-brand);
  color: var(--bl-brand);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

/* ====================================================== */
/* 管理画面トップ（admin/index.php のダッシュボード）2026-10-30 */
/* ====================================================== */
main.dash {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 16px 56px;
}
.dash-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  padding: 28px 24px;
  border-radius: 24px;
  color: #fff;
  background:
    radial-gradient(circle at 90% 0%, rgba(0, 119, 204, 0.55) 0, rgba(0, 119, 204, 0) 55%),
    linear-gradient(150deg, #0a1a2f 0%, #0d2a4a 60%, #0b3d6e 100%);
}
.dash-hero-date {
  font-size: 13px;
  color: #9fb3cc;
  margin-bottom: 8px;
}
.dash-hero-title {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 8px;
}
.dash-hero-sub {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  font-size: 14px;
  color: #c9d6e6;
}
.dash-hero-sub strong {
  color: #fff;
}
.dash-role {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 12px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
  font-size: 12px;
  font-weight: 700;
}
.dash-hero-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.dash-hero-link:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* 数字のカード */
.dash-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
@media (min-width: 720px) {
  .dash-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* トップの閲覧（2026-11-17）：スマホでは横いっぱい、広い画面では1枠（9枚で 3×3） */
.dash-kpi--wide { grid-column: 1 / -1; }
@media (min-width: 720px) {
  .dash-kpi--wide { grid-column: auto; }
}
/* トップの閲覧のグラフは横いっぱい */
.dash-chart--wide { grid-column: 1 / -1; }
.dash-kpi {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: "icon label" "value value" "sub sub";
  align-items: center;
  column-gap: 8px;
  row-gap: 4px;
  padding: 16px;
  border-radius: var(--bl-radius);
  background: #fff;
  box-shadow: var(--bl-shadow);
  color: var(--bl-text);
  text-decoration: none;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
a.dash-kpi:hover {
  box-shadow: var(--bl-shadow-hover);
  transform: translateY(-1px);
}
.dash-kpi-icon {
  grid-area: icon;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--bl-brand-soft);
  color: var(--bl-brand);
  font-size: 14px;
}
.dash-kpi-label {
  grid-area: label;
  font-size: 13px;
  font-weight: 600;
  color: var(--bl-text-sub);
}
.dash-kpi-value {
  grid-area: value;
  margin-top: 4px;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.dash-kpi-value small {
  margin-left: 2px;
  font-size: 13px;
  font-weight: 700;
  color: var(--bl-text-sub);
}
.dash-kpi-sub {
  grid-area: sub;
  font-size: 12px;
  color: var(--bl-text-sub);
}

/* パネル */
.dash-panel {
  margin-bottom: 20px;
  padding: 20px;
  border-radius: var(--bl-radius);
  background: #fff;
  box-shadow: var(--bl-shadow);
}
.dash-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.dash-panel-head h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 800;
}
.dash-panel-head h2 i {
  color: var(--bl-brand);
}
.dash-panel-note {
  font-size: 12px;
  color: var(--bl-text-sub);
}
.dash-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.dash-more i {
  font-size: 11px;
}
.dash-grid {
  display: grid;
  gap: 0 20px;
}
@media (min-width: 900px) {
  .dash-grid { grid-template-columns: 1fr 1fr; }
}
.dash-empty {
  font-size: 14px;
  color: var(--bl-text-sub);
}

/* 直近14日の棒グラフ（1つのグラフに1つの数だけ。目盛りは1本） */
.dash-charts {
  display: grid;
  gap: 24px;
}
@media (min-width: 720px) {
  .dash-charts { grid-template-columns: 1fr 1fr; }
}
.dash-chart {
  margin: 0;
}
.dash-chart figcaption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}
.dash-chart-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--bl-text);
}
.dash-chart-total {
  font-size: 12px;
  color: var(--bl-text-sub);
}
.dash-chart-total strong {
  font-size: 16px;
  color: var(--bl-text);
}
.dash-bars {
  display: grid;
  grid-template-columns: repeat(14, minmax(0, 1fr));
  align-items: end;
  gap: 2px;
  height: 120px;
  padding-bottom: 1px;
  border-bottom: 1px solid var(--bl-line);
}
.dash-bar-col {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 100%;
  cursor: default;
  outline: none;
}
.dash-bar {
  display: block;
  width: 70%;
  max-width: 18px;
  border-radius: 4px 4px 0 0;
  background: var(--bl-brand);
}
.dash-bar-col:hover .dash-bar,
.dash-bar-col:focus .dash-bar {
  background: var(--bl-brand-dark);
}
.dash-bar-col:hover::before,
.dash-bar-col:focus::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 6px;
  background: rgba(0, 119, 204, 0.06);
}
.dash-bar-tip {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  z-index: 2;
  transform: translateX(-50%);
  display: none;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--bl-text);
  color: #fff;
  font-size: 11px;
  line-height: 1.4;
  white-space: nowrap;
  pointer-events: none;
  text-align: center;
}
.dash-bar-tip b {
  display: block;
  font-size: 13px;
}
.dash-bar-col:hover .dash-bar-tip,
.dash-bar-col:focus .dash-bar-tip {
  display: block;
}
.dash-bar-col:first-child .dash-bar-tip { left: 0; transform: none; }
.dash-bar-col:last-child .dash-bar-tip { left: auto; right: 0; transform: none; }
.dash-bar-axis {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 11px;
  color: var(--bl-text-sub);
}
.dash-table-toggle {
  margin-top: 16px;
  font-size: 13px;
}
.dash-table-toggle summary {
  cursor: pointer;
  color: var(--bl-brand);
  font-weight: 600;
}
.dash-table-wrap {
  margin-top: 8px;
  overflow-x: auto;
}
.dash-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.dash-table th,
.dash-table td {
  padding: 6px 8px;
  border-bottom: 1px solid var(--bl-line);
  text-align: right;
}
.dash-table th:first-child,
.dash-table td:first-child {
  text-align: left;
}
.dash-table th {
  color: var(--bl-text-sub);
  font-weight: 600;
}

/* 一覧（最近の投稿・最近ログインした会員） */
.dash-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.dash-list li + li {
  border-top: 1px solid var(--bl-line);
}
.dash-list a,
.dash-member {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 4px;
  color: var(--bl-text);
  text-decoration: none;
}
.dash-list a:hover {
  background: #fafafa;
}
.dash-list-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.dash-list-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dash-list-sub {
  font-size: 12px;
  color: var(--bl-text-sub);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dash-list-time {
  flex-shrink: 0;
  font-size: 12px;
  color: var(--bl-text-sub);
}
.dash-type {
  flex-shrink: 0;
  min-width: 52px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}
.dash-type-job { background: #e8f2fb; color: #005a9e; }
.dash-type-order { background: #fff3e0; color: #9a4b00; }
.dash-type-board { background: #eef2f7; color: #334155; }
.dash-type-sale { background: #e7f9ee; color: #067a3a; }
.dash-avatar {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b9be0, #0b4f8a);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}
.dash-badge {
  flex-shrink: 0;
  padding: 0 8px;
  border-radius: 999px;
  background: #fff3d6;
  color: #8a5a00;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
}

/* 見張りと自動の処理 */
.dash-status {
  display: grid;
  gap: 12px;
}
@media (min-width: 720px) {
  .dash-status { grid-template-columns: 1fr 1fr; }
}
.dash-status-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: var(--bl-radius-sm);
  background: var(--bl-bg);
  color: var(--bl-text);
  text-decoration: none;
}
a.dash-status-item:hover {
  background: #ececf0;
}
.dash-status-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 16px;
}
.dash-status-icon.is-ok { background: #e7f9ee; color: #067a3a; }
.dash-status-icon.is-warn { background: #fff3d6; color: #8a5a00; }
.dash-status-icon.is-bad { background: #fdecec; color: #c62828; }
.dash-status-icon.is-muted { background: #e5e5ea; color: #8e8e93; }
.dash-status-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.dash-status-name {
  font-size: 14px;
  font-weight: 700;
}
.dash-status-sub {
  font-size: 12px;
  color: var(--bl-text-sub);
}

/* 管理メニュー */
.dash-menu {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
@media (min-width: 720px) {
  .dash-menu { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.dash-menu-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  border-radius: var(--bl-radius-sm);
  border: 1px solid var(--bl-line);
  color: var(--bl-text);
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.dash-menu-item:hover {
  border-color: var(--bl-brand);
  background: var(--bl-brand-soft);
}
.dash-menu-item > i {
  font-size: 20px;
  color: var(--bl-brand);
}
.dash-menu-item.is-primary {
  border-color: transparent;
  background: #0d2a4a;
  color: #fff;
}
.dash-menu-item.is-primary > i {
  color: #fbbf24;
}
.dash-menu-item.is-primary .dash-menu-desc {
  color: #c9d6e6;
}
.dash-menu-item.is-primary:hover {
  background: #0b3d6e;
}
.dash-menu-name {
  font-size: 14px;
  font-weight: 700;
}
.dash-menu-desc {
  font-size: 12px;
  line-height: 1.5;
  color: var(--bl-text-sub);
}
/* 棒の高さ（0〜100%）。直書きを避けるためにクラスで持つ */.dash-bar.ph-0 { height: 0%; }
.dash-bar.ph-1 { height: 1%; }
.dash-bar.ph-2 { height: 2%; }
.dash-bar.ph-3 { height: 3%; }
.dash-bar.ph-4 { height: 4%; }
.dash-bar.ph-5 { height: 5%; }
.dash-bar.ph-6 { height: 6%; }
.dash-bar.ph-7 { height: 7%; }
.dash-bar.ph-8 { height: 8%; }
.dash-bar.ph-9 { height: 9%; }
.dash-bar.ph-10 { height: 10%; }
.dash-bar.ph-11 { height: 11%; }
.dash-bar.ph-12 { height: 12%; }
.dash-bar.ph-13 { height: 13%; }
.dash-bar.ph-14 { height: 14%; }
.dash-bar.ph-15 { height: 15%; }
.dash-bar.ph-16 { height: 16%; }
.dash-bar.ph-17 { height: 17%; }
.dash-bar.ph-18 { height: 18%; }
.dash-bar.ph-19 { height: 19%; }
.dash-bar.ph-20 { height: 20%; }
.dash-bar.ph-21 { height: 21%; }
.dash-bar.ph-22 { height: 22%; }
.dash-bar.ph-23 { height: 23%; }
.dash-bar.ph-24 { height: 24%; }
.dash-bar.ph-25 { height: 25%; }
.dash-bar.ph-26 { height: 26%; }
.dash-bar.ph-27 { height: 27%; }
.dash-bar.ph-28 { height: 28%; }
.dash-bar.ph-29 { height: 29%; }
.dash-bar.ph-30 { height: 30%; }
.dash-bar.ph-31 { height: 31%; }
.dash-bar.ph-32 { height: 32%; }
.dash-bar.ph-33 { height: 33%; }
.dash-bar.ph-34 { height: 34%; }
.dash-bar.ph-35 { height: 35%; }
.dash-bar.ph-36 { height: 36%; }
.dash-bar.ph-37 { height: 37%; }
.dash-bar.ph-38 { height: 38%; }
.dash-bar.ph-39 { height: 39%; }
.dash-bar.ph-40 { height: 40%; }
.dash-bar.ph-41 { height: 41%; }
.dash-bar.ph-42 { height: 42%; }
.dash-bar.ph-43 { height: 43%; }
.dash-bar.ph-44 { height: 44%; }
.dash-bar.ph-45 { height: 45%; }
.dash-bar.ph-46 { height: 46%; }
.dash-bar.ph-47 { height: 47%; }
.dash-bar.ph-48 { height: 48%; }
.dash-bar.ph-49 { height: 49%; }
.dash-bar.ph-50 { height: 50%; }
.dash-bar.ph-51 { height: 51%; }
.dash-bar.ph-52 { height: 52%; }
.dash-bar.ph-53 { height: 53%; }
.dash-bar.ph-54 { height: 54%; }
.dash-bar.ph-55 { height: 55%; }
.dash-bar.ph-56 { height: 56%; }
.dash-bar.ph-57 { height: 57%; }
.dash-bar.ph-58 { height: 58%; }
.dash-bar.ph-59 { height: 59%; }
.dash-bar.ph-60 { height: 60%; }
.dash-bar.ph-61 { height: 61%; }
.dash-bar.ph-62 { height: 62%; }
.dash-bar.ph-63 { height: 63%; }
.dash-bar.ph-64 { height: 64%; }
.dash-bar.ph-65 { height: 65%; }
.dash-bar.ph-66 { height: 66%; }
.dash-bar.ph-67 { height: 67%; }
.dash-bar.ph-68 { height: 68%; }
.dash-bar.ph-69 { height: 69%; }
.dash-bar.ph-70 { height: 70%; }
.dash-bar.ph-71 { height: 71%; }
.dash-bar.ph-72 { height: 72%; }
.dash-bar.ph-73 { height: 73%; }
.dash-bar.ph-74 { height: 74%; }
.dash-bar.ph-75 { height: 75%; }
.dash-bar.ph-76 { height: 76%; }
.dash-bar.ph-77 { height: 77%; }
.dash-bar.ph-78 { height: 78%; }
.dash-bar.ph-79 { height: 79%; }
.dash-bar.ph-80 { height: 80%; }
.dash-bar.ph-81 { height: 81%; }
.dash-bar.ph-82 { height: 82%; }
.dash-bar.ph-83 { height: 83%; }
.dash-bar.ph-84 { height: 84%; }
.dash-bar.ph-85 { height: 85%; }
.dash-bar.ph-86 { height: 86%; }
.dash-bar.ph-87 { height: 87%; }
.dash-bar.ph-88 { height: 88%; }
.dash-bar.ph-89 { height: 89%; }
.dash-bar.ph-90 { height: 90%; }
.dash-bar.ph-91 { height: 91%; }
.dash-bar.ph-92 { height: 92%; }
.dash-bar.ph-93 { height: 93%; }
.dash-bar.ph-94 { height: 94%; }
.dash-bar.ph-95 { height: 95%; }
.dash-bar.ph-96 { height: 96%; }
.dash-bar.ph-97 { height: 97%; }
.dash-bar.ph-98 { height: 98%; }
.dash-bar.ph-99 { height: 99%; }
.dash-bar.ph-100 { height: 100%; }

.dash-bars {
  position: relative;
}
.dash-chart-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  font-size: 13px;
  color: var(--bl-text-sub);
  pointer-events: none;
}
/* ダッシュボード：長いタイトルで横にはみ出さないよう、列の最小幅を 0 にする */
main.dash {
  overflow-x: clip;
}
.dash-grid,
.dash-charts,
.dash-status {
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 720px) {
  .dash-charts,
  .dash-status { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .dash-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.dash-panel,
.dash-kpi,
.dash-list li,
.dash-list a,
.dash-member,
.dash-status-item {
  min-width: 0;
}
.dash-list-title {
  display: block;
}
.dash-list-title .dash-badge {
  margin-left: 6px;
}


/* =========================================================
   請求書（2026-11-02）invoice_*.php ・ テンプレート30種類（6つの形 × 5色）
   スマホで横にはみ出さないよう、grid は minmax(0,1fr)、子は min-width:0。
   ========================================================= */
.iv-c-navy  { --iv-main: #1f3a5f; --iv-soft: #e9eef5; }
.iv-c-blue  { --iv-main: #0077cc; --iv-soft: #e8f2fb; }
.iv-c-green { --iv-main: #2e6b4a; --iv-soft: #e8f1ec; }
.iv-c-red   { --iv-main: #9c3b2c; --iv-soft: #f6ebe8; }
.iv-c-black { --iv-main: #2b2b2b; --iv-soft: #efefef; }

.iv-body { background: var(--bl-bg); overflow-x: hidden; }
.iv-main { padding: 0; }
.iv-wrap { box-sizing: border-box; width: 100%; max-width: 860px; margin: 0 auto; padding: 16px 16px 120px; }
.iv-wrap-wide { max-width: 1120px; }
.iv-wrap *, .iv-wrap *::before, .iv-wrap *::after { box-sizing: border-box; }
.iv-h1 { font-size: 22px; font-weight: 700; color: var(--bl-text); margin: 8px 0 12px; line-height: 1.35; overflow-wrap: anywhere; }
.iv-h1 small { font-size: 13px; font-weight: 500; color: var(--bl-text-sub); margin-left: 6px; }
.iv-h2 { font-size: 16px; font-weight: 700; color: var(--bl-text); margin: 0 0 12px; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.iv-h2 > i { color: var(--bl-brand); }
.iv-h2-sub { font-size: 12px; font-weight: 500; color: var(--bl-text-sub); }
.iv-lead { color: var(--bl-text-sub); font-size: 14px; margin: 0 0 14px; line-height: 1.7; }
.iv-note { font-size: 12px; color: var(--bl-text-sub); margin: 6px 0 0; line-height: 1.6; }
.iv-hint { background: var(--bl-brand-soft); color: var(--bl-brand-dark); border-radius: var(--bl-radius-sm); padding: 12px 14px; font-size: 13px; line-height: 1.6; margin: 0 0 14px; }
.iv-hint a { color: inherit; font-weight: 700; }
.iv-link { color: var(--bl-brand); font-size: 13px; font-weight: 600; text-decoration: none; }

/* タブ */
.iv-tabs { display: flex; gap: 6px; overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 2px 0 8px; margin: 0 0 4px; scrollbar-width: none; }
.iv-tabs::-webkit-scrollbar { display: none; }
.iv-tab { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: var(--bl-card); color: var(--bl-text-sub); font-size: 13px; font-weight: 600; text-decoration: none; border: 1px solid var(--bl-line); }
.iv-tab.is-active { background: var(--bl-brand); border-color: var(--bl-brand); color: #fff; }

/* カード・入力 */
.iv-form { margin: 0; }
.iv-card { background: var(--bl-card); border-radius: var(--bl-radius); box-shadow: var(--bl-shadow); padding: 18px 16px; margin: 0 0 14px; min-width: 0; }
.iv-field { display: block; min-width: 0; margin: 0 0 12px; }
.iv-field > span { display: block; font-size: 12px; font-weight: 600; color: var(--bl-text-sub); margin: 0 0 5px; }
.iv-field input, .iv-field select, .iv-field textarea,
.iv-item input, .iv-item select, .iv-search input, .iv-search select, .iv-tpl-switch select {
  width: 100%; max-width: 100%; min-width: 0; font-size: 16px; padding: 10px 12px; border: 1px solid #d2d2d7; border-radius: 10px; background: #fff; color: var(--bl-text); font-family: inherit; line-height: 1.4;
}
.iv-field textarea { resize: vertical; }
.iv-field input:focus, .iv-field select:focus, .iv-field textarea:focus, .iv-item input:focus, .iv-item select:focus { outline: none; border-color: var(--bl-brand); box-shadow: 0 0 0 3px rgba(0, 119, 204, 0.15); }
.iv-req { font-style: normal; font-size: 10px; color: #fff; background: var(--bl-accent); border-radius: 4px; padding: 1px 5px; margin-left: 4px; }
.iv-grid2, .iv-grid3 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 12px; }
.iv-grid-name { display: grid; grid-template-columns: minmax(0, 1fr) 96px; gap: 0 10px; }
@media (min-width: 640px) {
  .iv-grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .iv-grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .iv-card { padding: 22px 24px; }
}
.iv-check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; margin: 6px 0; cursor: pointer; min-width: 0; }
.iv-check input { width: 20px; height: 20px; margin: 1px 0 0; flex: 0 0 auto; accent-color: var(--bl-brand); }
.iv-check small { display: block; font-size: 12px; color: var(--bl-text-sub); margin-top: 2px; line-height: 1.5; }
.iv-checks { margin-top: 4px; }

/* チップ */
.iv-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.iv-chip { display: inline-flex; align-items: center; gap: 4px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--bl-line); background: #fff; color: var(--bl-text); font-size: 13px; text-decoration: none; cursor: pointer; font-family: inherit; }
.iv-chip.is-on { background: var(--bl-text); color: #fff; border-color: var(--bl-text); }
.iv-chip em { font-style: normal; font-size: 11px; background: var(--bl-accent); color: #fff; border-radius: 999px; padding: 0 6px; }

/* ボタン */
.iv-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 10px 18px; border-radius: 12px; font-size: 15px; font-weight: 700; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: inherit; line-height: 1.2; white-space: nowrap; }
.iv-btn-main { background: var(--bl-brand); color: #fff; }
.iv-btn-main:hover { background: var(--bl-brand-dark); }
.iv-btn-sub { background: var(--bl-brand-soft); color: var(--bl-brand-dark); }
.iv-btn-ghost { background: #fff; color: var(--bl-text); border-color: var(--bl-line); }
.iv-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; margin: 6px 0 14px; }
.iv-actions-sticky { position: sticky; bottom: 0; z-index: 5; background: rgba(245, 245, 247, 0.94); backdrop-filter: blur(8px); padding: 10px 0 calc(10px + env(safe-area-inset-bottom)); margin: 0; }
.iv-actions-sticky .iv-btn { flex: 1 1 0; min-width: 0; }
@media (min-width: 640px) { .iv-actions-sticky .iv-btn { flex: 0 0 auto; } }
.iv-inline-form { display: inline-flex; flex-wrap: wrap; gap: 6px; margin: 0; }

/* テンプレートを選ぶ（作成画面） */
.iv-tpl-pick { display: grid; gap: 12px; }
.iv-tpl-layouts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 640px) { .iv-tpl-layouts { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.iv-tpl-layout { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 4px; border: 2px solid var(--bl-line); border-radius: 12px; cursor: pointer; background: #fff; min-width: 0; }
.iv-tpl-layout input, .iv-tpl-color input { position: absolute; opacity: 0; pointer-events: none; }
.iv-tpl-layout:has(input:checked) { border-color: var(--bl-brand); background: var(--bl-brand-soft); }
.iv-tpl-layout:has(input:focus-visible), .iv-tpl-color:has(input:focus-visible) { outline: 3px solid rgba(0, 119, 204, 0.35); }
.iv-tpl-layout-name { font-size: 11px; font-weight: 600; text-align: center; color: var(--bl-text); line-height: 1.3; }
.iv-mini { position: relative; display: block; width: 44px; height: 56px; background: #fff; border: 1px solid #d2d2d7; border-radius: 3px; overflow: hidden; }
.iv-mini i { position: absolute; left: 8px; right: 8px; top: 6px; height: 4px; background: var(--iv-main); border-radius: 1px; }
.iv-mini b { position: absolute; left: 6px; right: 6px; height: 2px; background: #c7c7cc; }
.iv-mini b:nth-of-type(1) { top: 26px; }
.iv-mini b:nth-of-type(2) { top: 32px; }
.iv-mini em { position: absolute; left: 6px; right: 6px; bottom: 6px; height: 10px; border-top: 3px solid var(--iv-main); background: #f2f2f7; }
.iv-mini-band i { left: 0; right: 0; top: 0; height: 12px; border-radius: 0; }
.iv-mini-classic i { left: 12px; right: 12px; height: 2px; box-shadow: 0 3px 0 var(--iv-main); }
.iv-mini-minimal i { right: 24px; height: 3px; }
.iv-mini-minimal em { background: #fff; border-top-width: 1px; }
.iv-mini-bold b:nth-of-type(1) { top: 16px; height: 10px; background: var(--iv-main); }
.iv-mini-construction i { left: 12px; right: 12px; height: 7px; background: #fff; border: 1px solid var(--iv-main); }
.iv-mini-construction b:nth-of-type(1) { height: 7px; background: #fff; border: 1px solid var(--iv-main); top: 18px; }
.iv-tpl-colors { display: flex; flex-wrap: wrap; gap: 8px; }
.iv-tpl-color { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 6px; border: 2px solid var(--bl-line); border-radius: 999px; cursor: pointer; background: #fff; font-size: 13px; }
.iv-tpl-color:has(input:checked) { border-color: var(--iv-main); }
.iv-swatch { width: 22px; height: 22px; border-radius: 50%; background: var(--iv-main); box-shadow: inset 0 0 0 3px var(--iv-soft); }

/* 明細 */
.iv-items { display: grid; gap: 10px; margin: 0 0 12px; }
.iv-item { border: 1px solid var(--bl-line); border-radius: 12px; padding: 10px; background: #fcfcfd; min-width: 0; }
.iv-item-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.iv-item-no { flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%; background: var(--bl-brand-soft); color: var(--bl-brand-dark); font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.iv-item-name { flex: 1 1 auto; font-weight: 600; }
.iv-item-desc { margin-top: 8px; font-size: 14px !important; }
.iv-icon-btn { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--bl-line); background: #fff; color: var(--bl-text-sub); cursor: pointer; }
.iv-item-nums { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.iv-item-nums label, .iv-item-amount { display: block; min-width: 0; }
.iv-item-nums label > span, .iv-item-amount > span { display: block; font-size: 11px; color: var(--bl-text-sub); margin-bottom: 3px; }
.iv-item-amount { grid-column: 1 / -1; display: flex; align-items: baseline; justify-content: space-between; border-top: 1px dashed var(--bl-line); padding-top: 8px; }
.iv-item-amount strong { font-size: 17px; }
@media (min-width: 640px) {
  .iv-item-nums { grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr) minmax(0, 1.3fr) minmax(0, 1.1fr) minmax(0, 1.2fr); align-items: end; }
  .iv-item-amount { grid-column: auto; display: block; border-top: 0; padding-top: 0; text-align: right; }
}

/* 合計 */
.iv-totals { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; margin: 10px 0 0; padding: 14px; background: #f7f7f9; border-radius: 12px; }
.iv-totals dt { color: var(--bl-text-sub); font-size: 14px; margin: 0; }
.iv-totals dd { margin: 0; text-align: right; font-size: 14px; font-variant-numeric: tabular-nums; }
.iv-totals .iv-totals-main { font-size: 18px; font-weight: 800; color: var(--bl-brand-dark); border-top: 1px solid var(--bl-line); padding-top: 8px; }

/* 一覧 */
.iv-list-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.iv-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 4px 0 16px; }
@media (min-width: 720px) { .iv-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.iv-kpi { background: var(--bl-card); border-radius: var(--bl-radius-sm); box-shadow: var(--bl-shadow); padding: 12px 14px; min-width: 0; }
.iv-kpi span { display: block; font-size: 12px; color: var(--bl-text-sub); }
.iv-kpi strong { display: block; font-size: 19px; font-weight: 800; margin-top: 4px; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.iv-kpi.is-alert strong { color: #c62828; }
.iv-filters { margin: 0 0 12px; }
.iv-search { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 120px) 48px; gap: 8px; }
.iv-search .iv-btn { padding: 0; min-width: 0; }
.iv-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.iv-row { background: var(--bl-card); border-radius: var(--bl-radius-sm); box-shadow: var(--bl-shadow); overflow: hidden; min-width: 0; }
.iv-row-main { display: flex; gap: 12px; align-items: stretch; padding: 14px; text-decoration: none; color: var(--bl-text); min-width: 0; }
.iv-row-swatch { flex: 0 0 4px; border-radius: 4px; background: var(--iv-main); }
.iv-row-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.iv-row-client { font-weight: 700; font-size: 15px; overflow-wrap: anywhere; }
.iv-row-sub { font-size: 12px; color: var(--bl-text-sub); overflow-wrap: anywhere; }
.iv-row-right { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.iv-row-right strong { font-size: 16px; font-variant-numeric: tabular-nums; }
.iv-row-actions { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 12px; }
.iv-mini-btn { display: inline-flex; align-items: center; gap: 5px; min-height: 34px; padding: 6px 10px; border-radius: 9px; border: 1px solid var(--bl-line); background: #fff; color: var(--bl-text); font-size: 12px; font-weight: 600; text-decoration: none; cursor: pointer; font-family: inherit; }
.iv-mini-main { background: var(--bl-brand); border-color: var(--bl-brand); color: #fff; }
.iv-mini-danger { color: #c62828; }
.iv-badge { display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.iv-badge-draft { background: #f0f0f2; color: #555; }
.iv-badge-issued { background: var(--bl-brand-soft); color: var(--bl-brand-dark); }
.iv-badge-paid { background: #e6f4ea; color: #1e7b3a; }
.iv-badge-late { background: #fdecea; color: #c62828; }
.iv-empty { text-align: center; background: var(--bl-card); border-radius: var(--bl-radius); padding: 36px 16px; color: var(--bl-text-sub); }
.iv-empty > i { font-size: 36px; color: #c7c7cc; }

/* 表示 */
.iv-view-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--bl-text-sub); margin: -6px 0 12px; }
.iv-view-sub strong { color: var(--bl-text); font-size: 15px; }
.iv-toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.iv-toolbar > .iv-btn { flex: 1 1 140px; }
.iv-tpl-switch { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 10px; }
.iv-tpl-switch label { font-size: 13px; font-weight: 700; color: var(--bl-text-sub); }
.iv-tpl-switch select { flex: 1 1 220px; width: auto; }
.iv-tpl-save { margin: 0 0 12px; }
.iv-tpl-save .iv-btn { white-space: normal; text-align: left; }
.iv-paper-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; background: #e9e9ee; border-radius: var(--bl-radius); padding: 12px; }

/* 請求書の紙（画面用。PDF は invoice_lib.php の iv_pdf_html） */
.iv-doc { --iv-ink: #222; --iv-sub: #666; --iv-line: #d0d0d0; background: #fff; color: var(--iv-ink); width: 100%; min-width: 600px; max-width: 820px; margin: 0 auto; padding: 36px 34px; font-size: 13px; line-height: 1.6; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08); font-family: "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif; }
.iv-doc-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding-bottom: 10px; border-bottom: 3px solid var(--iv-main); margin-bottom: 18px; }
.iv-doc-title { font-size: 28px; font-weight: 700; letter-spacing: 0.4em; }
.iv-doc-title small { display: block; font-size: 10px; letter-spacing: 0.2em; color: var(--iv-sub); font-weight: 500; }
.iv-doc-meta { font-size: 11px; text-align: right; color: var(--iv-ink); }
.iv-doc-parties { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 20px; margin-bottom: 16px; }
.iv-doc-client-name { font-size: 18px; font-weight: 700; border-bottom: 1px solid var(--iv-ink); padding-bottom: 4px; margin-bottom: 6px; overflow-wrap: anywhere; }
.iv-doc-client-name span { font-size: 14px; font-weight: 500; }
.iv-doc-small { font-size: 11px; color: var(--iv-sub); overflow-wrap: anywhere; }
.iv-doc-lead { margin: 10px 0 0; font-size: 12px; }
.iv-doc-company { position: relative; padding-right: 70px; min-height: 70px; }
.iv-doc-company-name { font-size: 15px; font-weight: 700; overflow-wrap: anywhere; }
.iv-doc-seal { position: absolute; right: 0; top: 0; width: 64px; height: 64px; object-fit: contain; }
.iv-doc-project { display: grid; grid-template-columns: 80px minmax(0, 1fr); margin: 0 0 14px; }
.iv-doc-project dt { font-size: 11px; color: var(--iv-sub); padding: 5px 0; }
.iv-doc-project dd { margin: 0; padding: 5px 0; border-bottom: 1px solid var(--iv-line); overflow-wrap: anywhere; }
.iv-doc-amount { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 16px; align-items: center; margin-bottom: 16px; }
.iv-doc-amount-box { display: flex; align-items: stretch; border: 2px solid var(--iv-main); }
.iv-doc-amount-box span { background: var(--iv-main); color: #fff; font-size: 12px; padding: 10px 12px; display: flex; align-items: center; }
.iv-doc-amount-box strong { flex: 1; text-align: right; font-size: 24px; padding: 6px 14px; font-variant-numeric: tabular-nums; }
.iv-doc-table-wrap { margin-bottom: 6px; }
.iv-doc-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.iv-doc-table th { background: var(--iv-main); color: #fff; font-weight: 600; padding: 7px 8px; text-align: center; white-space: nowrap; }
.iv-doc-table td { padding: 7px 8px; border-bottom: 1px solid var(--iv-line); vertical-align: top; font-variant-numeric: tabular-nums; }
.iv-doc-table td small { display: block; color: var(--iv-sub); font-size: 10.5px; }
.iv-doc-table tbody tr:nth-child(even) td { background: #fafafa; }
.iv-doc-table .iv-r { text-align: right; white-space: nowrap; }
.iv-doc-table .iv-c { text-align: center; white-space: nowrap; }
.iv-doc-sum { margin-left: auto; width: 55%; border-collapse: collapse; font-size: 12px; }
.iv-doc-sum th { text-align: left; font-weight: 500; padding: 6px 8px; border-bottom: 1px solid var(--iv-line); }
.iv-doc-sum td { text-align: right; padding: 6px 8px; border-bottom: 1px solid var(--iv-line); white-space: nowrap; font-variant-numeric: tabular-nums; }
.iv-doc-sum .iv-doc-sum-total th, .iv-doc-sum .iv-doc-sum-total td { background: var(--iv-soft); border-top: 2px solid var(--iv-main); font-weight: 700; font-size: 14px; }
.iv-doc-notes { margin-top: 16px; border: 1px solid var(--iv-line); padding: 10px 12px; font-size: 12px; }
.iv-doc-notes span { display: block; font-size: 11px; color: var(--iv-sub); }

/* 形ごとの違い */
.iv-l-band .iv-doc-head { background: var(--iv-main); color: #fff; border-bottom: 0; margin: -36px -34px 20px; padding: 22px 34px; }
.iv-l-band .iv-doc-meta { color: #fff; }
.iv-l-classic { font-family: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif; }
.iv-l-classic .iv-doc-head { flex-direction: column; align-items: stretch; border-bottom: 0; box-shadow: 0 3px 0 #fff, 0 4px 0 var(--iv-main); padding-bottom: 6px; border-bottom: 3px solid var(--iv-main); }
.iv-l-classic .iv-doc-title { text-align: center; letter-spacing: 0.6em; }
.iv-l-classic .iv-doc-table th { background: var(--iv-soft); color: var(--iv-ink); border: 1px solid #888; }
.iv-l-classic .iv-doc-table td { border: 1px solid #888; background: #fff !important; }
.iv-l-classic .iv-doc-amount-box { border-width: 0 0 3px; }
.iv-l-classic .iv-doc-amount-box span { background: none; color: var(--iv-ink); }
.iv-l-minimal .iv-doc-head { border-bottom-width: 1px; }
.iv-l-minimal .iv-doc-title { font-size: 22px; letter-spacing: 0.1em; color: var(--iv-main); }
.iv-l-minimal .iv-doc-table th { background: none; color: var(--iv-ink); border-bottom: 2px solid var(--iv-main); }
.iv-l-minimal .iv-doc-table tbody tr:nth-child(even) td { background: none; }
.iv-l-minimal .iv-doc-amount-box { border-width: 1px 0; }
.iv-l-minimal .iv-doc-amount-box span { background: none; color: var(--iv-sub); }
.iv-l-minimal .iv-doc-amount-box strong { color: var(--iv-main); }
.iv-l-bold .iv-doc-head { border-bottom: 0; }
.iv-l-bold .iv-doc-title { color: var(--iv-main); }
.iv-l-bold .iv-doc-amount { grid-template-columns: minmax(0, 1fr); }
.iv-l-bold .iv-doc-amount-box { flex-direction: column; background: var(--iv-main); border: 0; color: #fff; padding: 10px 16px; }
.iv-l-bold .iv-doc-amount-box span { padding: 0; }
.iv-l-bold .iv-doc-amount-box strong { text-align: left; font-size: 34px; padding: 0; }
.iv-l-construction .iv-doc-head { flex-direction: column; align-items: stretch; border-bottom: 0; }
.iv-l-construction .iv-doc-title { align-self: center; border: 2px solid var(--iv-main); padding: 4px 30px; letter-spacing: 0.5em; }
.iv-l-construction .iv-doc-project { border: 2px solid var(--iv-main); grid-template-columns: 90px minmax(0, 1fr); }
.iv-l-construction .iv-doc-project dt { background: var(--iv-soft); padding: 7px 10px; border-bottom: 1px solid var(--iv-line); color: var(--iv-ink); }
.iv-l-construction .iv-doc-project dd { padding: 7px 10px; font-size: 14px; }

/* テンプレートの見本（小さく縮めて並べる） */
.iv-tpl-section { margin: 18px 0 8px; }
.iv-tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 14px; }
.iv-tpl-card { background: var(--bl-card); border-radius: var(--bl-radius); box-shadow: var(--bl-shadow); overflow: hidden; border: 2px solid transparent; min-width: 0; scroll-margin-top: 80px; }
.iv-tpl-card.is-default { border-color: var(--bl-brand); }
.iv-tpl-thumb { position: relative; height: 300px; overflow: hidden; background: #e9e9ee; display: flex; align-items: flex-start; justify-content: center; padding-top: 12px; pointer-events: none; }
/* 紙は中身の高さのまま（枠の高さに引き伸ばさない）。縮めて置き、下は枠で切る */
.iv-tpl-thumb .iv-doc { flex: 0 0 auto; align-self: flex-start; height: auto; width: 600px; min-width: 600px; transform: scale(0.38); transform-origin: top center; margin: 0 -186px; }
.iv-tpl-thumb::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 36px; background: linear-gradient(rgba(233, 233, 238, 0), #e9e9ee); }
.iv-tpl-info { padding: 10px 12px 12px; }
.iv-tpl-name { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.iv-tpl-no { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 24px; border-radius: 6px; background: var(--bl-bg); font-size: 11px; color: var(--bl-text-sub); }
.iv-tpl-btns { display: flex; flex-wrap: wrap; gap: 6px; }

/* 設定 */
.iv-seal-row { display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap; }
.iv-seal-preview, .iv-seal-empty { width: 88px; height: 88px; border-radius: 12px; border: 1px dashed #c7c7cc; background: repeating-conic-gradient(#f2f2f7 0% 25%, #fff 0% 50%) 50% / 16px 16px; object-fit: contain; flex: 0 0 auto; }
.iv-seal-empty { display: inline-flex; align-items: center; justify-content: center; color: #c7c7cc; font-size: 28px; background: #fafafa; }
.iv-seal-inputs { flex: 1 1 200px; min-width: 0; }
.iv-seal-inputs input[type="file"] { max-width: 100%; font-size: 14px; }

@media print {
  .iv-body .site-header, .iv-body .site-footer, .iv-tabs, .iv-toolbar, .iv-tpl-switch, .iv-tpl-save, .iv-note, .iv-view-head, .message-success, .message-error { display: none !important; }
  .iv-paper-scroll { background: none; padding: 0; }
  .iv-doc { box-shadow: none; min-width: 0; }
}
/* 請求先の登録（2026-11-02） */
.iv-client-pick select { border-color: var(--bl-brand); background: var(--bl-brand-soft); font-weight: 600; }
.iv-client-none { margin: -4px 0 12px; }
.iv-client-none a { color: var(--bl-brand); font-weight: 700; }
.iv-import { margin: 0 0 14px; }
.iv-import .iv-btn { width: 100%; white-space: normal; }
.iv-search-2 { grid-template-columns: minmax(0, 1fr) 48px; margin: 0 0 12px; }
.iv-row-client small { font-size: 12px; font-weight: 500; color: var(--bl-text-sub); }
.iv-row-memo { font-size: 12px; color: #8a6d1f; background: #fff8e1; border-radius: 6px; padding: 3px 8px; margin-top: 2px; overflow-wrap: anywhere; align-self: flex-start; max-width: 100%; }
/* ダミー会員への切り替え（最高管理者だけ・2026-11-02） */
.bl-imp-bar { position: fixed; top: 10px; left: 50%; transform: translateX(-50%); z-index: 10000; display: flex; align-items: center; gap: 6px; max-width: calc(100% - 150px); padding: 4px 4px 4px 12px; border-radius: 999px; background: #e8590c; color: #fff; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18); font-size: 12px; font-weight: 700; }
.bl-imp-name { color: #fff; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.bl-imp-bar form { margin: 0; flex: 0 0 auto; }
.bl-imp-stop { border: 0; border-radius: 999px; background: #fff; color: #e8590c; font-weight: 800; font-size: 12px; padding: 5px 10px; cursor: pointer; font-family: inherit; }
.sw-body { background: var(--bl-bg); }
.sw-wrap { box-sizing: border-box; max-width: 760px; margin: 0 auto; padding: 16px 16px 60px; }
.sw-wrap *, .sw-wrap *::before, .sw-wrap *::after { box-sizing: border-box; }
.sw-back a { color: var(--bl-text-sub); font-size: 13px; text-decoration: none; }
.sw-h1 { font-size: 22px; margin: 6px 0 8px; display: flex; align-items: center; gap: 8px; }
.sw-h1 i { color: #e8590c; }
.sw-lead { font-size: 13px; color: var(--bl-text-sub); line-height: 1.7; margin: 0 0 14px; }
.sw-now { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; background: #fff4ec; border: 1px solid #f7c9a8; border-radius: var(--bl-radius-sm); padding: 12px 14px; margin: 0 0 14px; }
.sw-now-label { display: block; font-size: 11px; color: #b4500b; }
.sw-now strong { font-size: 16px; }
.sw-search { display: grid; grid-template-columns: minmax(0, 1fr) 48px; gap: 8px; margin: 0 0 12px; }
.sw-search input { width: 100%; min-width: 0; font-size: 16px; padding: 10px 12px; border: 1px solid #d2d2d7; border-radius: 10px; }
.sw-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 8px 14px; border-radius: 10px; border: 1px solid var(--bl-line); background: #fff; color: var(--bl-text); font-weight: 700; font-size: 14px; cursor: pointer; font-family: inherit; white-space: nowrap; }
.sw-btn-main { background: #e8590c; border-color: #e8590c; color: #fff; }
.sw-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sw-item { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 6px 10px; background: #fff; border-radius: var(--bl-radius-sm); box-shadow: var(--bl-shadow); padding: 10px 12px; }
.sw-item.is-now { outline: 2px solid #e8590c; }
.sw-no { font-size: 11px; font-weight: 700; color: var(--bl-text-sub); background: var(--bl-bg); border-radius: 6px; padding: 3px 6px; }
.sw-name { font-weight: 700; overflow-wrap: anywhere; }
.sw-name small { display: block; font-weight: 500; font-size: 11px; color: var(--bl-text-sub); }
.sw-badge { grid-column: 1 / -1; justify-self: start; font-size: 11px; font-weight: 700; color: #b4500b; }
.sw-go { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin: 0; }
.sw-go select { min-width: 0; font-size: 14px; padding: 8px; border: 1px solid #d2d2d7; border-radius: 10px; background: #fff; }
@media (min-width: 640px) {
  .sw-item { grid-template-columns: auto minmax(0, 1fr) auto; }
  .sw-go, .sw-badge { grid-column: auto; }
}
/* 掲示板のスレッド投稿・コメント（2026-11-02 直書きの見た目を移した） */
.bbs-new-thread { box-sizing: border-box; max-width: 800px; margin: 16px auto 0; }
.bbs-new-title { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 18px; }
.bbs-new-title i { color: var(--bl-brand); }
.bbs-form { display: grid; gap: 10px; margin: 0; }
.bbs-form .bbs-input { box-sizing: border-box; width: 100%; max-width: 100%; font-size: 16px; padding: 11px 12px; border: 1px solid #d2d2d7; border-radius: 10px; background: #fff; color: var(--bl-text); font-family: inherit; }
.bbs-form .bbs-input:focus { outline: none; border-color: var(--bl-brand); box-shadow: 0 0 0 3px rgba(0, 119, 204, 0.15); }
.bbs-form .bbs-textarea { min-height: 120px; resize: vertical; line-height: 1.6; }
.bbs-file { display: grid; gap: 6px; min-width: 0; }
.bbs-file-label { font-size: 12px; color: var(--bl-text-sub); }
.bbs-file input[type="file"] { box-sizing: border-box; width: 100%; max-width: 100%; font-size: 13px; color: var(--bl-text-sub); padding: 8px; border: 1px dashed #c7c7cc; border-radius: 10px; background: #fafafa; }
.bbs-file input[type="file"]::file-selector-button { margin-right: 10px; padding: 8px 14px; border: 1px solid var(--bl-line); border-radius: 8px; background: #fff; color: var(--bl-text); font-weight: 700; font-size: 13px; font-family: inherit; cursor: pointer; }
.bbs-form .bbs-submit { justify-self: start; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 10px 20px; border: 0; border-radius: 12px; background: var(--bl-brand); color: #fff; font-size: 15px; font-weight: 700; font-family: inherit; cursor: pointer; }
.bbs-form .bbs-submit:hover { background: var(--bl-brand-dark); }
@media (max-width: 639px) { .bbs-form .bbs-submit { justify-self: stretch; } }
.bbs-thread-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.bbs-thread-title { margin: 0; flex: 1; min-width: 0; overflow-wrap: anywhere; }
.bbs-good-form { margin: 0; flex-shrink: 0; }
.bbs-good { border: 0; background: none; padding: 4px 2px; cursor: pointer; color: #666; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; font-family: inherit; }
.bbs-good.is-on { color: var(--bl-brand); }
.bbs-thread-body { margin-top: 8px; }
.bbs-thread-images { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.bbs-thread-image { max-width: 200px; width: 100%; height: auto; border-radius: 8px; }
.bbs-section-thread { box-sizing: border-box; max-width: 800px; margin: 24px auto 0; }
.bbs-meta-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bbs-section-thread .bbs-form { margin-top: 12px; }

/* 管理画面の一覧ページ（admin/ads.php・posts.php・rss_feeds.php・members.php）2026-11-04 インラインstyleから移設 */
main.admin-list-page .admin-mt-8 { margin-top: 8px; }
main.admin-list-page .admin-mt-16 { margin-top: 16px; }
main.admin-list-page .admin-mb-16 { margin-bottom: 16px; }
main.admin-list-page .admin-flash-ok { color: #0b7a37; }
main.admin-list-page .admin-flash-error { color: #c62828; }
main.admin-list-page .admin-textarea { min-height: 90px; }
main.admin-list-page .card .admin-card-title { margin-bottom: 8px; }
main.admin-list-page .admin-sub-text { font-size: 12px; color: #666; }
main.admin-list-page .card .admin-status-line { margin: 4px 0; }
main.admin-list-page .admin-ad-image { max-width: 220px; height: auto; border-radius: 8px; }
main.admin-list-page .admin-actions { display: flex; gap: 8px; flex-wrap: wrap; }
main.admin-list-page .search-submit.admin-btn-danger,
main.admin-list-page .search-submit.admin-btn-danger:hover { background: #cc3333; }
main.admin-list-page .admin-table-wrap { overflow: auto; }
main.admin-list-page .admin-table { width: 100%; border-collapse: collapse; }
main.admin-list-page .admin-thumb { width: 80px; height: auto; border-radius: 6px; }

/* ニュース（news.php）2026-11-06 インラインstyleから移設。.order-list-page .card p・.bbs-section button 等に負けないよう main.order-list-page で詳細度を上げる */
main.order-list-page .news-detail-image { max-width: 100%; height: auto; border-radius: 8px; }
main.order-list-page .card .news-detail-body { margin-top: 8px; }
main.order-list-page .card p.news-source { font-size: 12px; color: #666; margin-top: 10px; }
main.order-list-page .card p.news-source a { color: inherit; text-decoration: underline; }
main.order-list-page .bbs-section.news-comments { max-width: 800px; margin: 24px auto 0; }
main.order-list-page .bbs-meta.news-comment-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
main.order-list-page .bbs-section form.news-good-form { margin: 0; }
main.order-list-page .bbs-section button.news-good,
main.order-list-page .bbs-section button.news-good:hover { border: 0; background: none; padding: 0; cursor: pointer; color: #666; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
main.order-list-page .bbs-section button.news-good.is-on { color: #0077cc; }
main.order-list-page .search-bar-form.news-search-form { margin-bottom: 16px; }
main.order-list-page .card p.news-list-meta { font-size: 12px; color: #666; }
main.order-list-page .news-list-image { max-width: 180px; height: auto; border-radius: 6px; }
main.order-list-page .pagination.news-pagination { margin-top: 16px; }

/* お問い合わせ（inquiry.php・2026-11-05） */
.inquiry-line-box { background: #e3f2fd; padding: 15px; border-radius: 8px; margin-bottom: 20px; border-left: 4px solid #0077cc; }
.inquiry-line-box .inquiry-line-title { margin: 0 0 10px 0; }
.inquiry-line-box .inquiry-line-text { margin: 0; font-size: 14px; }
.inquiry-line-box .inquiry-line-actions { margin: 10px 0 0 0; }
.inquiry-line-btn { display: inline-block; background: #00C300; color: #fff; padding: 10px 20px; border-radius: 6px; text-decoration: none; font-weight: bold; margin-top: 10px; }
.inquiry-line-btn:hover { color: #fff; opacity: .9; }
.inquiry-required { color: #d00; }
.inquiry-hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* お問い合わせの一覧（admin/inquiries.php・2026-11-05） */
.inq-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 14px; }
.inq-tab { display: inline-block; padding: 6px 14px; border-radius: 999px; border: 1px solid #d2d2d7; background: #fff; color: #333; font-size: 14px; font-weight: 700; text-decoration: none; }
.inq-tab.is-on { background: #0077cc; border-color: #0077cc; color: #fff; }
.inq-card { margin-bottom: 12px; }
.inq-card.is-done { opacity: .75; }
.inq-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 6px; }
.inq-badge { font-size: 11px; font-weight: 700; color: #fff; background: #e8590c; border-radius: 6px; padding: 3px 8px; }
.inq-badge.is-done { background: #6b7280; }
.inq-subject { font-weight: 700; }
.inq-date { margin-left: auto; font-size: 12px; color: #666; }
.inq-from { margin: 0 0 8px; font-size: 13px; color: #444; overflow-wrap: anywhere; }
.inq-mail { display: inline-block; margin-left: 8px; }
.inq-body { white-space: normal; overflow-wrap: anywhere; font-size: 14px; line-height: 1.7; background: #f7f8fa; border-radius: 8px; padding: 10px 12px; margin-bottom: 10px; }
.inq-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.inq-actions form { margin: 0; }
.inq-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 8px 14px; border-radius: 10px; border: 1px solid #d2d2d7; background: #fff; color: #333; font-weight: 700; font-size: 14px; text-decoration: none; cursor: pointer; font-family: inherit; }
.inq-btn-main { background: #0077cc; border-color: #0077cc; color: #fff; }

/* 資格・講習のまとめ（admin/licenses.php・公開前・最高管理者だけ・2026-11-05） */
.lic-body { background: var(--bl-bg); }
.lic-wrap { box-sizing: border-box; max-width: 960px; margin: 0 auto; padding: 16px 16px 60px; }
.lic-wrap *, .lic-wrap *::before, .lic-wrap *::after { box-sizing: border-box; }
.lic-back a { color: var(--bl-text-sub); font-size: 13px; text-decoration: none; }
.lic-h1 { font-size: 22px; margin: 6px 0 8px; display: flex; align-items: center; gap: 8px; }
.lic-h1 i { color: #0077cc; }
.lic-lead { font-size: 13px; color: var(--bl-text-sub); line-height: 1.7; margin: 0 0 14px; }
.lic-private { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; color: #b4500b; background: #fff4ec; border: 1px solid #f7c9a8; border-radius: 999px; padding: 2px 8px; margin-right: 4px; }
.lic-tabs { display: flex; gap: 6px; max-width: 100%; margin: 0 0 12px; }
.lic-tab { flex: 1 1 0; min-width: 0; justify-content: center; text-align: center; line-height: 1.35; display: inline-flex; align-items: center; gap: 6px; padding: 9px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--bl-line); color: var(--bl-text); font-weight: 700; font-size: 14px; text-decoration: none; }
.lic-tab.is-on { background: #0077cc; border-color: #0077cc; color: #fff; }
.lic-search { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 180px) 48px; gap: 8px; margin: 0 0 10px; }
.lic-search-course { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; }
.lic-search input, .lic-search select { width: 100%; min-width: 0; font-size: 16px; padding: 10px 12px; border: 1px solid #d2d2d7; border-radius: 10px; background: #fff; font-family: inherit; }
.lic-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.lic-chip { display: inline-block; padding: 5px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--bl-line); color: var(--bl-text); font-size: 13px; text-decoration: none; }
.lic-chip.is-on { background: #e8f2fb; border-color: #0077cc; color: #005a9c; font-weight: 700; }
.lic-count { font-size: 13px; color: var(--bl-text-sub); margin: 4px 0 10px; }
.lic-hint { font-size: 14px; color: var(--bl-text-sub); }
.lic-list { display: grid; gap: 10px; }
.lic-card { background: #fff; border-radius: var(--bl-radius-sm); box-shadow: var(--bl-shadow); padding: 14px; min-width: 0; }
.lic-card-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 4px; }
.lic-kind { font-size: 11px; font-weight: 700; color: #fff; background: #0077cc; border-radius: 6px; padding: 2px 7px; }
.lic-field { font-size: 11px; color: var(--bl-text-sub); background: var(--bl-bg); border-radius: 6px; padding: 2px 7px; }
.lic-no { margin-left: auto; font-size: 11px; color: var(--bl-text-sub); }
.lic-name { font-size: 17px; margin: 2px 0 6px; overflow-wrap: anywhere; }
.lic-name small { font-size: 12px; font-weight: 500; color: var(--bl-text-sub); }
.lic-work { font-size: 13px; line-height: 1.7; color: #444; margin: 0 0 8px; }
.lic-dl { display: grid; grid-template-columns: 5.5em minmax(0, 1fr); gap: 6px 10px; margin: 0 0 8px; font-size: 14px; }
.lic-dl dt { color: var(--bl-text-sub); font-size: 12px; padding-top: 2px; }
.lic-dl dd { margin: 0; overflow-wrap: anywhere; line-height: 1.6; }
.lic-dl a { color: #0077cc; }
.lic-sch { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.lic-sch li { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.lic-sch span { color: var(--bl-text-sub); font-size: 12px; min-width: 7em; }
.lic-small { display: block; font-size: 12px; color: var(--bl-text-sub); margin: 4px 0 0; }
.lic-inline { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; font-size: 13px; color: #0077cc; }
.lic-tag { display: inline-block; font-size: 11px; color: #005a9c; background: #e8f2fb; border-radius: 6px; padding: 2px 7px; margin-left: 4px; text-decoration: none; }
.lic-tags { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 8px; }
.lic-tags .lic-tag { margin-left: 0; }
.lic-tag.is-on { background: #0077cc; color: #fff; }
.lic-note { font-size: 12px; color: #8a5a00; background: #fff8e6; border-radius: 8px; padding: 6px 10px; margin: 0 0 8px; }
.lic-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.lic-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 8px 14px; border-radius: 10px; border: 1px solid var(--bl-line); background: #fff; color: var(--bl-text); font-weight: 700; font-size: 14px; text-decoration: none; cursor: pointer; font-family: inherit; white-space: nowrap; }
.lic-btn-main { background: #0077cc; border-color: #0077cc; color: #fff; }
.lic-src { font-size: 11px; color: var(--bl-text-sub); margin: 8px 0 0; }
.lic-src a { color: var(--bl-text-sub); }
.lic-region { margin: 14px 0 0; }
.lic-region-h { font-size: 16px; margin: 0 0 8px; }
.lic-region-h small { font-size: 12px; font-weight: 500; color: var(--bl-text-sub); }
.lic-table-wrap { overflow-x: auto; margin: 0 0 8px; }
.lic-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.lic-table th, .lic-table td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--bl-line); vertical-align: top; }
.lic-table th { font-size: 12px; color: var(--bl-text-sub); font-weight: 600; white-space: nowrap; }
.lic-empty { background: #fff; border-radius: var(--bl-radius-sm); padding: 16px; color: var(--bl-text-sub); font-size: 14px; }
.lic-past-status { display: inline-block; font-size: 12px; font-weight: 700; color: #005a9c; background: #e8f2fb; border-radius: 6px; padding: 1px 7px; margin-right: 4px; }
.lic-reuse-row { display: block; margin-top: 6px; font-size: 13px; color: #444; line-height: 1.6; }
.lic-reuse-row a { color: #0077cc; }
.lic-reuse { display: inline-block; font-size: 11px; font-weight: 700; border-radius: 6px; padding: 1px 7px; margin-right: 2px; }
.lic-reuse.is-ok { background: #e6f6ea; color: #1e7a36; }
.lic-reuse.is-cond { background: #fff4d6; color: #8a5a00; }
.lic-reuse.is-ask { background: #fff0e6; color: #b4500b; }
.lic-reuse.is-ng { background: #fde8e8; color: #b42318; }
.lic-reuse.is-unknown { background: var(--bl-bg); color: var(--bl-text-sub); }
.lic-books { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.lic-books i { color: var(--bl-text-sub); width: 1.1em; }
.lic-books small { color: var(--bl-text-sub); font-size: 11px; }
.lic-chip-past i { margin-right: 3px; }
@media (max-width: 600px) {
  .lic-search, .lic-search-course { grid-template-columns: minmax(0, 1fr); }
  .lic-search .lic-btn { width: 100%; }
  .lic-dl { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .lic-dl dd { margin-bottom: 6px; }
}

/* =========================================================
   第二種電気工事士 筆記 過去問・模擬試験（dk-。public/denki/。ログインした会員。2026-11-06 に試作アプリから移した）
   ========================================================= */
.dk-body { margin: 0; min-height: 100dvh; background: #eef3f7; color: #1d2b36; font-family: "Hiragino Sans", "Noto Sans JP", system-ui, sans-serif; }
.dk-body button { font-family: inherit; }
.dk-head { position: sticky; top: 0; z-index: 4; display: flex; align-items: center; gap: 8px; padding: max(8px, env(safe-area-inset-top)) 12px 8px; background: #0f3d5e; color: #ffffff; }
.dk-icon-btn { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 40px; height: 40px; padding: 0; border: 1px solid rgba(255, 255, 255, .3); border-radius: 12px; background: rgba(255, 255, 255, .1); color: #ffffff; font-size: 16px; text-decoration: none; cursor: pointer; }
.dk-title { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; margin: 0; font-size: 14px; font-weight: 800; }
.dk-title span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dk-title i { color: #ffd23a; }
.dk-timer { margin: 0; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .15); font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dk-timer:empty { display: none; }
.dk-timer.is-warn { background: #d64545; }
.dk-main { max-width: 760px; margin: 0 auto; padding: 12px 12px max(24px, env(safe-area-inset-bottom)); }
.dk-main h2 { display: flex; align-items: center; gap: 8px; margin: 22px 0 10px; font-size: 17px; color: #0f3d5e; }
.dk-main h3 { margin: 18px 0 8px; font-size: 15px; color: #0f3d5e; }
.dk-lead { margin: 4px 0 10px; font-size: 14px; line-height: 1.8; }
.dk-small { margin: 6px 0; font-size: 12px; line-height: 1.6; color: #5b6b78; }
.dk-note { margin: 22px 0 0; padding: 12px; border-radius: 12px; background: #ffffff; font-size: 12px; line-height: 1.7; color: #4a5a66; }
.dk-note p { margin: 0 0 6px; }
.dk-note i { margin-right: 4px; color: #0f6fa8; }
.dk-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 16px; border: 0; border-radius: 12px; background: #0f6fa8; color: #ffffff; font-size: 15px; font-weight: 800; cursor: pointer; }
.dk-btn:disabled { opacity: .4; cursor: default; }
.dk-btn--sub { background: #ffffff; color: #0f3d5e; border: 1px solid #c8d6e0; }
.dk-btn--flag.is-on { background: #f2a516; color: #ffffff; border-color: #f2a516; }
.dk-btn--end { width: 100%; background: #0f3d5e; }
.dk-btn:focus-visible, .dk-round:focus-visible, .dk-cat:focus-visible, .dk-cell:focus-visible, .dk-kana-btn:focus-visible, .dk-choice:focus-visible, .dk-icon-btn:focus-visible { outline: 3px solid #f2a516; outline-offset: 2px; }
.dk-link { display: block; margin: 10px auto 0; padding: 6px; border: 0; background: none; color: #5b6b78; font-size: 13px; text-decoration: underline; cursor: pointer; }
.dk-check { display: inline-flex; align-items: center; gap: 8px; margin: 8px 0; font-size: 14px; }
.dk-check input { width: 18px; height: 18px; }

/* トップ */
.dk-resume { margin: 12px 0; padding: 12px; border-radius: 12px; background: #fff7e0; border: 1px solid #f2d27a; }
.dk-resume p { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 14px; }
.dk-resume .dk-btn { width: 100%; }
.dk-rounds { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.dk-round { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px; border: 1px solid #c8d6e0; border-radius: 14px; background: #ffffff; color: #1d2b36; text-align: left; cursor: pointer; }
.dk-round b { font-size: 15px; }
.dk-round small { font-size: 11px; color: #6b7b88; }
.dk-round span { font-size: 12px; color: #0f6fa8; font-weight: 700; }
/* 過去問の年度ごとのまとまり（2026-11-04 10年分に増やしたとき） */
.dk-year { margin: 14px 0 6px; font-size: 14px; font-weight: 800; color: #0f3d5e; }
.dk-year-old { margin: 8px 0 0; padding: 10px 12px; border: 1px solid #c8d6e0; border-radius: 12px; background: #ffffff; }
.dk-year-old summary { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 14px; font-weight: 800; color: #0f3d5e; cursor: pointer; }
.dk-year-old summary small { font-size: 11px; font-weight: 400; color: #6b7b88; }
.dk-year-old .dk-rounds { margin: 10px 0 2px; }
.dk-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.dk-cat { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 12px; border: 1px solid #c8d6e0; border-radius: 12px; background: #ffffff; color: #1d2b36; text-align: left; cursor: pointer; }
.dk-cat b { font-size: 14px; }
.dk-cat span { font-size: 11px; color: #6b7b88; }
.dk-more { display: flex; flex-direction: column; gap: 8px; margin: 12px 0 0; }
.dk-hist { margin: 0; padding: 0; list-style: none; font-size: 13px; }
.dk-hist li { display: grid; grid-template-columns: 82px 1fr auto; gap: 8px; padding: 8px 10px; border-bottom: 1px solid #dde6ec; background: #ffffff; }
.dk-hist b.is-pass, .dk-result.is-pass h2 { color: #1f8a4c; }
.dk-hist b.is-fail { color: #c0392b; }
.dk-extra { margin: 22px 0 0; padding: 12px; border-radius: 12px; background: #ffffff; }
.dk-extra summary { display: flex; align-items: center; gap: 8px; font-weight: 800; color: #0f3d5e; cursor: pointer; }
.dk-extra .dk-rounds, .dk-extra .dk-cats { margin: 10px 0; }
.dk-extra .dk-btn { width: 100%; }

/* 問題 */
.dk-q { padding: 14px; border-radius: 16px; background: #ffffff; box-shadow: 0 2px 10px rgba(15, 61, 94, .08); }
.dk-q-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; margin: 0 0 6px; font-size: 12px; color: #5b6b78; }
.dk-q-no { margin: 0 0 10px !important; font-size: 22px !important; }
.dk-q-no small { margin-left: 4px; font-size: 13px; color: #6b7b88; }
.dk-q-text { margin: 0 0 12px; font-size: 16px; line-height: 1.8; }
.dk-sym { display: inline-block; margin: 0 0 10px; padding: 8px 16px; border: 2px solid #1d2b36; border-radius: 8px; font-size: 22px; font-weight: 800; letter-spacing: .05em; }
.dk-sym--s { padding: 2px 10px; font-size: 15px; }
.dk-ch { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.dk-choice { display: flex; align-items: flex-start; gap: 10px; width: 100%; min-height: 48px; padding: 10px 12px; border: 2px solid #c8d6e0; border-radius: 12px; background: #ffffff; color: #1d2b36; font-size: 15px; line-height: 1.6; text-align: left; cursor: pointer; }
.dk-choice b, .dk-kana-btn { font-weight: 900; }
.dk-choice b { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: #eef3f7; }
.dk-choice.is-on, .dk-kana-btn.is-on { border-color: #0f6fa8; background: #e3f1fb; }
.dk-choice.is-right, .dk-kana-btn.is-right { border-color: #1f8a4c; background: #e3f6ea; }
.dk-choice.is-wrong, .dk-kana-btn.is-wrong { border-color: #c0392b; background: #fbe6e3; }
.dk-past { display: flex; flex-direction: column; gap: 10px; margin: 0 0 10px; }
.dk-past-img { display: block; max-width: 100%; height: auto; margin: 0 auto; border: 1px solid #e3eaf0; border-radius: 8px; background: #ffffff; }
.dk-zu-btn { width: 100%; margin: 0 0 10px; }
.dk-kana { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 4px 0 8px; }
.dk-kana-btn { min-height: 56px; border: 2px solid #c8d6e0; border-radius: 14px; background: #ffffff; color: #1d2b36; font-size: 24px; cursor: pointer; }
.dk-src { margin: 6px 0 0; font-size: 11px; color: #7a8a96; }
.dk-ex { margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; font-size: 14px; line-height: 1.7; }
.dk-ex.is-ok { background: #e3f6ea; }
.dk-ex.is-ng { background: #fbe6e3; }
.dk-ex p { margin: 0 0 4px; }
.dk-ex-head { display: flex; align-items: center; gap: 6px; font-weight: 800; }
.dk-nav { display: flex; gap: 8px; margin: 14px 0 0; }
.dk-nav .dk-btn { flex: 1; padding: 0 8px; }
.dk-grid { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; margin: 14px 0 0; }
.dk-cell { min-height: 32px; padding: 0; border: 1px solid #c8d6e0; border-radius: 6px; background: #ffffff; color: #5b6b78; font-size: 12px; font-weight: 700; cursor: pointer; }
.dk-cell.is-done { background: #0f6fa8; border-color: #0f6fa8; color: #ffffff; }
.dk-cell.is-flag { box-shadow: inset 0 -4px 0 #f2a516; }
.dk-cell.is-ok { background: #1f8a4c; border-color: #1f8a4c; color: #ffffff; }
.dk-cell.is-ng { background: #c0392b; border-color: #c0392b; color: #ffffff; }
.dk-cell.is-cur { outline: 2px solid #f2a516; outline-offset: 1px; }
.dk-foot { margin: 14px 0 0; }
.dk-foot p { margin: 0 0 8px; font-size: 13px; color: #5b6b78; text-align: center; }

/* 配線図を見る */
.dk-zu { position: fixed; inset: 0; z-index: 10; display: flex; flex-direction: column; background: rgba(10, 20, 30, .92); }
.dk-zu-bar { display: flex; align-items: center; gap: 8px; padding: max(8px, env(safe-area-inset-top)) 12px 8px; background: #0f3d5e; color: #ffffff; }
.dk-zu-bar b { flex: 1; }
.dk-zu-scroll { flex: 1; overflow: auto; padding: 8px; -webkit-overflow-scrolling: touch; touch-action: pan-x pan-y pinch-zoom; }
.dk-zu-img { display: block; height: auto; background: #ffffff; }
.dk-zoom-1 { width: 100%; }
.dk-zoom-2 { width: 160%; }
.dk-zoom-3 { width: 240%; }
.dk-zoom-4 { width: 340%; }
.dk-zu-note { display: block; width: 100%; max-width: 760px; height: auto; margin: 12px 0 0; background: #ffffff; }
.dk-zu .dk-src { color: #c8d6e0; }

/* 結果 */
.dk-result { padding: 14px; border-radius: 16px; background: #ffffff; }
.dk-result h2 { margin: 6px 0 !important; font-size: 22px !important; }
.dk-result.is-fail h2 { color: #c0392b; }
.dk-score { margin: 0; font-size: 15px; }
.dk-score b { font-size: 44px; }
.dk-score small { color: #5b6b78; }
.dk-bars { margin: 0; padding: 0; list-style: none; }
.dk-bars li { display: grid; grid-template-columns: 84px 1fr 52px; align-items: center; gap: 8px; padding: 4px 0; font-size: 13px; }
.dk-bars meter { width: 100%; height: 14px; }
.dk-bars b { text-align: right; font-variant-numeric: tabular-nums; }
.dk-review { margin: 0; padding: 0; list-style: none; }
.dk-review li { padding: 10px 0; border-top: 1px solid #e3eaf0; font-size: 14px; }
.dk-review li p { margin: 4px 0; }
.dk-review.is-only-ng li.is-ok { display: none; }
.dk-rv-head { display: flex; align-items: center; gap: 8px; }
.dk-review li.is-ok .dk-rv-head i { color: #1f8a4c; }
.dk-review li.is-ng .dk-rv-head i { color: #c0392b; }
.dk-rv-head span { font-size: 12px; color: #6b7b88; }
.dk-rv-ans { padding: 6px 10px; border-radius: 8px; background: #f3f6f9; }
.dk-rv-more summary { font-size: 13px; color: #0f6fa8; cursor: pointer; }
.dk-actions { display: flex; flex-direction: column; gap: 8px; margin: 16px 0 0; }
@media (max-width: 380px) {
  .dk-grid { grid-template-columns: repeat(5, 1fr); }
}

/* 過去問の解説 */
.dk-expl { margin: 6px 0 0; }
.dk-expl dt { display: flex; align-items: center; gap: 6px; margin: 8px 0 2px; font-size: 13px; font-weight: 800; color: #0f3d5e; }
.dk-expl dt i { color: #0f6fa8; }
.dk-expl dd { margin: 0; font-size: 14px; line-height: 1.75; }
.dk-rv-expl { margin: 6px 0 0; }
.dk-rv-expl summary { font-size: 13px; font-weight: 700; color: #0f6fa8; cursor: pointer; }
.dk-top-ginou { display: flex; align-items: center; gap: 12px; margin: 14px 0 0; padding: 12px 14px; border-radius: 14px; background: linear-gradient(135deg, #0f3d5e, #0f6fa8); color: #ffffff; text-decoration: none; }
.dk-top-ginou i { font-size: 26px; color: #ffd23a; }
.dk-top-ginou b { display: block; font-size: 15px; }
.dk-top-ginou small { font-size: 12px; opacity: .85; }

/* ---- 技能試験 結線パズル（dg-。public/denki/ginou.html） ---- */
.dg-wide { width: 100%; margin: 8px 0 0; }
.dg-mission { display: flex; gap: 8px; margin: 0 0 4px; padding: 10px 12px; border-radius: 12px; background: #ffffff; font-size: 15px; font-weight: 700; line-height: 1.6; }
.dg-mission i { margin-top: 4px; color: #0f6fa8; }
.dg-board { display: block; width: 100%; max-width: 520px; height: auto; margin: 6px auto; border-radius: 16px; background: #dfe8ee; touch-action: manipulation; -webkit-user-select: none; user-select: none; }
.dg-box { fill: #f7f3e8; stroke: #8a7f63; stroke-width: 3; }
.dg-box-label { fill: #8a7f63; font-size: 10px; font-weight: 700; text-anchor: start; }
.dg-cable { stroke: #9aa6b0; stroke-width: 9; stroke-linecap: round; }
.dg-core { stroke-width: 3; stroke-linecap: round; opacity: .85; }
.dg-core[stroke="#f4f4f4"], .dg-join[stroke="#f4f4f4"] { filter: drop-shadow(0 0 1px #6b7b88); }
.dg-join { stroke-width: 4; stroke-linecap: round; }
.dg-end { cursor: pointer; }
.dg-end .dg-hit { fill: transparent; }
.dg-end circle:not(.dg-hit) { stroke: #4a5a66; stroke-width: 2; }
.dg-end.is-sel circle:not(.dg-hit) { stroke: #f2a516; stroke-width: 5; }
.dg-end.is-used circle:not(.dg-hit) { stroke-width: 1; }
.dg-term { fill: #4a5a66; font-size: 10px; font-weight: 800; text-anchor: middle; pointer-events: none; }
.dg-node { cursor: pointer; }
.dg-node circle { fill: #c0c8ce; stroke: #5b6b78; stroke-width: 2; }
.dg-node.is-sel circle { fill: #ffd76a; stroke: #b07a00; stroke-width: 3; }
.dg-node text { fill: #1d2b36; font-size: 11px; font-weight: 900; text-anchor: middle; pointer-events: none; }
.dg-dev rect { fill: #ffffff; stroke: #9aa6b0; stroke-width: 2; }
.dg-dev.is-toggle { cursor: pointer; }
.dg-dev.is-toggle rect { stroke: #0f6fa8; stroke-dasharray: 4 3; }
.dg-dev.is-on rect { fill: #e3f1fb; stroke-dasharray: none; }
.dg-dev--power rect { fill: #fff7e0; stroke: #c9a227; }
.dg-dev-name { fill: #1d2b36; font-size: 10.5px; font-weight: 800; text-anchor: middle; pointer-events: none; }
.dg-dev-state { fill: #5b6b78; font-size: 10px; text-anchor: middle; pointer-events: none; }
.dg-bulb { fill: #d6dde2; stroke: #8a959e; stroke-width: 1.5; }
.dg-dev.is-lit .dg-bulb { fill: #ffd23a; stroke: #e0a800; filter: drop-shadow(0 0 6px #ffd23a); }
.dg-dev--pilot.is-lit .dg-bulb { fill: #ff5a5a; stroke: #c0392b; filter: drop-shadow(0 0 6px #ff5a5a); }
.dg-dev--outlet.is-lit rect { fill: #e3f6ea; stroke: #1f8a4c; }
.dg-dev.is-lit .dg-dev-state { fill: #1f8a4c; font-weight: 800; }
.dg-short { fill: #c0392b; font-size: 22px; font-weight: 900; text-anchor: middle; pointer-events: none; }
.dg-how { margin: 4px 0; font-size: 12px; line-height: 1.6; color: #5b6b78; }
.dg-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; }
.dg-actions .dk-btn { flex: 1; min-width: 96px; padding: 0 10px; }
.dg-actions .dk-btn.is-on { border-color: #0f6fa8; background: #e3f1fb; }
.dg-msg { margin: 8px 0 0; padding: 10px 12px; border-radius: 12px; font-size: 14px; line-height: 1.7; }
.dg-msg p { margin: 0 0 4px; }
.dg-msg ul { margin: 4px 0 0; padding-left: 1.2em; }
.dg-msg--ng { background: #fbe6e3; }
.dg-msg--ok { background: #e3f6ea; }
.dg-msg--hint { background: #fff7e0; }
.dg-sleeve { margin: 8px 0 0; padding: 10px 12px; border-radius: 12px; background: #ffffff; font-size: 14px; }
.dg-sleeve p { margin: 0 0 4px; }
.dg-stars { font-size: 26px; color: #f2a516; }
.dg-levels { margin: 12px 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.dg-level { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 1px solid #c8d6e0; border-radius: 14px; background: #ffffff; color: #1d2b36; text-align: left; cursor: pointer; }
.dg-level.is-clear { border-color: #9fd1b3; }
.dg-no { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: #0f3d5e; color: #ffffff; font-weight: 800; }
.dg-lv-text { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.dg-lv-text small { font-size: 11px; color: #6b7b88; line-height: 1.5; }
.dg-lv-star { flex: none; font-size: 12px; color: #f2a516; white-space: nowrap; }

/* =========================================================
   新しいランディングページ（lp2-。landing_new.php。2026-11-06）
   Gemini のデザイン案をもとに、キャラクター3人（img/chara/）を使う
   ========================================================= */
.lp2-body { background: #f1f5f9; }
.lp2 { --lp2-blue: #0284c7; --lp2-navy: #18385c; --lp2-yellow: #f5b50b; --lp2-line: #06c755; --lp2-line-dark: #05a847; --lp2-red: #dc2626; --lp2-text: #334155; --lp2-sub: #64748b; --lp2-border: #cbd5e1; color: var(--lp2-text); font-family: "Hiragino Sans", "Noto Sans JP", system-ui, sans-serif; line-height: 1.6; overflow-x: hidden; }
.lp2-inner { width: 100%; max-width: 960px; margin: 0 auto; padding: 0 16px; box-sizing: border-box; }
.lp2-inner-narrow { max-width: 720px; }
.lp2-alerts { padding-top: 12px; }
.lp2-head-login { display: inline-flex; align-items: center; margin-right: 10px; padding: 6px 14px; border-radius: 999px; background: #18385c; color: #ffffff; font-size: 13px; font-weight: 800; text-decoration: none; }

/* ヒーロー */
.lp2-hero { padding: 24px 0 28px; background: linear-gradient(180deg, #dbeafe 0%, #bae6fd 55%, #f1f5f9 100%); text-align: center; }
.lp2-eyebrow { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 10px; padding: 4px 12px; border-radius: 999px; background: #ffffff; color: var(--lp2-navy); font-size: 12px; font-weight: 800; }
.lp2-eyebrow i { color: var(--lp2-yellow); }
.lp2-hero-title { margin: 0 0 10px; color: var(--lp2-navy); font-size: 26px; font-weight: 900; line-height: 1.35; letter-spacing: -.01em; }
.lp2-hero-accent { color: var(--lp2-line); font-size: 1.15em; }
.lp2-hero-lead { margin: 0 auto 16px; max-width: 560px; font-size: 14px; font-weight: 700; }
.lp2-hero-stage { position: relative; margin: 0 auto; max-width: 760px; border: 3px solid var(--lp2-blue); border-radius: 20px; overflow: hidden; background: #7dd3fc; box-shadow: 0 6px 20px rgba(15, 23, 42, .12); }
.lp2-hero-img { display: block; width: 100%; height: auto; }
.lp2-bubble { position: absolute; display: none; padding: 8px 14px; border: 2px solid #1e293b; border-radius: 16px; background: #ffffff; color: #1e293b; font-size: 14px; font-weight: 900; line-height: 1.35; box-shadow: 0 2px 6px rgba(0, 0, 0, .12); }
.lp2-bubble::after { content: ""; position: absolute; bottom: -9px; width: 14px; height: 14px; border-right: 2px solid #1e293b; border-bottom: 2px solid #1e293b; background: #ffffff; transform: rotate(45deg); }
.lp2-bubble-left { top: 6%; left: 3%; }
.lp2-bubble-left::after { left: 60%; }
.lp2-bubble-right { top: 4%; left: 56%; }
.lp2-bubble-right::after { right: 18%; }
.lp2-cta { position: relative; z-index: 2; margin: 16px auto 0; max-width: 480px; padding: 0 8px; }
.lp2-btn-line { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 64px; padding: 10px 20px; border-radius: 999px; background: var(--lp2-line); color: #ffffff; font-size: 20px; font-weight: 900; text-decoration: none; box-shadow: 0 8px 24px rgba(6, 199, 85, .35); transition: transform .15s, background-color .15s; }
.lp2-btn-line:hover, .lp2-btn-line:active { background: var(--lp2-line-dark); }
.lp2-btn-line:active { transform: scale(.98); }
.lp2-btn-line i { font-size: 34px; }
.lp2-btn-line span { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.2; }
.lp2-btn-line small { font-size: 12px; font-weight: 700; opacity: .95; }
.lp2-btn-ghost { display: inline-flex; align-items: center; gap: 6px; margin: 12px 0 0; color: var(--lp2-navy); font-size: 14px; font-weight: 800; text-decoration: underline; }
.lp2-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; margin: 12px 0 0; padding: 0; list-style: none; font-size: 12px; font-weight: 700; color: var(--lp2-sub); }
.lp2-badges i { margin-right: 4px; color: var(--lp2-line); }

/* セクション共通 */
.lp2-section { padding: 36px 0; }
.lp2-section-tint { background: #e8f1f8; }
.lp2-title { margin: 0 0 20px; color: var(--lp2-navy); font-size: 21px; font-weight: 900; text-align: center; line-height: 1.4; }

/* 困りごと → 解決 */
.lp2-board { max-width: 720px; margin: 0 auto; padding: 16px 12px; border: 2px solid var(--lp2-border); border-radius: 20px; background: #ffffff; box-shadow: 0 4px 16px rgba(15, 23, 42, .08); }
.lp2-board-head, .lp2-row { display: grid; grid-template-columns: 1fr 56px 1.35fr; align-items: center; gap: 8px; }
.lp2-board-head { margin: 0 0 12px; }
.lp2-board-head i { justify-self: center; color: var(--lp2-navy); }
.lp2-tag-trouble, .lp2-tag-solve { padding: 7px 8px; border-radius: 8px; color: #ffffff; font-size: 14px; font-weight: 900; text-align: center; }
.lp2-tag-trouble { background: var(--lp2-red); }
.lp2-tag-solve { background: var(--lp2-blue); }
.lp2-board-list { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.lp2-trouble, .lp2-solve { display: flex; flex-direction: column; justify-content: center; min-height: 60px; margin: 0; padding: 8px 10px; border-radius: 14px; font-size: 13px; font-weight: 800; line-height: 1.4; box-sizing: border-box; }
.lp2-trouble { border: 2px solid var(--lp2-red); color: #0f172a; text-align: center; background: #fff5f5; }
.lp2-solve { border: 2px solid var(--lp2-blue); color: var(--lp2-navy); background: #f0f9ff; }
.lp2-solve small { margin-top: 2px; color: var(--lp2-blue); font-size: 11px; font-weight: 700; }
.lp2-face { display: block; width: 56px; height: 56px; object-fit: contain; filter: drop-shadow(0 2px 3px rgba(15, 23, 42, .2)); }

/* 探す人・頼む人 */
.lp2-who-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.lp2-who { display: grid; grid-template-columns: 120px 1fr; gap: 14px; align-items: start; padding: 16px; border: 2px solid var(--lp2-border); border-radius: 20px; background: #ffffff; box-shadow: 0 4px 16px rgba(15, 23, 42, .08); }
.lp2-who-img { display: block; width: 120px; height: 160px; object-fit: contain; filter: drop-shadow(0 3px 6px rgba(15, 23, 42, .18)); }
.lp2-who-label { margin: 0 0 2px; color: var(--lp2-blue); font-size: 12px; font-weight: 800; }
.lp2-who-alt .lp2-who-label { color: #b45309; }
.lp2-who h3 { margin: 0 0 10px; color: var(--lp2-navy); font-size: 17px; font-weight: 900; line-height: 1.4; }
.lp2-check { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: 13px; font-weight: 700; line-height: 1.5; }
.lp2-check li { display: flex; gap: 6px; }
.lp2-check i { margin-top: 3px; color: var(--lp2-blue); }
.lp2-who-alt .lp2-check i { color: var(--lp2-yellow); }

/* 画面のイメージ */
.lp2-mock-grid { display: grid; grid-template-columns: 1fr; gap: 16px; max-width: 760px; margin: 0 auto; }
.lp2-mock { padding: 14px; border: 2px solid var(--lp2-border); border-radius: 20px; background: #ffffff; box-shadow: 0 4px 16px rgba(15, 23, 42, .08); }
.lp2-mock-cap { margin: 0 0 10px; color: var(--lp2-navy); font-size: 15px; font-weight: 900; }
.lp2-mock-cap i { margin-right: 4px; color: var(--lp2-blue); }
.lp2-mock-screen { padding: 12px; border-radius: 14px; background: #f8fafc; border: 1px solid #e2e8f0; }
.lp2-mock-search { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; padding: 4px 4px 4px 12px; border: 1.5px solid var(--lp2-border); border-radius: 999px; background: #ffffff; color: var(--lp2-sub); font-size: 13px; }
.lp2-mock-search span { flex: 1; }
.lp2-mock-search b { padding: 5px 14px; border-radius: 999px; background: var(--lp2-blue); color: #ffffff; font-size: 12px; }
.lp2-mock-tabs { display: flex; gap: 6px; margin: 0 0 10px; }
.lp2-mock-tabs span { padding: 4px 12px; border-radius: 999px; background: #e2e8f0; color: var(--lp2-sub); font-size: 12px; font-weight: 700; }
.lp2-mock-tabs span.is-on { background: #ffffff; border: 1px solid var(--lp2-blue); color: var(--lp2-blue); font-weight: 800; }
.lp2-mock-card { padding: 12px; border: 1px solid #e2e8f0; border-radius: 12px; background: #ffffff; }
.lp2-mock-job { margin: 0 0 6px; color: #0f172a; font-size: 14px; font-weight: 800; }
.lp2-mock-spec { margin: 0 0 8px; font-size: 12px; line-height: 1.6; }
.lp2-mock-pay { margin: 0; padding: 8px 0 0; border-top: 1px dashed #e2e8f0; font-size: 12px; font-weight: 800; }
.lp2-mock-pay b { color: #ea580c; font-size: 16px; }
.lp2-mock-tpl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 0 0 10px; }
.lp2-mock-tpl span { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 4px; border: 1.5px solid var(--lp2-border); border-radius: 8px; background: #ffffff; color: #0f172a; font-size: 11px; font-weight: 800; }
.lp2-mock-tpl span.is-on { border-color: var(--lp2-blue); background: #f0f9ff; }
.lp2-paper { display: block; width: 100%; height: 40px; border: 1px solid var(--lp2-border); border-radius: 2px; background: #ffffff; box-sizing: border-box; }
.lp2-paper-std { background: linear-gradient(#1f3a5f, #1f3a5f) 4px 5px / 60% 3px no-repeat, linear-gradient(#cbd5e1, #cbd5e1) 4px 14px / 85% 2px no-repeat, linear-gradient(#cbd5e1, #cbd5e1) 4px 20px / 85% 2px no-repeat, #ffffff; }
.lp2-paper-band { background: linear-gradient(#1f3a5f, #1f3a5f) 0 0 / 100% 9px no-repeat, linear-gradient(#cbd5e1, #cbd5e1) 4px 16px / 85% 2px no-repeat, #ffffff; }
.lp2-paper-classic { background: linear-gradient(#334155, #334155) 4px 5px / 85% 1px no-repeat, linear-gradient(#334155, #334155) 4px 8px / 85% 1px no-repeat, linear-gradient(#cbd5e1, #cbd5e1) 4px 16px / 85% 2px no-repeat, #ffffff; }
.lp2-paper-min { background: linear-gradient(#0077cc, #0077cc) 4px 5px / 8px 5px no-repeat, linear-gradient(#cbd5e1, #cbd5e1) 4px 16px / 85% 1px no-repeat, #ffffff; }
.lp2-paper-bold { background: linear-gradient(#cbd5e1, #cbd5e1) 4px 5px / 85% 2px no-repeat, linear-gradient(#1f3a5f, #1f3a5f) 4px 12px / 85% 9px no-repeat, #ffffff; }
.lp2-paper-con { background: linear-gradient(#94a3b8, #94a3b8) 4px 5px / 85% 10px no-repeat, linear-gradient(#1f3a5f, #1f3a5f) 4px 20px / 60% 3px no-repeat, #ffffff; }
.lp2-mock-colors { display: flex; flex-wrap: wrap; gap: 6px 12px; margin: 0 0 10px; font-size: 12px; font-weight: 700; }
.lp2-mock-colors span { display: inline-flex; align-items: center; gap: 4px; }
.lp2-dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; }
.lp2-dot-navy { background: #1f3a5f; }
.lp2-dot-blue { background: #0077cc; }
.lp2-dot-green { background: #2e6b4a; }
.lp2-dot-red { background: #9c3b2c; }
.lp2-dot-black { background: #2b2b2b; }
.lp2-mock-actions { display: grid; grid-template-columns: 1fr 1.6fr; gap: 6px; }
.lp2-mock-actions span, .lp2-mock-actions b { padding: 8px 0; border-radius: 8px; font-size: 13px; text-align: center; }
.lp2-mock-actions span { border: 1px solid var(--lp2-border); background: #ffffff; font-weight: 800; }
.lp2-mock-actions b { background: var(--lp2-blue); color: #ffffff; }
.lp2-mock-note { margin: 8px 0 0; color: var(--lp2-sub); font-size: 11px; }

/* 機能 */
.lp2-feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lp2-feature { padding: 14px 12px; border: 1.5px solid var(--lp2-border); border-radius: 14px; background: #ffffff; text-align: center; }
.lp2-feature > i { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: 0 0 6px; border-radius: 50%; background: #e0f2fe; color: var(--lp2-blue); font-size: 19px; }
.lp2-feature h3 { margin: 0 0 4px; color: var(--lp2-navy); font-size: 14px; font-weight: 900; }
.lp2-feature p { margin: 0; color: var(--lp2-sub); font-size: 12px; line-height: 1.5; }
.lp2-feature a { color: var(--lp2-blue); font-weight: 800; }

/* はじめ方 */
.lp2-steps { display: grid; grid-template-columns: 1fr; gap: 12px; max-width: 760px; margin: 0 auto; padding: 0; list-style: none; counter-reset: none; }
.lp2-steps li { position: relative; display: grid; grid-template-columns: 72px 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; padding: 14px; border: 2px solid var(--lp2-border); border-radius: 20px; background: #ffffff; }
.lp2-step-face { grid-row: 1 / 3; width: 72px; height: 80px; object-fit: contain; filter: drop-shadow(0 2px 4px rgba(15, 23, 42, .2)); }
.lp2-step-no { position: absolute; top: 8px; left: 8px; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: var(--lp2-yellow); color: #1e293b; font-size: 13px; font-weight: 900; }
.lp2-steps h3 { margin: 0; color: var(--lp2-navy); font-size: 16px; font-weight: 900; }
.lp2-steps p { margin: 2px 0 0; font-size: 13px; }

/* よくある質問 */
.lp2-faq { display: flex; flex-direction: column; gap: 10px; }
.lp2-faq details { border: 1.5px solid var(--lp2-border); border-radius: 14px; background: #ffffff; }
.lp2-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px; color: var(--lp2-navy); font-size: 14px; font-weight: 800; cursor: pointer; list-style: none; }
.lp2-faq summary::-webkit-details-marker { display: none; }
.lp2-faq summary::after { content: "\f078"; font-family: "Font Awesome 6 Free"; font-weight: 900; color: var(--lp2-sub); font-size: 12px; transition: transform .2s; }
.lp2-faq details[open] summary::after { transform: rotate(180deg); color: var(--lp2-blue); }
.lp2-faq details p { margin: 0; padding: 10px 14px 14px; border-top: 1px dashed #e2e8f0; font-size: 13px; line-height: 1.7; }
.lp2-faq-more { margin: 14px 0 0; text-align: center; font-size: 13px; font-weight: 800; }
.lp2-faq-more a { color: var(--lp2-blue); }

/* 最後の登録ボタン */
.lp2-final { padding: 40px 0 96px; background: linear-gradient(180deg, #18385c, #0f2740); color: #ffffff; text-align: center; }
.lp2-final-faces { display: flex; justify-content: center; align-items: flex-end; gap: 6px; margin: 0 0 12px; }
.lp2-final-pose { width: 84px; height: 96px; object-fit: contain; }
.lp2-final h2 { margin: 0 0 8px; font-size: 22px; font-weight: 900; line-height: 1.4; }
.lp2-final > .lp2-inner > p { margin: 0 0 18px; font-size: 14px; opacity: .9; }
.lp2-final .lp2-btn-line { max-width: 420px; margin: 0 auto; }
.lp2-final-sub a { color: #ffffff; font-size: 13px; }

@media (min-width: 600px) {
  .lp2-hero-title { font-size: 34px; }
  .lp2-bubble { display: block; }
  .lp2-who-grid { grid-template-columns: 1fr 1fr; }
  .lp2-who { grid-template-columns: 1fr; justify-items: center; text-align: left; }
  .lp2-who-img { width: 200px; height: 220px; }
  .lp2-mock-grid { grid-template-columns: 1fr 1fr; }
  .lp2-feature-grid { grid-template-columns: repeat(4, 1fr); }
  .lp2-steps { grid-template-columns: repeat(3, 1fr); }
  .lp2-steps li { grid-template-columns: 1fr; justify-items: center; text-align: center; row-gap: 6px; }
  .lp2-step-face { grid-row: auto; }
  .lp2-trouble, .lp2-solve { font-size: 14px; }
}
@media (max-width: 360px) {
  .lp2-board-head, .lp2-row { grid-template-columns: 1fr 44px 1.3fr; }
  .lp2-face { width: 44px; height: 44px; }
}

/* =========================================================
   キャラクターのひとこと（chara-。chara_lib.php の chara_note()。2026-11-07）
   何も無いとき・送れたときなどに、キャラの表情と一言を出す
   ========================================================= */
.chara-note { display: flex; align-items: center; gap: 14px; max-width: 560px; margin: 16px auto; padding: 14px 16px; border: 2px solid #d6e4ef; border-radius: 18px; background: #ffffff; text-align: left; box-sizing: border-box; }
.chara-note-img { flex: none; width: 88px; height: 100px; object-fit: contain; }
.chara-note-body { flex: 1; min-width: 0; }
.chara-note-text { margin: 0 0 4px; color: #18385c; font-size: 15px; font-weight: 800; line-height: 1.5; }
.chara-note-sub { margin: 0; color: #5b6b78; font-size: 13px; line-height: 1.6; }
.chara-note-btn { display: inline-flex; align-items: center; gap: 6px; margin: 10px 0 0; padding: 8px 16px; border-radius: 999px; background: #0077cc; color: #ffffff; font-size: 13px; font-weight: 800; text-decoration: none; }
.chara-note-btn:hover { background: #005fa3; color: #ffffff; }

/* =========================================================
   初めての使い方の案内（bl-tour-。js/tour.js。2026-11-07）
   画面を暗くして1か所だけ明るく抜き、キャラクターが吹き出しで説明する
   ========================================================= */
.bl-tour { position: fixed; inset: 0; z-index: 3000; }
.bl-tour-hole { position: fixed; border-radius: 14px; box-shadow: 0 0 0 9999px rgba(10, 22, 36, .66); outline: 3px solid #f5b50b; outline-offset: 0; transition: top .25s, left .25s, width .25s, height .25s; pointer-events: auto; }
.bl-tour.is-center .bl-tour-hole { outline: 0; }
.bl-tour-bubble { position: fixed; display: flex; align-items: flex-end; gap: 10px; padding: 14px 14px 12px; border-radius: 18px; background: #ffffff; color: #1d2b36; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); box-sizing: border-box; transition: top .25s, left .25s; }
.bl-tour-bubble::before { content: ""; position: absolute; left: var(--bl-tour-arrow-x, 50%); width: 16px; height: 16px; margin-left: -8px; background: #ffffff; transform: rotate(45deg); }
.bl-tour-bubble[data-arrow="up"]::before { top: -7px; }
.bl-tour-bubble[data-arrow="down"]::before { bottom: -7px; }
.bl-tour-bubble:not([data-arrow])::before { display: none; }
.bl-tour-chara { flex: none; width: 84px; height: 100px; object-fit: contain; align-self: center; }
.bl-tour-body { flex: 1; min-width: 0; }
.bl-tour-title { margin: 0 0 4px; color: #18385c; font-size: 16px; font-weight: 900; line-height: 1.4; }
.bl-tour-text { margin: 0 0 8px; font-size: 14px; line-height: 1.7; }
.bl-tour-dots { margin: 0 0 8px; color: #64748b; font-size: 12px; font-weight: 700; }
.bl-tour-actions { display: flex; align-items: center; gap: 8px; }
.bl-tour-actions button { min-height: 40px; padding: 0 14px; border-radius: 999px; font-size: 14px; font-weight: 800; cursor: pointer; font-family: inherit; }
.bl-tour-skip { margin-right: auto; padding: 0 4px !important; border: 0; background: none; color: #64748b; text-decoration: underline; }
.bl-tour-back { border: 1px solid #cbd5e1; background: #ffffff; color: #18385c; }
.bl-tour-next { border: 0; background: #0077cc; color: #ffffff; }
.bl-tour-actions button:focus-visible { outline: 3px solid #f5b50b; outline-offset: 2px; }
.bl-tour-open { overflow: hidden; }
@media (max-width: 380px) {
  .bl-tour-chara { width: 64px; height: 78px; }
  .bl-tour-text { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .bl-tour-hole, .bl-tour-bubble { transition: none; }
}

/* 資格・講習のまとめのお気に入り（lic-fav。ログインした会員だけ。2026-11-07） */
.lic-fav { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 40px; height: 40px; margin-left: 4px; padding: 0; border: 1px solid #e2e8f0; border-radius: 50%; background: #ffffff; color: #94a3b8; font-size: 18px; cursor: pointer; }
.lic-fav.is-on { border-color: #fecaca; background: #fff1f2; color: #e11d48; }
.lic-fav:disabled { opacity: .6; cursor: default; }
.lic-fav:focus-visible { outline: 3px solid #f5b50b; outline-offset: 2px; }
.lic-card-head .lic-fav { margin-left: 8px; }
.lic-org-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.lic-org-head .lic-name { flex: 1; min-width: 0; }
.lic-chip-fav i { color: #e11d48; }
.lic-chip-fav.is-on i { color: inherit; }

/* お問い合わせのバグ報告の自動対応（inq-bug。admin/inquiries.php。2026-11-07） */
.inq-bug { margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; background: #f1f5f9; border-left: 4px solid #94a3b8; font-size: 13px; line-height: 1.6; }
.inq-bug-head { margin: 0 0 4px; }
.inq-bug-head i { margin-right: 4px; }
.inq-bug-note { margin: 4px 0 0; color: #475569; }
.inq-bug-proposed, .inq-bug-approved { background: #fff7e0; border-left-color: #f2a516; }
.inq-bug-not_reproduced, .inq-bug-reply_failed { background: #fbe6e3; border-left-color: #c0392b; }
.inq-bug-replied { background: #e3f6ea; border-left-color: #1f8a4c; }

/* お知らせ（notice.php の見出し・admin/notices.php の書く画面。ntc-。2026-11-07） */
.notice-title { margin: 0 0 4px; font-weight: 800; color: #18385c; }
.ntc-form { display: flex; flex-direction: column; gap: 6px; margin: 12px 0 20px; padding: 16px; }
.ntc-form-h { margin: 0 0 6px; font-size: 16px; }
.ntc-label { margin: 6px 0 0; font-size: 13px; font-weight: 700; color: #475569; }
.ntc-form input[type="date"], .ntc-form input[type="text"], .ntc-form textarea { width: 100%; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 10px; font-size: 15px; font-family: inherit; box-sizing: border-box; }
.ntc-form textarea { line-height: 1.7; resize: vertical; }
.ntc-check { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.ntc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0 0; }
.ntc-actions form { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.ntc-list-h { margin: 18px 0 8px; font-size: 15px; }
.ntc-card { margin: 0 0 10px; padding: 14px; }
.ntc-card.is-draft { opacity: .75; border: 1px dashed #94a3b8; }
.ntc-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 6px; }
.ntc-badge { padding: 2px 10px; border-radius: 999px; background: #e3f6ea; color: #1f8a4c; font-size: 12px; font-weight: 800; }
.ntc-badge.is-draft { background: #f1f5f9; color: #64748b; }
.ntc-date { font-size: 13px; font-weight: 700; }
.ntc-no { margin-left: auto; font-size: 12px; color: #94a3b8; }
.ntc-title { margin: 0 0 4px; font-weight: 800; color: #18385c; }
.ntc-body { font-size: 14px; line-height: 1.7; }
.ntc-del { padding: 4px 8px; border-radius: 10px; background: #fff5f5; }