/* base.html */
/*サイドバーの色とスクロール*/
.scrollarea {
  height: 100%;
  width: 100%;
  min-height: 100%;
  overflow-x: auto;
  overflow-y: auto;
  background-color: #516C8D;
}

/*サイドバー部分の幅*/
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 240px;
  background: #343a40;
  color: #fff;
  z-index: 1000;
  overflow-y: auto;
  padding: 0;
  box-sizing: border-box;
}

/*メイン部分の幅*/
.main {
  margin-left: 240px;
  width: calc(100% - 240px); 
  background-color: #F0F0F0;
  padding: 60px 3% 1%;
}

/*サイドバーの開いてる画面のボタンを色づける*/
.currentPage {
  background-color: #0C0741;
  pointer-events: none;

  /*議事録履歴は色づけしない*/
  .minutes-history-row & {
    background-color: transparent !important;
  }
}

/*アクティブな議事録履歴に色づけ*/
.minutes-history-row:has(.currentPage) td {
  background-color: #1CA5B8;
  color: #ffffff;

  a {
    color: #ffffff;
  }
}

/*サイドバーのアコーディオン*/
summary {
  display: block;
}

/*サイドバーのアコーディオンのやじるじ*/
.icon {
  margin-left: 6px;
  flex-shrink: 0;
  transition: transform 0.4s;
}

/*サイドバーのアコーディオンのやじるじの動き*/
details[open] .icon {
  transform: rotate(180deg);
}

/*テーブルの文字位置*/
.table td {
  vertical-align: middle;
  padding: 1% 2%;
}

/*小さい文字（ホーム画面用でしたが他画面でも使いそうなのでbaseにいます。名前はできれば変えたい*/
.projectName {
  font-size: 75%;
}

/*リンクのデザイン*/
a {
  color: #1CA5B8;
  text-decoration: none;
}

/*必須バッジの色*/
.required_badge {
  background-color: #DB2843;
}

/* 青色ボタン（ベース） */
.design-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  min-width: 80px;
  padding-left: 10px;
  padding-right: 10px;
  background-color: #1CA5B8;
  color: #ffffff;
  border: 1px solid #838383;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s;
  text-align: center;
}

/* 青色ボタン（ホバー時） */
.design-button:hover,
.design-button-blue:hover {
  background-color: #178796;
}

/* 青色ボタン（明示的） */
.design-button-blue {
  background-color: #1CA5B8;
  color: #ffffff;
  border: 1px solid #838383;
}

/* 緑色ボタン */
.design-button-green {
  background-color: #8AC75A;
  color: #ffffff;
  border: 1px solid #838383;
}
.design-button-green:hover {
  background-color: #7AB549;
}

/* 赤色ボタン */
.design-button-red {
  background-color: #DB2843;
  color: #ffffff;
  border: 1px solid #838383;
}
.design-button-red:hover {
  background-color: #BC223A;
}

/* グレーボタン */
.design-button-gray {
  background-color: #838383;
  color: #ffffff;
  border: 1px solid #838383;
}
.design-button-gray:hover {
  background-color: #6c6c6c;
}

/* 緑色ボタン */
.design-button-green {
  background-color: #28a745;
  color: #ffffff;
  border: 1px solid #838383;
}
.design-button-green:hover {
  background-color: #218838;
}

/* 透明ボタン */
.design-button-transparent {
  background-color: transparent;
  color: #000000;
}
.design-button-transparent:hover {
  background-color: transparent;
  color: #000000
}

/*入力フォームの項目間のスペース*/
.form_element {
  margin-bottom: 2%
}

/*エラーメッセージ*/
.errorlist,
.error_message {
  color: #DB2843;
  margin: 0;
}

/* 一覧表示共通 */
.list_table {
  margin: 0;
}

.list_table th {
  color: white;
  background-color: #0C0741;
  border-bottom: none;
}

.list_table tbody td {
  word-break: break-all;
}

.list_table thead tr:first-child>*:first-child {
  border-top-left-radius: 10px;
}

.list_table thead tr:first-child>*:last-child {
  border-top-right-radius: 10px;
}

.list_table tbody tr:last-child>*:first-child {
  border-bottom-left-radius: 10px;
}

.list_table tbody tr:last-child>*:last-child {
  border-bottom-right-radius: 10px;
}

.list_table tbody tr:last-child>* {
  border-bottom: none;
}

.list_table tfoot td {
  opacity: 0;
}

/* テーブルマウスオーバー時 */
.table-hover th {
  color: white;
  background-color: #0C0741;
  border-bottom: none;
}

