@charset "UTF-8";
/* http://meyerweb.com/eric/tools/css/reset/
   v5.0.2 | 20191019
   License: none (public domain)
*/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
main, menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, main, menu, nav, section {
  display: block;
}

/* HTML5 hidden-attribute fix for newer browsers */
*[hidden] {
  display: none;
}

body {
  line-height: 1;
}

menu, ol, ul {
  list-style: none;
}

blockquote, q {
  quotes: none;
}

blockquote:before, blockquote:after,
q:before, q:after {
  content: "";
  content: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* =========================
   Theme Colors
========================= */
/* Primary */
/* Gradation */
/* Text */
/* UI */
/* フォント */
/* ホバー */
.c-hover, .users__invite-btn:hover, .btn-primary:hover, .project-header__btn:hover, .pagination-arrow a:hover {
  opacity: 0.7;
  transition: 300ms;
}

/* =========================
   Semantic Colors
========================= */
/* Status */
/* Background */
/* Border */
.u-padding-inner {
  padding: 0rem 8rem;
}
@media (max-width: 1200px) {
  .u-padding-inner {
    padding: 0 6.4rem;
  }
}
@media (max-width: 992px) {
  .u-padding-inner {
    padding: 0 4rem;
  }
}
@media (max-width: 768px) {
  .u-padding-inner {
    padding: 0 2.4rem;
  }
}
@media (max-width: 576px) {
  .u-padding-inner {
    padding: 0 1.6rem;
  }
}

.u-container {
  max-width: 1200px;
  margin: 0 auto;
}
@media print, screen and (min-width: 80em) {
  .u-container {
    max-width: 1500px;
  }
}

.u-mb80 {
  margin-bottom: 8rem;
}
@media (max-width: 768px) {
  .u-mb80 {
    margin-bottom: 6.4rem;
  }
}
@media (max-width: 576px) {
  .u-mb80 {
    margin-bottom: 4rem;
  }
}

.u-mb48 {
  margin-bottom: 4rem;
}
@media (max-width: 768px) {
  .u-mb48 {
    margin-bottom: 3.2rem;
  }
}
@media (max-width: 576px) {
  .u-mb48 {
    margin-bottom: 2.4rem;
  }
}

.u-mb40 {
  margin-bottom: 4rem;
}
@media (max-width: 768px) {
  .u-mb40 {
    margin-bottom: 3.2rem;
  }
}
@media (max-width: 576px) {
  .u-mb40 {
    margin-bottom: 1.6rem;
  }
}

.u-mb32 {
  margin-bottom: 3.2rem;
}
@media (max-width: 768px) {
  .u-mb32 {
    margin-bottom: 2.8rem;
  }
}
@media (max-width: 576px) {
  .u-mb32 {
    margin-bottom: 1.4rem;
  }
}

.u-mb24 {
  margin-bottom: 2.4rem;
}
@media (max-width: 768px) {
  .u-mb24 {
    margin-bottom: 1.8rem;
  }
}
@media (max-width: 576px) {
  .u-mb24 {
    margin-bottom: 1.2rem;
  }
}

.u-mb16 {
  margin-bottom: 1.6rem;
}
@media (max-width: 768px) {
  .u-mb16 {
    margin-bottom: 1.2rem;
  }
}
@media (max-width: 576px) {
  .u-mb16 {
    margin-bottom: 0.8rem;
  }
}

.u-mb8 {
  margin-bottom: 0.8rem;
}
@media (max-width: 768px) {
  .u-mb8 {
    margin-bottom: 0.6rem;
  }
}
@media (max-width: 576px) {
  .u-mb8 {
    margin-bottom: 0.4rem;
  }
}

.u-mt80 {
  margin-top: 8rem;
}
@media (max-width: 768px) {
  .u-mt80 {
    margin-top: 6.4rem;
  }
}
@media (max-width: 576px) {
  .u-mt80 {
    margin-top: 4rem;
  }
}

.u-mt40, .c-heading-text {
  margin-top: 4rem;
}
@media (max-width: 768px) {
  .u-mt40, .c-heading-text {
    margin-top: 3.2rem;
  }
}
@media (max-width: 576px) {
  .u-mt40, .c-heading-text {
    margin-top: 2rem;
  }
}

.u-p40 {
  padding: 4rem;
}
@media (max-width: 768px) {
  .u-p40 {
    padding: 2rem;
  }
}
@media (max-width: 576px) {
  .u-p40 {
    padding: 1.6rem;
  }
}

.u-br-sp {
  display: none;
}
@media (max-width: 576px) {
  .u-br-sp {
    display: block;
  }
}

@media (max-width: 576px) {
  .u-br-sp-none {
    display: none;
  }
}

.u-padding-inner-tb {
  padding: 8rem 8rem 4rem 8rem;
}
@media (max-width: 1200px) {
  .u-padding-inner-tb {
    padding: 3.2rem 6.4rem;
  }
}
@media (max-width: 992px) {
  .u-padding-inner-tb {
    padding: 2.8rem 5.6rem;
  }
}
@media (max-width: 768px) {
  .u-padding-inner-tb {
    padding: 2rem 4rem;
  }
}
@media (max-width: 576px) {
  .u-padding-inner-tb {
    padding: 1.6rem 1.6rem;
  }
}

.l-content-container {
  background-color: #FFFCF7;
  min-height: 100vh;
}

.l-main-layout {
  display: flex;
  max-width: 1342px;
  margin: 0 auto;
  justify-content: center;
  flex-wrap: nowrap;
  align-items: flex-start;
  padding: 40px 16px 0px;
  gap: 40px;
}
@media (max-width: 992px) {
  .l-main-layout {
    padding: 24px 12px 0px;
    flex-direction: column;
  }
}

.l-main-layout-sp-none {
  display: flex;
  max-width: 1287px;
  margin: 0 auto;
  justify-content: center;
  flex-wrap: nowrap;
  align-items: flex-start;
  padding: 40px 16px 0px;
  gap: 40px;
}
@media (max-width: 992px) {
  .l-main-layout-sp-none {
    padding: 24px 12px 0px;
    flex-direction: column;
  }
}
@media (max-width: 768px) {
  .l-main-layout-sp-none {
    padding: 24px 12px 0px;
  }
}
@media (max-width: 576px) {
  .l-main-layout-sp-none {
    padding: 24px 0px 0px;
  }
}

.l-sidebar {
  width: 300px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
@media (max-width: 992px) {
  .l-sidebar {
    width: 100%;
  }
}

.l-main {
  flex: 1;
  min-width: 0;
  width: 100%;
  display: flex;
  max-width: 1264px;
  justify-content: center;
  flex-wrap: nowrap;
  align-items: flex-start;
  margin: 0px auto;
  padding: 40px 16px 80px;
  gap: 40px;
}

.l-main-block {
  max-width: 1360px;
  margin: 0px auto;
  padding: 40px 16px 80px;
}

.l-content-flex {
  display: flex;
  gap: 40px;
}
@media (max-width: 1200px) {
  .l-content-flex {
    display: block;
  }
}

.l-fv-layout {
  margin: 0 auto;
  flex-wrap: nowrap;
  gap: 32px;
}

@media (max-width: 576px) {
  .pt0 {
    padding-top: 0px;
  }
}

.l-page-wrapper {
  margin: 0 16px;
  padding: 40px;
}

.montserrat {
  font-family: "Montserrat", serif;
  font-optical-sizing: auto;
  font-style: normal;
}

body {
  font-size: 1rem; /* 16px → 1rem */
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: bold;
}

.noto, .u-jp40, .u-jp32, .u-jp30, .u-jp28, .c-heading, .u-jp24, .u-jp22, .u-jp20, .u-jp18, .memo-panel__title, .ai-panel__title, .c-heading-text, .u-jp16, .u-jp15, .u-jp14, .btn-all-text, .btn-outline, .home-tabs__btn, .u-jp12, .memo-item__reply-result .reply-result-text, .memo-item__text, .memo-item .date, .check-list li, .u-jp11, .memo-item .memo-item-info, .memo-item__reply-result .reply-result-info, .memo-item .date small, body, h1, h2, h3, h4, h5, h6 {
  font-family: "Noto Sans JP", sans-serif;
  font-style: normal;
  font-weight: 500;
}

.roboto, .u-eng20, .u-eng18, .u-eng16, .pagination a, .u-eng12, .c-heading span, .u-eng10 {
  font-family: "Roboto Condensed", sans-serif;
  font-style: normal;
}

.lato {
  font-family: "Lato", sans-serif;
  font-style: normal;
}

.u-jp11, .memo-item .memo-item-info, .memo-item__reply-result .reply-result-info, .memo-item .date small {
  font-size: 1.1rem;
  line-height: 1.4;
  letter-spacing: 0.05em;
}

.u-jp12, .memo-item__reply-result .reply-result-text, .memo-item__text, .memo-item .date, .check-list li {
  font-size: 1.2rem;
  line-height: 1.4;
  letter-spacing: 0.05em;
}
@media (max-width: 576px) {
  .u-jp12, .memo-item__reply-result .reply-result-text, .memo-item__text, .memo-item .date, .check-list li {
    font-size: 1.2rem;
  }
}

.u-jp14, .btn-all-text, .btn-outline, .home-tabs__btn {
  font-size: 1.4rem;
  line-height: 1.65;
  letter-spacing: 0.05em;
}
@media (max-width: 576px) {
  .u-jp14, .btn-all-text, .btn-outline, .home-tabs__btn {
    font-size: 1.3rem;
  }
}

.u-jp15 {
  font-size: 1.5rem;
  line-height: 1.65;
  letter-spacing: 0.05em;
}
@media (max-width: 576px) {
  .u-jp15 {
    font-size: 1.4rem;
  }
}

.u-jp16 {
  font-size: 1.6rem;
  line-height: 1.4;
  letter-spacing: 0.05em;
}
@media (max-width: 576px) {
  .u-jp16 {
    font-size: 1.4rem;
  }
}

.u-jp18, .memo-panel__title, .ai-panel__title, .c-heading-text {
  font-size: 1.8rem;
  letter-spacing: 0.05em;
}
@media (max-width: 576px) {
  .u-jp18, .memo-panel__title, .ai-panel__title, .c-heading-text {
    font-size: 1.6rem;
  }
}

.u-jp20 {
  font-size: 2rem;
  line-height: 1.5;
  letter-spacing: 0.05em;
}
@media (max-width: 576px) {
  .u-jp20 {
    font-size: 1.8rem;
  }
}

.u-jp22 {
  font-size: 2.2rem;
  line-height: 1.5;
  letter-spacing: 0.05em;
}
@media (max-width: 576px) {
  .u-jp22 {
    font-size: 2rem;
  }
}

.u-jp24 {
  font-size: 2.4rem;
  line-height: 1.4;
  letter-spacing: 0.05em;
}
@media (max-width: 576px) {
  .u-jp24 {
    font-size: 2.2rem;
  }
}

.u-jp28, .c-heading {
  font-size: 2.8rem;
  line-height: 1.4;
  letter-spacing: 0.05em;
}
@media (max-width: 576px) {
  .u-jp28, .c-heading {
    font-size: 2.4rem;
  }
}

.u-jp30 {
  font-size: 3rem;
  line-height: 1.4;
  letter-spacing: 0.05em;
}
@media (max-width: 576px) {
  .u-jp30 {
    font-size: 2.6rem;
  }
}

.u-jp32 {
  font-size: 3.2rem;
  line-height: 1.4;
  letter-spacing: 0.05em;
}
@media (max-width: 576px) {
  .u-jp32 {
    font-size: 2.8rem;
  }
}

.u-jp40 {
  font-size: 4rem;
  line-height: 1.4;
  letter-spacing: 0.05em;
}
@media (max-width: 576px) {
  .u-jp40 {
    font-size: 3.2rem;
  }
}

.u-eng10 {
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.4;
  letter-spacing: 0.05em;
}
@media (max-width: 576px) {
  .u-eng10 {
    font-size: 1rem;
  }
}

.u-eng12, .c-heading span {
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.4;
  letter-spacing: 0.05em;
}
@media (max-width: 576px) {
  .u-eng12, .c-heading span {
    font-size: 1.2rem;
  }
}

.u-eng16, .pagination a {
  font-weight: 700;
  font-size: 1.6rem;
  line-height: 1.4;
  letter-spacing: 0.05em;
}
@media (max-width: 576px) {
  .u-eng16, .pagination a {
    font-size: 1.4rem;
  }
}

.u-eng18 {
  font-weight: 700;
  font-size: 1.8rem;
  line-height: 1.4;
  letter-spacing: 0.05em;
}
@media (max-width: 576px) {
  .u-eng18 {
    font-size: 1.4rem;
  }
}

.u-eng20 {
  font-weight: 700;
  font-size: 2rem;
  line-height: 1.4;
  letter-spacing: 0.05em;
}
@media (max-width: 576px) {
  .u-eng20 {
    font-size: 1.6rem;
  }
}

.c-heading {
  font-weight: 900;
}
.c-heading span {
  display: block;
  font-weight: 700;
  margin-bottom: 0.25rem; /* 4px → 0.25rem */
}
.c-heading-text {
  font-weight: 500;
}

/* =========================
  Z-INDEX / LAYOUT
========================= */
.l-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

.unread-panel {
  position: fixed;
  top: 72px;
  right: 24px;
  z-index: 300;
}

/* =========================
  HEADER
========================= */
.page-header {
  background: #fff;
  border-bottom: 1px solid #DDDDDD;
}
.page-header .l-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 16px;
}
@media (max-width: 768px) {
  .page-header .l-header__inner {
    align-items: start;
  }
}
.page-header .l-header__left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
@media (max-width: 768px) {
  .page-header .l-header__left {
    flex-direction: column;
    align-items: start;
    width: 100%;
    gap: 8px;
  }
}
.page-header .l-header__left .l-header__logo img {
  width: 100%;
  min-height: 32px;
  max-height: 32px;
}
@media (max-width: 768px) {
  .page-header .l-header__left .l-header__logo img {
    min-height: 28px;
    max-height: 28px;
  }
}
.page-header .l-header__right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-login-link {
  font-size: 14px;
}

/* =========================
  HEADER ICON
========================= */
.header-icon {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid #DDDDDD;
  background: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: #666666;
}
.header-icon i {
  font-size: 15px;
}
.header-icon:hover {
  background: #F9FAFB;
}
.header-icon .action-tooltip {
  bottom: 40% !important;
  left: 20% !important;
}

/* =========================
  HEADER SHARE
========================= */
.header-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  font-size: 13px;
  color: #2563eb;
  background: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}
