/* 共通設定 */
* {
  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;
}
.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;
}
.category-tab:hover {
  background: #e8e8e8;
}
.category-tab.active {
  background: #fff;
  color: #0077cc;
  border-bottom-color: #0077cc;
  font-weight: bold;
}

/* 受注投稿: 個人/法人タブの選択状態を明確化 */
.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;
}
.entry-calendar-wrap {
  border: 1px solid #dbe3ec;
  border-radius: 12px;
  background: #fff;
  padding: 10px;
}
.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）        */
/* ====================================== */
.detail-body {
  white-space: pre-wrap;
  word-break: break-word;
}
.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;
}

.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;
}

/* 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;
}