.table-hover tbody tr:last-child>*:first-child {
  border-radius: 0 0 0 10px;
  border-bottom: none;
}

.table-hover tbody tr:last-child>*:last-child {
  border-radius: 0 0 10px 0;
  border-bottom: none;
}

.tablehover_Content th {
  border-radius: 10px 10px 0 0;
}

.tablehover_Content {
  height: 350px;
  overflow-y: auto;
}

/* テーブルスクロール用 */
.table_scrol {
  overflow-y: auto;
  overflow-x: hidden;
  /*height: 80%; 25vh or 40vh or 80%*/
}

/* テーブルタイトル */
.table_title {
  position: sticky;
  top: 0;
  left: 0;
}

.table_icon {
  width: 10%;
}

.button_icon {
  padding: 0;
  background: transparent;
  border: none
}

/* 汎用 */
.height_100 {
  height: 100%;
}

.height_80 {
  height: 80%;
}

/* home.html */
.badge {
  background-color: #1CA5B8;
}

.tableContainer {
  height: 50%;
  display: flex;
  column-gap: 6%;
  padding: 0%;
  margin-bottom: 10%;
}

.homeTableScrol {
  width: 100%;
  overflow-y: auto;
  flex: 1; /* 残りの空間を占める */
  min-height: 300px; /* 最小高さを確保 */
  max-height: 350px; /* 最大高さを制限 */
}

.homeTableScrolContent {
  margin: 0;
} 

.homeTableTitle {
  width: 100%;
  height: 40.5px;
  padding-left: 2%;
  background-color: #0C0741;
  color: white;
  font-weight: bold;
  line-height: 40.5px;
  border-radius: 10px 10px 0 0;
}

.waku {
  width: 47%;
  height: 400px; /* タイトル（40.5px）+ スクロールエリア（350px）+ 余白 */
  display: flex;
  flex-direction: column;
}

.homeTableDate {
  width: 30%;
  font-size: 75%;
  background-color: #f8f9fa;
  border-right: 1px solid #dee2e6;
}

.projectName {
  font-size: 75%;
}

/* master-project */
.big_row {
  height: 50%;
}

/* create-master-user.html */
.notice {
  color: #999999;
  margin: 0;
}

.password_div {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.password_div button {
  position: absolute;
  right: 0;
  cursor: pointer;
  border: none;
  background: none;
}

/* 入力画面 */
.form-control.haserror {
  border-color: #DB2843;
  /* エラー時の枠線色 */
}

.form-select.haserror {
  border-color: #DB2843;
  /* エラー時の枠線色 */
}

.input-body>textarea {
  width: 100%;
}

.input-comments>textarea {
  width: 100%;
  height: 30vh;
}

.input-comments>pre {
  width: 100%;
  height: 30vh;
}

button[name="btn_submit"] {
  width: 100%;
}

a[name="minutes-button"] {
  width: 100%;
}

/* minutes-list.html ダウンロードリンク用 */
.dli-box-in {
  display: inline-block;
  vertical-align: middle;
  color: #333;
  line-height: 1;
  position: relative;
  width: 1.15em;
  height: 1.15em;
}

.dli-box-in::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 0.46em;
  border: 0.1em solid currentColor;
  border-top: 0;
  border-radius: 0 0 0.15em 0.15em;
  box-sizing: border-box;
}

.dli-box-in>span {
  position: relative;
  width: 0.1em;
  height: 0.625em;
  background: currentColor;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.353em;
  margin: auto;
}

.dli-box-in>span::before {
  content: '';
  width: 0.40625em;
  height: 0.40625em;
  border: 0.1em solid currentColor;
  border-top: 0;
  border-right: 0;
  transform: rotate(-45deg);
  transform-origin: bottom left;
  position: absolute;
  left: 50%;
  bottom: -0.05em;
  box-sizing: border-box;
}

.left {
  text-align: left;
  float: left;
}

.right {
  display: flex;
  justify-content: flex-end;
}

.download {
  border: none;
}

/* ロール列（1列目）のみ幅を固定、ユーザー名は可変 */
#user_table th.role-col,
#user_table td.role-col {
  min-width: 150px;
  width: 30%;
  white-space: nowrap;
}

/* ユーザー名列（2列目）は幅指定なしで可変 */
#user_table th.username-col,
#user_table td.username-col {
  width: auto;
  min-width: 300px;
  white-space: normal;
}

/* セレクトボックスの幅も固定 */
#user_table select.form-select[disabled] {
  width: 100%;
}

/* ==========================================
   ログイン画面のスタイル
========================================== */