.header-share-btn i {
  font-size: 14px;
}
.header-share-btn:hover {
  background: rgba(37, 99, 235, 0.08);
}
.header-share-btn:hover .action-tooltip {
  opacity: 1;
  transform: translate(-50%, -6px);
}
@media (max-width: 992px) {
  .header-share-btn {
    display: none;
  }
}

.header-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #2563eb;
  text-decoration: none;
}
.header-link:hover {
  text-decoration: underline;
}

.header-copy-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: none;
  background: transparent;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: #2563eb;
}
.header-copy-btn:hover {
  background: #f3f4f6;
  color: #F5A32A;
}

/* =========================
  DROPDOWN
========================= */
.header-action {
  position: relative;
}

.header-menu {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 280px;
  background: #fff;
  border: 1px solid #DDDDDD;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  padding: 10px;
  z-index: 1000;
}
.header-menu.is-open {
  display: block;
}
.header-menu .header-menu__user-name {
  font-size: 14px;
}
.header-menu .header-menu__user-sub {
  font-size: 14px;
}

.header-menu__item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 10px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 14px;
  color: #333333;
}
.header-menu__item i {
  color: #F5A32A;
}
.header-menu__item:hover {
  background: #fff9f0;
}
.header-menu__item--danger {
  color: #EC5F5F;
}
.header-menu__item--danger i {
  color: #EC5F5F;
}
.header-menu__item--danger:hover {
  background: rgba(239, 68, 68, 0.08);
}

/* =========================
  Modal（共通）
========================= */
.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 1000;
}
.modal.is-hidden {
  display: none;
}
.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}
.modal__panel {
  position: relative;
  width: min(960px, 100% - 32px);
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}
.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #757575;
  color: #fff;
  padding: 14px 16px;
}
.modal__title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}
.modal__close {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.15);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.modal__close:hover {
  background: rgba(0, 0, 0, 0.25);
}
.modal__body {
  padding: 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 16px;
  border-top: 1px solid #DDDDDD;
  background: #F9FAFB;
}
.modal__footer--split {
  justify-content: space-between;
}
.modal-invite__lead {
  font-size: 14px;
}

/* =========================
  Account Modal
========================= */
.modal-account {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
  padding: 0;
}
@media (max-width: 768px) {
  .modal-account {
    display: flex;
    flex-direction: column;
  }
}
.modal-account__side {
  background: #58a99a;
  color: #fff;
  padding: 22px 18px;
  min-height: 360px;
}
@media (max-width: 768px) {
  .modal-account__side {
    min-height: auto;
  }
}
.modal-account__avatar {
  width: 120px;
  height: 120px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
}
@media (max-width: 768px) {
  .modal-account__avatar {
    width: 60px;
    height: 60px;
  }
}
.modal-account__avatar i {
  font-size: 54px;
  opacity: 0.9;
}
@media (max-width: 768px) {
  .modal-account__avatar i {
    font-size: 32px;
  }
}
.modal-account__avatar--upload {
  position: relative;
  cursor: pointer;
  overflow: hidden;
}
.modal-account__avatar--upload:hover .modal-account__avatar-overlay {
  opacity: 1;
}
.modal-account__avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 999px;
}
.modal-account__avatar-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 999px;
  opacity: 0;
  transition: opacity 0.2s;
}
.modal-account__avatar-overlay i {
  font-size: 24px;
  color: #fff;
}
.modal-account__avatar-input {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}
.modal-account__name {
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 16px;
}
.modal-account__meta {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}
.modal-account__meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}
@media (max-width: 768px) {
  .modal-account__meta-row {
    justify-content: center;
  }
}
.modal-account__meta-row i {
  opacity: 0.9;
}
.modal-account__main {
  padding: 18px 18px;
}

/* =========================
  Form（共通）
========================= */
.form-grid {
  display: grid;
  gap: 14px;
}

.form-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 12px;
  align-items: start;
}
@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-label {
  font-size: 14px;
  font-weight: 700;
  color: #333333;
}

.form-input {
  width: 100%;
  padding: 12px 12px;
  border-radius: 10px;
  border: 1px solid #DDDDDD;
  font-size: 14px;
}
.form-input:focus {
  outline: none;
  border-color: #F5A32A;
  box-shadow: 0 0 0 2px rgba(245, 163, 42, 0.2);
}

/* =========================
  BREADCRUMB
========================= */
.breadcrumb {
  min-width: 0;
  max-width: 100%;
  padding: 0px 16px 10px 16px;
}
.breadcrumb__scroll {
  display: flex;
  width: 100%;
  min-width: 0;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #e5e7eb transparent;
}
.breadcrumb__scroll::-webkit-scrollbar {
  height: 4px;
}
.breadcrumb__scroll::-webkit-scrollbar-thumb {
  background: #e5e7eb;
  border-radius: 999px;
}
.breadcrumb__item, .breadcrumb__current {
  font-size: 12px;
  white-space: nowrap;
  text-decoration: underline;
}
@media (max-width: 768px) {
  .breadcrumb__item, .breadcrumb__current {
    font-size: 11px;
  }
}
.breadcrumb__current {
  color: #666666;
  text-decoration: none;
}
.breadcrumb__sep {
  font-weight: 600;
  color: #ACACAC;
}

/* ===== 吹き出し本体 ===== */
.action-tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translate(-50%, 0);
  opacity: 0;
  pointer-events: none;
  background: #333;
  color: #fff;
  font-size: 11px;
  line-height: 1.4;
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 100;
  /* ▼ 吹き出しの三角 */
}
.action-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px 5px 0;
  border-style: solid;
  border-color: #333 transparent transparent;
}

/* =========================
   Notice
========================= */
.dashboard-notice {
  /* =========================
     Base
  ========================= */
  /* =========================
     State
  ========================= */
}
.dashboard-notice .notice {
  background: #FFF4E5;
  border: 1px solid #DDDDDD;
  border-radius: 12px;
  padding: 16px;
  transition: background 0.2s ease, border 0.2s ease;
}
.dashboard-notice .notice__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.dashboard-notice .notice__title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #333333;
}
.dashboard-notice .notice__text {
  font-size: 13px;
  color: #666666;
  line-height: 1.6;
}
.dashboard-notice .notice__list {
  margin-top: 8px;
  padding-left: 18px;
  font-size: 13px;
  color: #333333;
}
.dashboard-notice .notice__list li {
  margin-bottom: 4px;
}
.dashboard-notice .notice__link {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #428BCA;
  text-decoration: none;
}
.dashboard-notice .notice__link:hover {
  text-decoration: underline;
}
.dashboard-notice .notice .notice__badge {
  color: #e54848;
}
.dashboard-notice .notice.is-closed .notice__body {
  display: none;
}
.dashboard-notice .notice.is-unread {
  background: rgba(245, 163, 42, 0.06);
  border-color: #F5A32A;
}
.dashboard-notice .notice.is-unread .notice__title {
  color: #F5A32A;
}
.dashboard-notice .notice.is-unread .notice__text,
.dashboard-notice .notice.is-unread .notice__list {
  color: #333333;
}
.dashboard-notice .notice.is-error {
  background: rgba(229, 57, 53, 0.08);
  border-color: #E53935;
}
.dashboard-notice .notice.is-error .notice__title {
  color: #E53935;
}
.dashboard-notice .notice.is-error .notice__text,
.dashboard-notice .notice.is-error .notice__list {
  color: #333333;
}

/* =========================
   Footer
========================= */
.l-footer {
  margin-top: auto;
  background: #FFFFFF;
  border-top: 1px solid #DDDDDD;
}

.l-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  text-align: center;
}

.l-footer__copyright {
  font-size: 12px;
  color: #ACACAC;
}

.pagination {
  display: flex;
  justify-content: center;
}
.pagination-inner {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
}
.pagination__list {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}
.pagination__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #ba1c22;
}
.pagination__dots img {
  width: 24px;
  height: auto;
}
.pagination a {
  display: block;
  width: 40px;
  height: 40px;
  font-size: 16px;
  line-height: 40px;
  text-align: center;
  text-decoration: none;
  border-radius: 2px;
  border: 1px solid #DDDDDD;
  color: #666666;
  background-color: #fff;
  transition: all 0.3s ease;
}
.pagination a.current {
  background-color: #666666;
  color: #FFFFFF;
}
.pagination-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  gap: 8px;
}
.pagination-arrow a {
  color: #F5A32A;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  gap: 8px;
  border-radius: 4px;
  border: 2px solid #F5A32A;
  width: 160px;
}
.pagination-arrow a img {
  width: 12px;
}
/* =========================
   ログイン
========================= */
.login {
  min-height: 100vh;
  display: grid;
  place-items: center;
}
.login__card {
  width: 420px;
  padding: 32px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}
@media (max-width: 768px) {
  .login__card {
    width: 100%;
    padding: 24px 16px;
  }
}
.login__logo {
  text-align: center;
  margin-bottom: 24px;
}
.login__logo img {
  width: 240px;
}
.login__field {
  margin-bottom: 16px;
}
.login__label {
  display: block;
  font-size: 13px;
  margin-bottom: 6px;
  color: #666666;
}
.login__input {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #DDDDDD;
  font-size: 14px;
  color: #333333;
}
.login__input:focus {
  outline: none;
  border-color: #F5A32A;
  box-shadow: 0 0 0 2px rgba(245, 163, 42, 0.2);
}
.login__option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  font-size: 13px;
}
.login__remember {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #666666;
}
.login__forgot {
  color: #E88A00;
  text-decoration: none;
}
.login__forgot:hover {
  text-decoration: underline;
}
.login__btn {
  display: inline-block;
  width: 100%;
  padding: 14px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: bold;
  color: #fff;
  max-width: 240px;
  background: linear-gradient(to right, #FEC32B, #FEA826);
  border: none;
  cursor: pointer;
  text-align: center;
  transition: filter 0.2s ease;
}
.login__btn:hover {
  filter: brightness(0.95);
}
.login__error {
  margin-top: 12px;
  font-size: 13px;
  color: #E53935;
}

/* =========================
    パスワード
========================= */
.login__title {
  margin-bottom: 8px;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  color: #333333;
}

.login__lead {
  margin-bottom: 24px;
  font-size: 13px;
  text-align: center;
  color: #666666;
  line-height: 1.6;
}

.login__actions {
  margin-top: 24px;
  display: flex;
  justify-content: center;
}

.login__back {
  margin-top: 24px;
  text-align: center;
}
.login__back .login__link {
  font-size: 13px;
  color: #666666;
  text-decoration: none;
}
.login__back .login__link:hover {
  text-decoration: underline;
}

/* =========================
 Project Header
========================= */
.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}
@media (max-width: 768px) {
  .project-header {
    flex-direction: column;
  }
}

.rule-select-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-height: 200px;
  overflow-y: auto;
  border-radius: 10px;
  padding: 4px;
  scrollbar-width: thin;
  scrollbar-color: #d1d5db transparent;
}
.rule-select-list::-webkit-scrollbar {
  width: 6px;
}
.rule-select-list::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 999px;
}

/* 1ルール */
.rule-select {
  display: none;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid #DDDDDD;
  background: #FFFFFF;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
  /* hover */
  /* checkbox */
  /* チェック時 */
}
.rule-select:hover {
  background: #FFF7ED;
}
.rule-select input {
  width: 12px;
  height: 12px;
  accent-color: #F5A32A;
  cursor: pointer;
}
.rule-select span {
  font-size: 14px;
  line-height: 1.5;
  color: #333333;
}
.rule-select input:checked + span {
  border-color: #F5A32A;
}
.rule-select:has(input:checked) {
  border-color: #F5A32A;
  background: rgba(245, 163, 42, 0.06);
}

.rule-select.is-visible {
  display: flex;
}

.project-header__left {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.project-header__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 700;
  color: #333333;
}
.project-header__title i {
  font-size: 18px;
  color: #F5A32A;
}

.project-header__lead {
  font-size: 13px;
  color: #666666;
}

.project-header__right {
  flex-shrink: 0;
  display: flex;
  gap: 8px;
  align-items: center;
}

.project-header__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  color: #FFFFFF;
  background: linear-gradient(to right, #FEC32B, #FEA826);
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 16px rgba(245, 163, 42, 0.22);
}
@media (max-width: 768px) {
  .project-header__btn {
    font-size: 11px;
  }
}
.project-header__btn i {
  font-size: 14px;
}
@media (max-width: 768px) {
  .project-header__btn i {
    font-size: 11px;
  }
}
.home-tabs {
  width: 100%;
}
.home-tabs input {
  display: none;
}
.home-tabs__buttons {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.home-tabs__btn {
  padding: 8px 14px;
  border-radius: 6px;
  border: 1px solid #DDDDDD;
  background: #fff;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
#tab-my:checked ~ .home-tabs__buttons label[for=tab-my], #tab-share:checked ~ .home-tabs__buttons label[for=tab-share] {
  background: #F5A32A;
  color: #fff;
  border-color: #F5A32A;
}
.home-tabs__content {
  display: none;
}
#tab-my:checked ~ .home-tabs__contents .is-my {
  display: block;
}
#tab-share:checked ~ .home-tabs__contents .is-share {
  display: block;
}

/* =========================
 Table
========================= */
.home-table {
  background: #fff;
  border-radius: 8px;
  border: 1px solid #DDDDDD;
  overflow: hidden;
}
.home-table__head, .home-table__row {
  display: grid;
  grid-template-columns: 1fr 180px 80px 96px;
  align-items: center;
  padding: 12px 16px;
}
.home-table__head {
  background: #fff4e5;
  font-size: 13px;
  font-weight: bold;
}
.home-table__row {
  border-top: 1px solid #DDDDDD;
  transition: background 0.2s;
}
.home-table__row:hover {
  background: #fff9f0;
}
.home-table__name {
  display: flex;
  align-items: center;
  gap: 8px;
}
.home-table__name img {
  width: 18px;
  height: 18px;
}
.home-table__date {
  color: #666666;
}
.home-table__share {
  text-align: center;
}
.home-table__action {
  display: flex;
  justify-content: center;
  gap: 8px;
}

/* =========================
 Badge
========================= */
.badge {
  display: inline-block;
  padding: 2px 6px;
  font-size: 11px;
  color: #fff;
  background: #F5A32A;
  border-radius: 4px;
}

/* =========================
   Dashboard
========================= */
.dashboard {
  /* =========================
   Modal
  ========================= */
  /* =========================
   Form
  ========================= */
  /* =========================
   Buttons
  ========================= */
}
.dashboard .modal {
  position: fixed;
  inset: 0;
  z-index: 4000;
}
.dashboard .modal.is-hidden {
  display: none;
}
.dashboard .modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}
.dashboard .modal__panel {
  position: relative;
  max-width: calc(100% - 32px);
  margin: 80px auto;
  background: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}