.login-container {
    max-width: 400px;
    margin: 0 auto;
    padding: 0;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header h2 {
    color: #333;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.login-subtitle {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

.login-form {
    width: 100%;
}

.login-form .form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.login-form .form-label {
    font-weight: 500;
    color: #333;
    margin-bottom: 0.5rem;
    display: block;
}

.login-form .form-label i {
    margin-right: 0.5rem;
    color: #1CA5B8;
}

.login-form .input-group {
    position: relative;
}

.login-form .form-control {
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 100%;
    background-color: #fff;
    position: relative;
    z-index: 1;
    box-sizing: border-box;
}

.login-form .form-control:focus {
    border-color: #1CA5B8;
    box-shadow: 0 0 0 0.2rem rgba(28, 165, 184, 0.25);
    outline: none;
    z-index: 2;
}

.password-group {
    position: relative;
}

.password-group .form-control {
    padding-right: 2.5rem;
    border-radius: 8px;
}

.password-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    z-index: 3;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
}

.password-toggle:hover {
    color: #1CA5B8;
    background-color: rgba(28, 165, 184, 0.1);
}

.password-toggle:focus {
    outline: 2px solid #1CA5B8;
    outline-offset: 2px;
}

.login-form .input-feedback {
    font-size: 0.875rem;
    margin-top: 0.25rem;
    min-height: 1.2rem;
}

.login-form .input-feedback.valid {
    color: #28a745;
}

.login-form .input-feedback.invalid {
    color: #dc3545;
}

.login-form .button-container {
    text-align: center;
    margin: 2rem 0;
}

.login-form .btn-primary {
    background-color: #1CA5B8;
    border-color: #1CA5B8;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    min-width: 150px;
}

.login-form .btn-primary:hover {
    background-color: #178796;
    border-color: #178796;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(28, 165, 184, 0.3);
}

.login-form .btn-primary:disabled {
    background-color: #6c757d;
    border-color: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.login-footer {
    margin-top: 2rem;
    text-align: center;
}

.help-text {
    background-color: #f8f9fa;
    border-left: 4px solid #1CA5B8;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.help-text p {
    margin: 0;
    font-size: 0.875rem;
    color: #666;
}

.help-text i {
    color: #1CA5B8;
    margin-right: 0.5rem;
}

.login-form .alert {
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

/* ==========================================
   2段階認証画面のスタイル
========================================== */

.mfa-container {
    max-width: 400px;
    margin: 0 auto;
    padding: 0;
}

.mfa-header {
    text-align: center;
    margin-bottom: 2rem;
}

.mfa-header h2 {
    color: #333;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.mfa-form {
    width: 100%;
}

.mfa-form .form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.mfa-form .form-label {
    font-weight: 500;
    color: #333;
    margin-bottom: 0.5rem;
    display: block;
}

.mfa-form .form-label i {
    margin-right: 0.5rem;
    color: #1CA5B8;
}

.mfa-form .input-group {
    position: relative;
}

.mfa-form .form-control {
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 100%;
    background-color: #fff;
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    text-align: center;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.2em;
}

.mfa-form .form-control:focus {
    border-color: #1CA5B8;
    box-shadow: 0 0 0 0.2rem rgba(28, 165, 184, 0.25);
    outline: none;
    z-index: 2;
}

.mfa-form .button-container {
    text-align: center;
    margin: 2rem 0;
}

.mfa-form .btn-primary {
    background-color: #1CA5B8;
    border-color: #1CA5B8;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    min-width: 150px;
}

.mfa-form .btn-primary:hover {
    background-color: #178796;
    border-color: #178796;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(28, 165, 184, 0.3);
}

.mfa-form .btn-primary:disabled {
    background-color: #6c757d;
    border-color: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.mfa-help-text {
    background-color: #f8f9fa;
    border-left: 4px solid #1CA5B8;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

.mfa-help-text p {
    margin: 0;
    font-size: 0.875rem;
    color: #666;
}

.mfa-help-text i {
    color: #1CA5B8;
    margin-right: 0.5rem;
}

.mfa-help-text a {
    color: #1CA5B8;
    text-decoration: none;
}

.mfa-help-text a:hover {
    text-decoration: underline;
}

.mfa-form .alert {
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

/* 6桁認証コード用の個別インプットボックス */
.mfa-code-inputs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 1rem 0;
}

.mfa-code-input {
    width: 3rem;
    height: 3rem;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    text-align: center;
    font-size: 1.5rem;
    font-family: 'Courier New', monospace;
    font-weight: 600;
    transition: all 0.3s ease;
    background-color: #fff;
    box-sizing: border-box;
}

.mfa-code-input:focus {
    border-color: #1CA5B8;
    box-shadow: 0 0 0 0.2rem rgba(28, 165, 184, 0.25);
    outline: none;
    transform: scale(1.05);
}

.mfa-code-input.filled {
    background-color: #f8f9fa;
    border-color: #28a745;
}

.mfa-code-input.error {
    border-color: #dc3545;
    animation: shake 0.5s ease-in-out;
}

/* レスポンシブ対応 */
@media (max-width: 480px) {
    .mfa-code-inputs {
        gap: 0.3rem;
    }
    
    .mfa-code-input {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
  .homeTableDate {
    width: 60px !important;
    min-width: 60px !important;
  }
  
  .meeting-title a {
    font-size: 0.9rem;
  }
  
  .meeting-details small {
    font-size: 0.75rem;
  }
}

@media (max-width: 768px) {
    .login-container {
        padding: 0 1rem;
    }
    
    .container {
        width: 95% !important;
        padding: 1rem !important;
    }
    
    .login-header h2 {
        font-size: 1.5rem;
    }
    
    .mfa-container {
        padding: 0 1rem;
    }
    
    .mfa-header h2 {
        font-size: 1.3rem;
    }
}

/* アニメーション */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.login-form .form-control.error {
    border-color: #dc3545;
    animation: shake 0.5s ease-in-out;
}

/* readonly入力フィールドのスタイル */
input[readonly],
textarea[readonly],
select[readonly] {
    background-color: #f8f9fa !important;
    color: #6c757d !important;
    cursor: not-allowed !important;
    opacity: 0.8 !important;
}

/* readonly入力フィールドにフォーカスが当たった時のスタイル */
input[readonly]:focus,
textarea[readonly]:focus,
select[readonly]:focus {
    background-color: #f8f9fa !important;
    border-color: #ced4da !important;
    box-shadow: none !important;
}

/* Bootstrap form-controlクラスと組み合わせた場合のスタイル */
.form-control[readonly] {
    background-color: #f8f9fa !important;
    color: #6c757d !important;
    cursor: not-allowed !important;
    opacity: 0.8 !important;
}

.form-control[readonly]:focus {
    background-color: #f8f9fa !important;
    border-color: #ced4da !important;
    box-shadow: none !important;
}

/* ホーム画面カードヘッダー用カスタムカラー */
.bg-custom-primary {
    background-color: #0C0741 !important;
}

.bg-custom-secondary {
    background-color: #1CA5B8 !important;
}

.bg-custom-info {
    background-color: #5A6C82 !important; /* より落ち着いた情報色 */
}

/* ホーム画面のカードテーブルの角の丸み修正 */
.card .table-responsive-uncreated-scroll .table tbody tr:last-child td:first-child {
  border-bottom-left-radius: 0.375rem !important;
}

.card .table-responsive-uncreated-scroll .table tbody tr:last-child td:last-child {
  border-bottom-right-radius: 0.375rem !important;
}

.card .table-responsive .table tbody tr:last-child td:first-child {
  border-bottom-left-radius: 0.375rem !important;
}

.card .table-responsive .table tbody tr:last-child td:last-child {
  border-bottom-right-radius: 0.375rem !important;
}

/* テーブルが空の場合の角の丸み */
.card .table-responsive .table tbody tr:first-child:last-child td:first-child {
  border-bottom-left-radius: 0.375rem !important;
}

.card .table-responsive .table tbody tr:first-child:last-child td:last-child {
  border-bottom-right-radius: 0.375rem !important;
}

.card .table-responsive-uncreated-scroll .table tbody tr:first-child:last-child td:first-child {
  border-bottom-left-radius: 0.375rem !important;
}

.card .table-responsive-uncreated-scroll .table tbody tr:first-child:last-child td:last-child {
  border-bottom-right-radius: 0.375rem !important;
}

/* ホーム画面の会議情報カード改善 */
.meeting-info {
  line-height: 1.4;
}

.meeting-title a {
  color: #0C0741;
  font-size: 0.95rem;
}

.meeting-title a:hover {
  color: #1CA5B8;
  text-decoration: underline !important;
}

.meeting-details small {
  font-size: 0.8rem;
  line-height: 1.3;
}

.homeTableDate {
  background-color: #f8f9fa;
  border-right: 1px solid #dee2e6;
}

.x-small {
  font-size: 0.7rem;
}

/* カード内のテーブル行のホバー効果改善 */
.card .table-hover tbody tr:hover {
  background-color: rgba(28, 165, 184, 0.05);
}

.card .table-hover tbody tr:hover .homeTableDate {
  background-color: rgba(28, 165, 184, 0.1);
}

/* 空の状態のアイコン調整 */
.empty-state-icon {
  font-size: 2rem;
  opacity: 0.3;
}

/* クリック可能な行のスタイル */
.clickable-row {
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.clickable-row:hover {
  background-color: rgba(28, 165, 184, 0.08) !important;
}

.clickable-row:hover .homeTableDate {
  background-color: rgba(28, 165, 184, 0.15) !important;
}

/* 行全体がリンクの場合の会議名スタイル */
.clickable-row .meeting-title span {
  color: #0C0741;
  transition: color 0.2s ease;
}

.clickable-row:hover .meeting-title span {
  color: #1CA5B8;
}

/* サイドバーのナビゲーション全体の幅制御 */
.sidebar .nav {
  width: 100%;
  max-width: 240px;
}

.sidebar .nav-item {
  width: 100%;
  max-width: 240px;
}

/* サイドバーのプロジェクト名省略表示 */
.sidebar .nav-link {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  padding-left: 1rem;
  padding-right: 0.75rem;
}

/* サイドバーの全てのボタン共通スタイル */
.sidebar .nav-link.sidebarButton {
  padding-left: 1rem; /* 全てのサイドバーボタンを左側に統一 */
  padding-right: 0.75rem;
  display: block;
  width: 100%;
  max-width: 240px;
  box-sizing: border-box;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 議事録一覧のネストされたプロジェクト名専用 */
.sidebar details ul .nav-link.sidebarButton {
  padding-left: 2.25rem; /* ネストされたリンクのみインデント */
  padding-right: 0.75rem;
}

/* プロジェクト名のtitle属性追加用（ホバー時に全文表示） */
.sidebar .nav-link.sidebarButton:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* サイドバー内のdetailsとsummary */
.sidebar details {
  width: 100%;
}

.sidebar summary {
  width: 100%;
  box-sizing: border-box;
}

/* プロジェクト一覧のプロジェクト名省略表示 */
#p_dataTable td:first-child {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px; /* プロジェクト名の最大幅を制限 */
}

#p_dataTable td:first-child a {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  width: 100%;
}

/* プロジェクト一覧の操作列スタイル */
#p_dataTable th:nth-child(5),
#p_dataTable td:nth-child(5) {
  text-align: center;
  white-space: nowrap;
  padding: 0.5rem;
}

#p_dataTable td:nth-child(5) div {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

#p_dataTable td:nth-child(5) a,
#p_dataTable td:nth-child(5) button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

#p_dataTable td:nth-child(5) a:hover,
#p_dataTable td:nth-child(5) button:hover {
  transform: scale(1.1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* ==== 共通スタイル ==== */

/* カードスタイル（白背景・角丸・影付き） */
.card-style {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e5e5;
}

.card-style-padded {
  padding: 20px;
}

.card-style-overflow-hidden {
  overflow: hidden;
}

/* テーブルコンテナ用スタイル（スクロール可能） */
.card-style-table-container {
  overflow-y: auto;
}

/* 入力フィールドの共通スタイル */
.form-input-rounded {
  border-radius: 8px;
  border: 1px solid #ddd;
  padding: 8px 12px;
}

.form-input-full-width {
  width: 100%;
}

/* モーダル用共通スタイル */
.modal-overlay {
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content-styled {
  background-color: #fefefe;
  margin: 10% auto;
  padding: 0;
  border: 1px solid #888;
  width: 50%;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.modal-header-styled {
  padding: 20px;
  border-bottom: 1px solid #e5e5e5;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-body-styled {
  padding: 20px;
}

.modal-close-button {
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  color: #aaa;
}

.modal-close-button:hover,
.modal-close-button:focus {
  color: #000;
  text-decoration: none;
}

/* ドラッグ&ドロップエリア */
.drop-zone-styled {
  border: 2px dashed #ccc;
  border-radius: 8px;
  padding: 40px;
  text-align: center;
  transition: all 0.3s ease;
  background-color: #f9f9f9;
}

.drop-zone-styled:hover {
  border-color: #007bff;
  background-color: #f0f8ff;
}

.drop-zone-styled.dragover {
  border-color: #007bff;
  background-color: #e3f2fd;
}

.drop-zone-content p {
  margin-bottom: 15px;
  color: #666;
}

/* ボタン内のSVGアイコンスタイル */
.design-button svg {
  fill: currentColor;
  vertical-align: middle;
}