.dashboard .modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: #757575;
  color: #fff;
}
.dashboard .modal__title {
  font-size: 16px;
  font-weight: 600;
}
.dashboard .modal__close {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}
.dashboard .modal__close i {
  font-size: 18px;
}
.dashboard .modal__body {
  padding: 20px;
}
.dashboard .modal__footer {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding: 16px;
  border-top: 1px solid #DDDDDD;
}
.dashboard .form-label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 500;
}
.dashboard .form-input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #DDDDDD;
  font-size: 14px;
}
.dashboard .form-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #666666;
}
.dashboard .btn-primary {
  padding: 10px 24px;
  border-radius: 10px;
  background: #F5A32A;
  color: #fff;
  border: none;
  cursor: pointer;
}
.dashboard .btn-primary:hover {
  opacity: 0.9;
}
.dashboard .btn-outline {
  padding: 10px 24px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #DDDDDD;
  cursor: pointer;
}
.dashboard .btn-outline:hover {
  background: #F9FAFB;
}

.recent-list-header {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 16px;
  margin-bottom: 4px;
  padding: 12px;
  font-size: 12px;
  font-weight: 600;
  color: #ACACAC;
  border-bottom: 1px solid #DDDDDD;
}

.recent-list-header__name {
  text-align: left;
}

.recent-list-header__status {
  min-width: 88px;
  text-align: center;
}

.recent-list-header__date {
  min-width: 88px;
  text-align: center;
}

.dashboard-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  overflow-x: auto;
  /* Firefox */
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
  /* Webkit（Chrome / Safari） */
}
.dashboard-layout::-webkit-scrollbar {
  height: 8px;
}
.dashboard-layout::-webkit-scrollbar-track {
  background: transparent;
}
.dashboard-layout::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 999px;
}
.dashboard-layout::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.35);
}
@media (max-width: 992px) {
  .dashboard-layout {
    display: flex;
    flex-direction: column;
    gap: 40px;
    width: 100%;
  }
}

.dashboard-tabs {
  display: flex;
  gap: 8px;
}

.dashboard-tab {
  padding: 8px 14px;
  font-size: 13px;
  border-radius: 999px;
  background: #f2f4f6;
  color: #555;
  border: none;
  cursor: pointer;
}
.dashboard-tab.is-active {
  background: #F5A32A;
  color: #fff;
}

.dashboard-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dashboard-side {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* =========================
   Section Title
========================= */
.dashboard-title {
  font-size: 15px;
  font-weight: bold;
  color: #333333;
  margin-bottom: 12px;
}

/* =========================
   Summary Cards
========================= */
.dashboard-summary {
  display: grid;
  gap: 12px;
}

.summary-card {
  background: #FFFFFF;
  border-radius: 12px;
  padding: 16px;
  border: 1px solid #DDDDDD;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.summary-card__label {
  font-size: 13px;
  color: #666666;
}
.summary-card__count {
  font-size: 28px;
  font-weight: bold;
  color: #333333;
}
.summary-card__link {
  margin-top: 6px;
  font-size: 13px;
  color: #428BCA;
  text-decoration: none;
}
.summary-card__link:hover {
  text-decoration: underline;
}
.summary-card.is-processing {
  border-left: 6px solid #F5A32A;
}
.summary-card.is-violation {
  border-left: 6px solid #E53935;
}
.summary-card.is-pass {
  border-left: 6px solid #22C55E;
}

/* =========================
   Recent List
========================= */
.dashboard-recent {
  background: #FFFFFF;
  border-radius: 12px;
  border: 1px solid #DDDDDD;
}

.recent-list {
  display: flex;
  flex-direction: column;
}

.recent-item {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 16px;
  padding: 12px;
  align-items: center;
  border-bottom: 1px solid #DDDDDD;
}
.recent-item:hover {
  background: #FFF7ED;
}
.recent-item:hover a {
  text-decoration: underline;
}
.recent-item__main {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.recent-item__name {
  font-size: 14px;
  font-weight: 500;
  color: #333333;
}
.recent-item__meta {
  font-size: 12px;
  color: #ACACAC;
}
.recent-item__right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.recent-item__date {
  min-width: 88px;
  text-align: center;
  font-size: 12px;
  color: #ACACAC;
}

.recent-item__actions {
  display: flex;
  gap: 6px;
  justify-content: center;
  transition: opacity 0.2s ease;
  min-width: 88px;
}

/* hover時だけ表示 */
.recent-item:hover .recent-item__actions {
  opacity: 1;
}

.recent-item__btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: none;
  background: transparent;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: #666666;
}
.recent-item__btn i {
  font-size: 14px;
}
.recent-item__btn:hover {
  background: #F9FAFB;
  color: #333333;
}
.recent-item__btn.is-danger {
  color: #EC5F5F;
}
.recent-item__btn.is-danger:hover {
  background: rgba(239, 68, 68, 0.08);
}

/* =========================
   Status Badge
========================= */
.td-status {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.status-badge {
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: bold;
  min-width: 88px;
  text-align: center;
  white-space: nowrap;
  font-size: 12px;
}
@media (max-width: 768px) {
  .status-badge {
    font-size: 10px;
  }
}
.status-badge.is-processing {
  background: rgba(245, 163, 42, 0.15);
  color: #E88A00;
}
.status-badge.is-violation {
  background: rgba(229, 57, 53, 0.15);
  color: #E53935;
}
.status-badge.is-pass {
  background: rgba(34, 197, 94, 0.15);
  color: #22C55E;
}

/* =========================
   Dashboard Menu
========================= */
.dashboard-links {
  background: #FFFFFF;
  border-radius: 12px;
  border: 1px solid #DDDDDD;
  padding: 16px;
}

.dashboard-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dashboard-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  color: #333333;
  border: 1px solid #DDDDDD;
}
.dashboard-menu a:hover {
  background: #FFF4E5;
  border-color: #F5A32A;
  color: #E88A00;
}
.dashboard-menu a.is-active,
.dashboard-menu a.is-active:hover {
  background: #F5A32A !important;
  border-color: #F5A32A !important;
  color: #FFFFFF !important;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(245, 163, 42, 0.35);
}

.p-project-table {
  width: 100%;
  border-spacing: 0;
  background: #fff;
  border-radius: 12px;
  overflow: auto;
  /* ===== スクロール共通 ===== */
  scrollbar-width: thin; /* Firefox */
  scrollbar-color: #e5e7eb transparent;
  /* ===== Webkit（Chrome / Safari） ===== */
}
.p-project-table__wrap {
  overflow: auto;
  background: #FFFFFF;
  border-radius: 12px;
}
.p-project-table::-webkit-scrollbar {
  height: 8px;
  width: 8px;
}
.p-project-table::-webkit-scrollbar-track {
  background: transparent;
}
.p-project-table::-webkit-scrollbar-thumb {
  background-color: #e5e7eb;
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: content-box;
}
.p-project-table::-webkit-scrollbar-thumb:hover {
  background-color: #d1d5db;
}
.p-project-table th {
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 600;
  color: #888;
  background: #f3f6f5;
  text-align: start;
}
.p-project-table tr {
  white-space: nowrap;
}
.p-project-table td {
  padding: 14px 16px;
  font-size: 14px;
}
@media (max-width: 768px) {
  .p-project-table td {
    font-size: 11px;
    padding: 8px 10px;
  }
}
.p-project-table__row {
  transition: background 0.2s ease;
  border-top: 1px solid #DDDDDD;
}
.p-project-table__row:hover {
  background-color: #FFF4E5;
}
.p-project-table__row:hover a {
  text-decoration: underline;
}

/* 名前 */
.p-project-table__name {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
  scrollbar-color: #e5e7eb transparent;
  max-width: 260px;
}
.p-project-table__name::-webkit-scrollbar {
  height: 6px;
}
.p-project-table__name::-webkit-scrollbar-thumb {
  background: #e5e7eb;
  border-radius: 999px;
}
.p-project-table__name a {
  color: #333333;
  text-decoration: none;
  white-space: nowrap;
}
.p-project-table__name i {
  color: #F5A32A;
}

/* メタ */
.p-project-table__meta {
  color: #666666;
  font-size: 13px;
}

/* 日付 */
.p-project-table__date {
  font-size: 13px;
  color: #666666;
}

/* 編集 */
.table-actions {
  display: inline-flex;
  gap: 8px;
}

.folder-search {
  position: relative;
  width: 100%;
  max-width: 360px;
}
.folder-search__icon {
  position: absolute;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
  font-size: 14px;
  color: #666666;
  pointer-events: none;
}
.folder-search__input {
  width: 100%;
  padding: 10px 14px 10px 38px;
  font-size: 14px;
  border-radius: 10px;
  border: 1px solid #DDDDDD;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.folder-search__input::-moz-placeholder {
  color: #666666;
}
.folder-search__input::placeholder {
  color: #666666;
}
.folder-search__input:focus {
  outline: none;
  border-color: #F5A32A;
  box-shadow: 0 0 0 3px rgba(245, 163, 42, 0.15);
  background: #fff;
}

.file-upload {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.file-upload__input {
  display: none;
}
.file-upload__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: -moz-fit-content;
  width: fit-content;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px dashed #DDDDDD;
  background: #fff;
  font-size: 14px;
  cursor: pointer;
}
.file-upload__label i {
  color: #F5A32A;
}
.file-upload__label:hover {
  border-color: #F5A32A;
  background: #f8fafc;
}
.file-upload__list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  margin: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  margin: 0;
  list-style: none;
  /* 追加 */
  max-height: 160px;
  overflow-y: auto;
  padding-right: 6px;
  /* スクロールバー見た目調整 */
  scrollbar-width: thin;
  scrollbar-color: #e5e7eb transparent;
}
.file-upload__list::-webkit-scrollbar {
  width: 6px;
}
.file-upload__list::-webkit-scrollbar-thumb {
  background: #e5e7eb;
  border-radius: 999px;
}
.file-upload__item {
  width: calc((100% - 6px) / 2);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #f9fafb;
  font-size: 13px;
}
.file-upload__name {
  flex: 1;
  min-width: 0;
  word-break: break-all;
}
.file-upload__actions {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.file-upload__edit {
  background: none;
  border: none;
  cursor: pointer;
  color: #6b7280;
  padding: 4px;
  border-radius: 6px;
}
.file-upload__edit:hover {
  background: rgba(107, 114, 128, 0.12);
}
.file-upload__remove {
  background: none;
  border: none;
  cursor: pointer;
  color: #EC5F5F;
  padding: 4px;
  border-radius: 6px;
}
.file-upload__remove:hover {
  background: rgba(239, 68, 68, 0.08);
}

/* =========================
   Modal Footer（split）
========================= */
.modal__footer {
  padding: 16px;
  border-top: 1px solid #DDDDDD;
  background: #fff;
}
.modal__footer--split {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.modal__footer--split button {
  flex: 1;
}

/* =========================
   Buttons
========================= */
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid #DDDDDD;
  background: #fff;
  color: #333333;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-outline:hover {
  background: #FFF4E5;
}

/* 危険操作用（削除） */
.btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 8px;
  border: none;
  background: #e54848;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.05s ease;
}
.btn-danger i {
  font-size: 14px;
}
.btn-danger:hover {
  background: rgb(225.1933014354, 45.2066985646, 45.2066985646);
}
.btn-danger:active {
  transform: translateY(1px);
}

.p-project-table__name {
  display: flex;
  align-items: center;
  gap: 8px;
}
.p-project-table__name .name-input {
  padding: 4px 6px;
  border: 1px solid #DDDDDD;
  border-radius: 4px;
  width: 200px;
  outline: none;
}
@media (max-width: 768px) {
  .p-project-table__name .name-input {
    font-size: 11px;
  }
}
.p-project-table__name .name-input:focus {
  border-color: #F5A32A;
  box-shadow: none;
}
.p-project-table__name .is-hidden {
  display: none;
}

.p-project__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  gap: 16px;
}
@media (max-width: 768px) {
  .p-project__header {
    flex-direction: column;
    align-items: start;
  }
}

/* ファイル追加ボタン */
.p-project__add-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  color: #fff;
  background: linear-gradient(to right, #FEC32B, #FEA826);
  box-shadow: 0 8px 16px rgba(245, 163, 42, 0.22);
}
.p-project__add-btn i {
  font-size: 14px;
}
.p-project__add-btn:hover {
  filter: brightness(0.95);
}

/* ==========================
  変数
========================== */
/* ==========================
  Project
========================== */
.p-project {
  width: 100%;
}
.p-project__title {
  font-size: 18px;
  font-weight: 600;
}
.p-project__title i {
  color: #F5A32A;
}

/* ==========================
  File Table
========================== */
.p-file-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
}
.p-file-table-wrap {
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #e5e7eb transparent;
}
.p-file-table-wrap::-webkit-scrollbar {
  height: 6px;
}
.p-file-table-wrap::-webkit-scrollbar-thumb {
  border-radius: 999px;
}
.p-file-table th,
.p-file-table td {
  padding: 12px 16px;
  font-size: 14px;
  border-bottom: 1px solid #e5e5e5;
}
@media (max-width: 768px) {
  .p-file-table th,
  .p-file-table td {
    padding: 8px 10px;
    font-size: 11px;
  }
}
.p-file-table th {
  background: #f3f6f5;
  font-weight: 500;
  color: #888;
  text-align: start;
}
.p-file-table tr:last-child td {
  border-bottom: none;
}
.p-file-table__row {
  cursor: pointer;
  transition: background 0.2s ease;
}
.p-file-table__row:hover {
  background: #FFF4E5;
}
.p-file-table__row:hover a {
  text-decoration: underline;
}
.p-file-table__name {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
  scrollbar-color: #e5e7eb transparent;
  max-width: 260px;
}
.p-file-table__name::-webkit-scrollbar {
  height: 6px;
}
.p-file-table__name::-webkit-scrollbar-thumb {
  background: #e5e7eb;
  border-radius: 999px;
}
.p-file-table__name i {
  color: #F5A32A;
  font-size: 16px;
}
.p-file-table__name a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  color: #333333;
  text-decoration: none;
}
.p-file-table__rule {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}
.p-file-table__date {
  white-space: nowrap;
  font-size: 13px;
  color: #888;
}
.p-file-table__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ==========================
  Icon Button
========================== */
.c-icon-btn {
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: #888;
  font-size: 15px;
  transition: color 0.2s ease;
}
.c-icon-btn:hover {
  color: #F5A32A;
}
.c-icon-btn.--danger:hover {
  color: #e55;
}

/* ==========================
  Toggle Switch
========================== */
.c-switch {
  position: relative;
  width: 36px;
  height: 20px;
}
.c-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.c-switch__slider {
  position: absolute;
  inset: 0;
  background: #ccc;
  border-radius: 20px;
  transition: background 0.3s;
}
.c-switch__slider::before {
  content: "";
  position: absolute;
  height: 14px;
  width: 14px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.3s;
}
input:checked + .c-switch__slider {
  background: #F5A32A;
}
input:checked + .c-switch__slider::before {
  transform: translateX(16px);
}

/* ==========================
  Tooltip（編集を許可）
========================== */
.c-tooltip {
  position: relative;
}
.c-tooltip:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: #fff;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

.file-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
}
.icon-btn i {
  font-size: 16px;
  color: #6b6b6b;
}
.icon-btn:hover {
  background: #f2f4f7;
}
.icon-btn.is-active {
  border-color: #2f6cff;
}
.icon-btn.is-active i {
  color: #2f6cff;
}
.icon-btn.danger i {
  color: #999;
}
.icon-btn.danger:hover {
  background: #fff1f1;
}
.icon-btn.danger:hover i {
  color: #e54848;
}

.file-table {
  width: 100%;
  border-collapse: collapse;
}
.file-table th,
.file-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #e6e6e6;
  font-size: 14px;
}
.file-table th {
  background: #f4f6f5;
  color: #666;
  font-weight: 500;
}
.file-table .th-center,
.file-table .td-center {
  text-align: center;
}

/* ===== 編集許可トグル ===== */
.edit-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  cursor: pointer;
}
.edit-switch input {
  display: none;
}
.edit-switch .slider {
  position: absolute;
  inset: 0;
  background: #cfd8d6;
  border-radius: 20px;
  transition: 0.2s;
}
.edit-switch .slider::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: 0.2s;
}
.edit-switch input:checked + .slider {
  background: #F5A32A;
}
.edit-switch input:checked + .slider::before {
  transform: translateX(20px);
}

/* ===== 編集アイコン ===== */
.action-icons {
  display: flex;
  justify-content: center;
  gap: 14px;
}

.icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #8a8a8a;
  font-size: 16px;
  padding: 4px;
}
.icon-btn.is-danger:hover {
  color: #e57373;
}

/* ===== ツールチップ ===== */
[data-tooltip] {
  position: relative;
}
[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: #fff;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
  z-index: 10;
}

/* ===== ステータス ===== */
.status-list {
  display: flex;
  justify-content: center;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.status-item {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e0e0e0;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  cursor: default;
  position: relative;
  transition: background 0.2s;
}
.status-item.is-pass {
  background: #f5a32a;
}

/* ===== ツールチップ ===== */
.status-item[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: #fff;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 4px;
  white-space: nowrap;
  z-index: 20;
}

.status-item[data-tooltip]:hover::before {
  content: "";
  position: absolute;
  bottom: 110%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #333;
}

.icon-btn[data-tooltip]:hover::before {
  content: "";
  position: absolute;
  bottom: 110%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #333;
}

/* =========================
   Reply Badge（未対応コメント）
========================= */
.reply-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  font-weight: 600;
  color: #e54848;
  border: 1px solid #e54848;
  border-radius: 999px;
  line-height: 1;
  white-space: nowrap;
  cursor: default;
}
.reply-badge i {
  font-size: 12px;
  color: #e54848;
}

.reply-badge__count {
  font-size: 11px;
}

/* ファイル名省略 */
.p-file-table__name {
  display: flex;
  align-items: center;
  gap: 6px;
}
.p-file-table__name .p-file-table__title {
  max-width: 240px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-main {
  padding: 16px;
  overflow-y: hidden;
  /* margin-bottom: 80px; */
}

/* ===== Header ===== */
.detail-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 20px;
  background: #fff;
  border-bottom: 1px solid #e6e6e6;
}
.detail-header .file-name {
  font-weight: 600;
  flex: 1;
}
.detail-header .header-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* ===== Layout ===== */
.detail-layout {
  display: grid;
  grid-template-columns: var(--annotation-panel-width, 300px) 1fr var(--ai-panel-width, 300px);
  height: 100vh;
}
.panel-shell {
  position: relative;
  min-width: 0;
}
.panel-shell.is-collapsed {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-right: 1px solid #e6e6e6;
}
.panel-shell--ai.is-collapsed {
  border-right: none;
  border-left: 1px solid #e6e6e6;
}
.panel-toggle {
  position: absolute;
  top: 12px;
  z-index: 120;
  width: 36px;
  height: 36px;
  border: 2px solid #d6d6d6;
  border-radius: 999px;
  background: #fff;
  color: #666;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.14);
}
.panel-toggle:hover {
  background: #fffaf0;
  border-color: #f5a32a;
  color: #3f3f3f;
}
.panel-toggle--memo {
  right: -18px;
}
.panel-toggle--ai {
  left: -18px;
}
.panel-resizer {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 8px;
  cursor: col-resize;
  z-index: 110;
}
.panel-resizer--memo {
  right: -4px;
}
.panel-resizer--ai {
  left: -4px;
}
.memo-panel-host.memo-panel,
.ai-panel-host.ai-panel {
  width: 100%;
}

/* ===== Annotation Panel ===== */
.memo-panel {
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 100;
  overflow-y: auto;
  background: #FFFFFF;
  border-right: 1px solid #e6e6e6;
  padding: 16px;
  width: 300px;
}
.memo-panel__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  padding: 10px 12px;
  background: #f6f8f7;
  margin-bottom: 12px;
  border-radius: 4px;
}
.memo-panel__title i {
  color: #F5A32A;
  font-size: 18px;
}

.memo-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.memo-list__name {
  font-size: 14px;
  line-height: 1.3;
  padding: 2px 4px;
  background-color: #FFFFFF;
  border-left: 3px solid #F5A32A;
  margin-bottom: 8px;
  font-weight: 700;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.memo-item {
  border-bottom: 1px solid #D9D9D9;
  display: flex;
  align-items: start;
  padding: 8px;
  gap: 8px;
  margin-bottom: 8px;
  transition: background 0.2s, box-shadow 0.2s;
  /* ===== アクション列 ===== */
  /* ===== 返信トグル ===== */
  /* …ボタン */
}
.memo-item__comment {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
}
.memo-item .memo-item__actions {
  display: flex;
  gap: 14px;
  padding: 6px 0 0;
  font-size: 12px;
  color: #666;
}
.memo-item .memo-item__actions .action-btn.is-active {
  color: #F5A32A;
}
.memo-item .action-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  padding: 4px;
  font-size: 12px;
  color: #6b6b6b;
  cursor: pointer;
  position: relative;
}
.memo-item .action-btn i {
  font-size: 14px;
}
.memo-item .action-btn:hover {
  color: #F5A32A;
}
.memo-item .action-btn:hover .action-tooltip {
  opacity: 1;
  transform: translate(-50%, -6px);
  pointer-events: auto;
}
.memo-item .memo-item__reply {
  margin-top: 6px;
}
.memo-item .memo-item__reply.is-hidden {
  display: none;
}
.memo-item .memo-item__reply-result {
  position: relative;
}
.memo-item .memo-item__reply-result .reply-result-menu {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  gap: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.memo-item .memo-item__reply-result:hover .reply-result-menu {
  opacity: 1;
  pointer-events: auto;
}
.memo-item .reply-menu__btn {
  display: flex;
  align-items: center;
  gap: 4px;
  border: 1px solid #E88A00;
  padding: 4px 8px;
  font-size: 12px;
  background: #fff;
  border-radius: 6px;
  color: #E88A00;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}
.memo-item .reply-menu__btn.-delete {
  border: 1px solid #ACACAC;
  color: #ACACAC;
}
.memo-item .reply-more-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: #555;
  opacity: 0;
  transition: opacity 0.2s;
}
.memo-item .reply-menu {
  position: absolute;
  top: 28px;
  right: 6px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  padding: 4px 0;
  width: 120px;
  z-index: 10;
  display: none;
}
.memo-item .reply-result-info:hover .reply-menu {
  display: block;
}
.memo-item .reply-menu__item {
  width: 100%;
  padding: 8px 12px;
  font-size: 13px;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}
.memo-item .reply-menu__item:hover {
  background: #f5f5f5;
}
.memo-item .reply-menu__item.is-danger {
  color: #d9534f;
}
.memo-item .memo-item-info {
  display: flex;
  justify-content: space-between;
  color: #ACACAC;
  white-space: nowrap;
  gap: 8px;
  margin-bottom: 4px;
}
.memo-item .memo-item-info .memo-user {
  width: 70%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.memo-item .memo-item-info .memo-date {
  width: 30%;
  text-align: end;
}
.memo-item__reply {
  padding: 8px;
  background: #eaf5f1;
}
.memo-item__reply-result {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.memo-item__reply-result .reply-result-info {
  display: flex;
  justify-content: space-between;
  color: #ACACAC;
  white-space: nowrap;
  gap: 8px;
}
.memo-item__reply-result .reply-result-info .reply-user {
  width: 70%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.memo-item__reply-result .reply-result-info .reply-date {
  width: 30%;
  text-align: end;
}
.memo-item__reply .reply-input {
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.memo-item__reply .reply-input__field {
  flex: 1;
  border: none;
  outline: none;
  font-size: 13px;
  padding: 6px 8px;
  border-radius: 4px;
  background: #fff;
}
.memo-item__reply .reply-input__field::-moz-placeholder {
  color: #bbb;
}
.memo-item__reply .reply-input__field::placeholder {
  color: #bbb;
}
.memo-item__reply .reply-input__actions {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: space-between;
}
.memo-item__reply .reply-input__actions__right {
  display: flex;
  gap: 2px;
  align-items: center;
}
.memo-item__reply .reply-input__icon {
  background: none;
  border: none;
  font-size: 14px;
  cursor: pointer;
  color: #666;
  padding: 4px;
}
.memo-item__reply .reply-input__icon:hover {
  color: #F5A32A;
}
.memo-item__reply .reply-input__send {
  background: #F5A32A;
  border: none;
  color: #fff;
  font-size: 12px;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.memo-item__reply .reply-input__send:hover {
  background: rgb(243.8565022422, 152.4798206278, 17.6434977578);
}
.memo-item .num {
  background: #F5A32A;
  color: #fff;
  width: 18x;
  height: 18px;
  min-width: 18px;
  border-radius: 50%;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}
.memo-item__text a {
  text-decoration: underline;
  color: #428BCA;
}
.memo-item .date {
  margin-bottom: 2px;
  color: #ACACAC;
}
.memo-item.is-active {
  background: #fff7bf;
  box-shadow: inset 4px 0 0 #ff4d4f;
}
.memo-item.is-active .num {
  background: #ff4d4f;
  color: #fff;
}

/* ===== Image Panel ===== */
.image-panel-title {
  background: #FFFFFF;
  border-radius: 12px;
  margin-bottom: 24px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  padding: 8px;
}
.image-panel-title h1 {
  font-size: 22px;
  font-weight: 700;
  color: #333333;
  line-height: 1.4;
  display: flex;
  align-items: center;
  gap: 12px;
  /* 長いファイル名の時 */
  overflow-x: auto;
  white-space: nowrap;
  padding-bottom: 4px;
  scrollbar-width: thin;
  scrollbar-color: #e5e7eb transparent;
}
.image-panel-title h1 i {
  color: #F5A32A;
}
.image-panel-title__name-input {
  min-width: 0;
  flex: 1 1 auto;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 2px 8px;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  color: inherit;
  background: transparent;
}
.image-panel-title__name-text {
  overflow: hidden;
  text-overflow: ellipsis;
}
.image-panel-title__name-group {
  min-width: 0;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 1 auto;
}
.image-panel-title__view-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #ffffff;
  color: #4b5563;
  cursor: pointer;
  flex: 0 0 auto;
  transition: all 0.2s ease;
}
.image-panel-title__view-button i {
  font-size: 12px;
}
.image-panel-title__view-button:hover:not(:disabled) {
  border-color: #f5a32a;
  color: #f5a32a;
}
.image-panel-title__view-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.image-panel-title__name-input:focus {
  border-color: #f5a32a;
  outline: none;
  background: #fffdf5;
}
.image-panel-title h1::-webkit-scrollbar {
  height: 6px;
}
.image-panel-title h1::-webkit-scrollbar-thumb {
  background: #e5e7eb;
  border-radius: 999px;
}
@media (max-width: 768px) {
  .image-panel-title h1 {
    font-size: 16px;
  }
}

.image-panel {
  width: 100%;
  padding: 16px;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow-y: auto;
  padding-right: 16px;
}
@media (max-width: 768px) {
  .image-panel {
    padding: 0px;
  }
}

.image-toolbar {
  padding: 12px;
  border-bottom: 1px solid #e5e5e5;
  background: #fff;
}

.image-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 6px;
  border: 1px dashed #E88A00;
  background: #FFFFFF;
  font-size: 13px;
  color: #E88A00;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.image-upload-btn i {
  font-size: 15px;
}
.image-upload-btn:hover {
  background: #eaf5f1;
  border-color: #2db784;
}

.image-canvas {
  overflow-x: hidden;
  position: relative;
  margin-bottom: 24px;
  background: #fff;
  padding: 16px;
  border-radius: 8px;
  text-align: center;
  /* 削除ボタン */
  /* ===== 表示状態 ===== */
  /* 鉛筆アイコン */
  /* ===== 編集状態 ===== */
  /* 状態切り替え用 */
}
.image-canvas-list {
  display: flex;
  flex-direction: column;
  gap: 80px;
  align-items: center;
}
.image-canvas:last-child {
  margin-bottom: 140px;
}
.image-canvas:hover .image-canvas__delete {
  opacity: 1;
  pointer-events: auto;
}
.image-canvas img {
  width: 800px;
  box-shadow: 0 2px 4px 4px rgba(0, 0, 0, 0.1);
}
@media (max-width: 992px) {
  .image-canvas img {
    width: 700px;
  }
}
@media (max-width: 768px) {
  .image-canvas img {
    width: 600px;
  }
}
@media (max-width: 576px) {
  .image-canvas img {
    width: 100%;
  }
}
.image-canvas .image-canvas__name-wrap {
  position: relative;
  margin-bottom: 16px;
}
.image-canvas .image-canvas__delete {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  font-size: 18px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, color 0.2s, background 0.2s;
}
.image-canvas .image-canvas__delete:hover {
  color: #d9534f;
  background: #fff;
}
.image-canvas .image-canvas__name {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #333;
  margin: 0;
  padding: 4px 6px;
  border-radius: 4px;
  cursor: pointer;
}
.image-canvas .image-canvas__name:hover {
  background: #f0f0f0;
}
.image-canvas .image-canvas__name:hover .image-canvas__edit-icon {
  opacity: 1;
}
.image-canvas .image-canvas__name-text {
  max-width: 300px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.image-canvas .image-canvas__edit-icon {
  font-size: 12px;
  color: #999;
  opacity: 0;
  transition: opacity 0.2s;
}
.image-canvas .image-canvas__name-input {
  width: 100%;
  font-size: 13px;
  padding: 4px 6px;
  border-radius: 4px;
  border: 1px solid #F5A32A;
  outline: none;
  color: #333;
}
.image-canvas .image-canvas__name-input:focus {
  box-shadow: 0 0 0 2px rgba(45, 183, 132, 0.15);
}
.image-canvas .is-hidden {
  display: none;
}

/* 編集メモ　*/
.highlight-area {
  position: absolute;
  z-index: 2;
  background: rgba(255, 120, 120, 0.18);
  border: 2px solid #ff4d4f;
  border-radius: 4px;
  box-shadow: 0 0 0 2px rgba(255, 77, 79, 0.15);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}

.highlight-area.is-active {
  opacity: 1;
}

.marker {
  position: absolute;
  z-index: 5;
}
.marker.is-active .marker-editor {
  display: block;
}

.marker-num {
  width: 24px;
  height: 24px;
  background: #ff6b6b;
  color: #fff;
  border-radius: 50%;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ===== 編集UI ===== */
.marker-editor {
  position: absolute;
  top: 32px;
  left: 320px;
  width: 260px;
  background: #fff;
  border: 2px solid #f5b041;
  border-radius: 8px;
  padding: 10px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
  display: none;
}
@media (max-width: 768px) {
  .marker-editor {
    left: 60px;
  }
}
.marker-editor::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 12px;
  border-width: 0 8px 8px 8px;
  border-style: solid;
  border-color: transparent transparent #f5b041 transparent;
}

.marker-editor__close {
  position: absolute;
  top: 6px;
  right: 6px;
  border: none;
  background: none;
  cursor: pointer;
  color: #999;
}

/* ツールバー */
.marker-editor__toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.marker-editor__toolbar .tool-btn {
  padding: 4px 8px;
  font-size: 12px;
  border-radius: 4px;
  border: 1px solid #ddd;
  background: #f9f9f9;
}
.marker-editor__toolbar .tool-btn.is-active {
  background: #fff3cd;
  border-color: #f5b041;
}

.color-palette {
  display: flex;
  gap: 4px;
}
.color-palette .color {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  cursor: pointer;
  border: 1px solid #ccc;
}
.color-palette .color.is-active {
  outline: 2px solid #333;
}

/* 書式 */
.marker-editor__format {
  display: flex;
  gap: 6px;
  margin-bottom: 6px;
}
.marker-editor__format button {
  width: 28px;
  height: 28px;
  font-size: 13px;
  border: 1px solid #ddd;
  background: #f9f9f9;
  border-radius: 4px;
  cursor: pointer;
}
.marker-editor__format button.is-dashed {
  border-style: dashed;
}

/* テキスト */
.marker-editor__textarea {
  width: 100%;
  min-height: 80px;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 6px;
  font-size: 13px;
  resize: none;
  margin-bottom: 8px;
}

/* フッター */
.marker-editor__footer {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.marker-editor__footer .attach-btn {
  font-size: 12px;
  background: #f1f1f1;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 6px 10px;
  cursor: pointer;
}
.marker-editor__footer .save-btn {
  font-size: 12px;
  background: #f5b041;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 6px 12px;
  cursor: pointer;
}

/* ===== Annotation Editor ===== */
.memo-editor {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}
.memo-editor textarea {
  flex: 1;
  resize: none;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

/* ===== AI Panel ===== */
.ai-panel {
  width: 300px;
  background: #fff;
  border-left: 1px solid #e6e6e6;
  padding: 16px;
  display: flex;
  flex-direction: column;
}
.ai-panel__title {
  display: flex;
  gap: 4px;
  align-items: center;
  font-weight: 700;
  margin-bottom: 8px;
  padding: 10px 12px;
  background: #f6f8f7;
}
.ai-panel__title i {
  font-size: 18px;
  color: #F5A32A;
}

.ai-all-text-box {
  margin-top: 40px;
  padding: 12px;
  border-radius: 8px;
  background: #fffdf5;
  border: 1px solid #f0e2b6;
  font-size: 13px;
}

/* ヘッダー */
.ai-all-text-box__head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 10px;
}

/* カテゴリ表示 */
.ai-ctg-box {
  margin-bottom: 24px;
}
.ai-ctg-box__category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
}
.ai-ctg-box__category .ai-ctg-list {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.ai-ctg-box__category .ai-ctg-list__item {
  display: inline-block;
  color: #E88A00;
  background: rgba(245, 163, 42, 0.14);
  border: 1px solid rgba(245, 163, 42, 0.25);
  color: #E88A00;
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 600;
}
.ai-ctg-box__category .category-change-btn {
  white-space: nowrap;
  font-size: 11px;
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
}
.ai-ctg-box__category .category-change-btn i {
  margin-right: 4px;
}
.ai-ctg-box__category .category-change-btn:hover {
  text-decoration: underline;
}

/* 総括ボタン */
.btn-all-text {
  width: 100%;
  background: #f5b041;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px;
  font-size: 12px;
  cursor: pointer;
}
.btn-all-text i {
  margin-right: 6px;
}
.btn-all-text:hover {
  opacity: 0.9;
}

/* チェックリスト */
.check-list {
  margin-top: 10px;
  padding-left: 0;
  list-style: none;
}
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #b42318;
}
.check-list li i {
  margin-top: 2px;
}
.check-list.is-warning {
  border-top: 1px dashed #f0c36d;
  padding-top: 8px;
}

/* 問題なし表示 */
.check-result-ok {
  margin-top: 10px;
  color: #2e7d32;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.ai-box {
  display: none;
}
.ai-box h3 {
  font-size: 14px;
  line-height: 1.3;
  padding: 2px 4px;
  background-color: #FFFFFF;
  border-left: 3px solid #F5A32A;
  margin-bottom: 8px;
  font-weight: 700;
}
.ai-box.is-active {
  display: block;
}
.ai-box__textarea {
  background: #f3f7f6;
  padding: 12px;
  border-radius: 6px;
  font-size: 13px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@keyframes fade {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* ===== Buttons ===== */
.btn-primary {
  background: linear-gradient(to right, #FEC32B, #FEA826);
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
}
.btn-all-text {
  background: #FFFFFF;
  border: 1px solid #D9D9D9;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #E88A00;
  gap: 4px;
  margin-bottom: 8px;
}
.btn-all-text img {
  width: 20px;
}

.btn-outline {
  background: #FFFFFF;
  border: 1px solid #D9D9D9;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #E88A00;
  gap: 4px;
}
.btn-outline img {
  width: 20px;
}

.full {
  width: 100%;
}

/* =========================
  HEADER BUTTON
========================= */
.header-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  height: 36px;
  border-radius: 10px;
  border: none;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease, opacity 0.15s ease;
}
.header-btn i {
  font-size: 13px;
}
.header-btn:active {
  transform: translateY(1px);
}

/* ===== Primary（編集する） ===== */
.header-btn--primary {
  background: linear-gradient(to right, #FEC32B, #FEA826);
  color: #fff;
  box-shadow: 0 6px 14px rgba(245, 163, 42, 0.35);
}
@media (max-width: 768px) {
  .header-btn--primary {
    font-size: 12px;
  }
}
.header-btn--primary:hover {
  filter: brightness(0.95);
  box-shadow: 0 8px 18px rgba(245, 163, 42, 0.45);
}
.header-btn--primary:active {
  box-shadow: 0 4px 10px rgba(245, 163, 42, 0.35);
}

.upload-img-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* =========================
   閉じる
========================= */
@media (max-width: 1024px) {
  .detail-layout {
    grid-template-columns: 1fr;
  }
  .panel-shell--memo,
  .panel-shell--ai {
    display: none;
  }
  .memo-panel,
  .ai-panel {
    display: none;
  }
  .page-main {
    width: 100%;
  }
}
@media (max-width: 1024px) {
  .memo-panel,
  .ai-panel {
    display: block;
    position: fixed;
    top: 0;
    height: 100dvh;
    width: 320px;
    background: #fff;
    z-index: 1000;
    overflow-y: auto;
    transition: transform 0.3s ease;
  }
  /* メモ（左） */
  .memo-panel {
    left: 0;
    transform: translateX(-100%);
  }
  .memo-panel.is-open {
    transform: translateX(0);
  }
  /* AI（右） */
  .ai-panel {
    right: 0;
    transform: translateX(100%);
  }
  .ai-panel.is-open {
    transform: translateX(0);
  }
}
.panel-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.1);
  z-index: 900;
}

.panel-overlay.is-hidden {
  display: none;
}

.tablet-action {
  display: none;
}
@media (max-width: 1024px) {
  .tablet-action {
    display: flex;
    gap: 12px;
    position: fixed;
    bottom: 16px;
    right: 16px;
    z-index: 1100;
  }
}
.tablet-action__btn {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}
.tablet-action__btn i {
  color: #F5A32A;
}

/* =========================
   Users
========================= */
.users__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.users__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: #333333;
}
.users__title i {
  color: #F5A32A;
}
.users__invite-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  font-size: 14px;
  border-radius: 8px;
  border: none;
  color: #FFFFFF;
  font-weight: 700;
  background: linear-gradient(to right, #FEC32B, #FEA826);
  cursor: pointer;
}
/* =========================
   Table
========================= */
.users__table-wrap {
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  overflow: auto;
  /* ===== スクロール共通 ===== */
  scrollbar-width: thin; /* Firefox */
  scrollbar-color: #e5e7eb transparent;
  /* ===== Webkit（Chrome / Safari） ===== */
}
.users__table-wrap::-webkit-scrollbar {
  height: 8px;
  width: 8px;
}
.users__table-wrap::-webkit-scrollbar-track {
  background: transparent;
}
.users__table-wrap::-webkit-scrollbar-thumb {
  background-color: #e5e7eb;
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: content-box;
}
.users__table-wrap::-webkit-scrollbar-thumb:hover {
  background-color: #d1d5db;
}

.users-table {
  width: 100%;
  border-collapse: collapse;
  background: #FFFFFF;
  border-radius: 12px;
  overflow: hidden;
}
.users-table__title {
  border-bottom: 1px solid #e5e5e5 !important;
}
.users-table thead {
  background: #f9fafb;
  transition: background 0.2s ease;
}
.users-table th, .users-table td {
  padding: 14px 16px;
  font-size: 14px;
  text-align: left;
  white-space: nowrap;
}
@media (max-width: 768px) {
  .users-table th, .users-table td {
    font-size: 11px;
  }
}
.users-table tr {
  border-bottom: 1px solid #e5e5e5;
}
.users-table tr:last-child {
  border-bottom: 0px;
}
.users-table th {
  font-weight: 600;
  color: #666666;
}
.users-table tbody tr:hover {
  background: #FFF4E5;
}
.users-table__actions {
  text-align: right;
}

.user-name {
  font-weight: 600;
}

/* =========================
   Badges
========================= */
.role-badge {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
.role-badge--admin {
  background: #fee2e2;
  color: #b91c1c;
}
.role-badge--checker {
  background: #e0f2fe;
  color: #0369a1;
}

.status-badge {
  border-radius: 999px;
  font-weight: 600;
}
.status-badge--active {
  background: #dcfce7;
  color: #166534;
}
.status-badge--inactive {
  background: #f3f4f6;
  color: #6b7280;
}

/* =========================
   Icon Button
========================= */
.icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: #6b7280;
}
.icon-btn:hover {
  background: #f3f4f6;
  color: #333333;
}
.icon-btn i {
  font-size: 14px;
}

/* =========================
  Rules Page
========================= */
.rules__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
@media (max-width: 768px) {
  .rules__header {
    flex-direction: column;
  }
}
.rules__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: #333333;
}
.rules__title i {
  color: #F5A32A;
  font-size: 18px;
}

/* =========================
  Filter
========================= */
.rules-filter {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0 18px;
  /* ▼アイコン（select右） */
  position: relative;
}
.rules-filter__select {
  -moz-appearance: none;
       appearance: none;
  -webkit-appearance: none;
  width: 280px;
  max-width: 100%;
  padding: 10px 38px 10px 14px;
  font-size: 14px;
  color: #333333;
  border-radius: 10px;
  border: 1px solid #e5e5e5;
  background: #fff;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.05s ease;
}
.rules-filter__select:hover {
  border-color: rgba(245, 163, 42, 0.55);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.06);
}
.rules-filter__select:focus {
  outline: none;
  border-color: rgba(245, 163, 42, 0.8);
  box-shadow: 0 0 0 4px rgba(245, 163, 42, 0.18);
}
.rules-filter::after {
  content: "";
  position: absolute;
  top: 40%;
  left: 260px;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-right: 2px solid #666666;
  border-bottom: 2px solid #666666;
  rotate: 45deg;
  pointer-events: none;
}

/* =========================
  Table Wrap
========================= */
.rules-table-wrap {
  background: #FFFFFF;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  overflow: auto;
  /* ===== スクロール共通 ===== */
  scrollbar-width: thin; /* Firefox */
  scrollbar-color: #e5e7eb transparent;
  /* ===== Webkit（Chrome / Safari） ===== */
}
.rules-table-wrap::-webkit-scrollbar {
  height: 8px;
  width: 8px;
}
.rules-table-wrap::-webkit-scrollbar-track {
  background: transparent;
}
.rules-table-wrap::-webkit-scrollbar-thumb {
  background-color: #e5e7eb;
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: content-box;
}
.rules-table-wrap::-webkit-scrollbar-thumb:hover {
  background-color: #d1d5db;
}

/* =========================
  Table
========================= */
.rules-table {
  width: 100%;
  border-collapse: collapse;
}
.rules-table thead th {
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  color: #666666;
  letter-spacing: 0.02em;
  padding: 12px 14px;
  background: #FFFFFF;
  border-bottom: 1px solid #e5e5e5;
  background: #f3f6f5;
}
.rules-table thead th.th-center {
  text-align: center;
}
@media (max-width: 768px) {
  .rules-table thead th {
    padding: 8px 12px;
  }
}
.rules-table tbody tr {
  border-bottom: 1px solid rgba(221, 221, 221, 0.7);
  transition: background 0.15s ease;
}
.rules-table tbody tr:hover {
  background: #FFF4E5;
}
.rules-table tbody tr:hover .rule-name {
  text-decoration: underline;
}
.rules-table tbody tr:hover .rule-category {
  background-color: #F5A32A;
  color: #FFFFFF;
}
.rules-table tbody tr:hover .rule-text {
  text-decoration: underline;
}
.rules-table tbody tr:last-child {
  border-bottom: none;
}
.rules-table tbody td {
  padding: 14px;
  font-size: 14px;
  color: #333333;
  vertical-align: top;
}
@media (max-width: 768px) {
  .rules-table tbody td {
    font-size: 12px;
    padding: 8px 12px;
  }
}
@media (max-width: 576px) {
  .rules-table tbody td {
    font-size: 11px;
  }
}

/* =========================
  Category pill
========================= */
.rule-name {
  min-width: 64px;
  font-weight: 700;
}
@media (max-width: 768px) {
  .rule-name {
    min-width: auto;
  }
}

.rule-category {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 700;
  white-space: nowrap;
  color: #E88A00;
  background: rgba(245, 163, 42, 0.14);
  border: 1px solid rgba(245, 163, 42, 0.25);
  font-size: 12px;
}
@media (max-width: 768px) {
  .rule-category {
    font-size: 10px;
  }
}

.rule-text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* =========================
  Rule content cell
========================= */
.rule-content {
  min-width: 280px;
  max-width: 280px;
}
@media (max-width: 576px) {
  .rule-content {
    min-width: 240px;
    max-width: 240px;
  }
}

.rule-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: #333333;
  text-decoration: none;
}

.rule-text {
  line-height: 1.55;
  color: #666666;
  /* 省略（2行） */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* =========================
  Actions
========================= */
.rule-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}

/*  */
.icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid #e5e5e5;
  background: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: #666666;
  transition: background 0.15s ease, transform 0.05s ease, border-color 0.15s ease;
}
@media (max-width: 576px) {
  .icon-btn {
    width: 28px;
    height: 28px;
  }
}
.icon-btn i {
  font-size: 14px;
}
@media (max-width: 576px) {
  .icon-btn i {
    font-size: 12px;
  }
}
.icon-btn:active {
  transform: translateY(1px);
}
.icon-btn.danger {
  color: #EC5F5F;
}
.icon-btn.danger:hover {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.3);
}

/* =========================
  btn-primary がない場合の保険
========================= */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  background: linear-gradient(to right, #FEC32B, #FEA826);
  box-shadow: 0 8px 16px rgba(245, 163, 42, 0.22);
  transition: filter 0.15s ease, transform 0.05s ease;
}
.btn-primary i {
  font-size: 14px;
}
.btn-primary:hover {
  filter: brightness(0.96);
}
.btn-primary:active {
  transform: translateY(1px);
}

/* =========================
   Rule Edit
========================= */
.rule-edit__header {
  margin-bottom: 24px;
}
.rule-edit__title {
  font-size: 20px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}
.rule-edit__title i {
  color: #F5A32A;
}
.rule-edit__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #FFFFFF;
  border-radius: 12px;
  padding: 24px;
  border: 1px solid #e5e5e5;
}
@media (max-width: 768px) {
  .rule-edit__form {
    padding: 24px 16px;
  }
}
.rule-edit__actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 32px;
}

/* フォーム共通 */
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.6;
  border-radius: 8px;
  border: 1px solid #e5e5e5;
  background-color: #FFFFFF;
  color: #333333;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.form-input::-moz-placeholder, .form-select::-moz-placeholder, .form-textarea::-moz-placeholder {
  color: #ACACAC;
}
.form-input::placeholder,
.form-select::placeholder,
.form-textarea::placeholder {
  color: #ACACAC;
}
.form-input:hover,
.form-select:hover,
.form-textarea:hover {
  background-color: #fffdf9;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: #F5A32A;
  box-shadow: 0 0 0 3px rgba(245, 163, 42, 0.2);
  background-color: #FFFFFF;
}
.form-input:disabled,
.form-select:disabled,
.form-textarea:disabled {
  background-color: #f3f4f6;
  color: #ACACAC;
  cursor: not-allowed;
}

/* textarea だけ追加調整 */
.form-textarea {
  min-height: 140px;
  resize: vertical;
}

/* select 専用（矢印をきれいに） */
.form-select {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg fill='none' stroke='%23666666' stroke-width='2' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px;
}

.form-help {
  margin-top: 6px;
  font-size: 12px;
  color: #6b7280;
}

li {
  list-style-type: none;
}

a {
  text-decoration: none;
  color: #333333;
}

/* ベースのフォントサイズ */
body {
  color: #333333;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
}/*# sourceMappingURL=style.css.map */