/* 
  共通 ---------------------------------------------------------------------------
*/
/* all.cssからベースの色変更 */
header {
  background-color:#817d6a !important;
}
footer {
  padding-top: 15px;
  padding-bottom: 15px;
  background-color:#817d6a !important;
}
footer .nav .dropdown-menu {
  background-color: #817d6a !important;
}
.btn.btn-url-copy:hover:before, .btn.btn-url-copy:focus:before, .btn.btn-url-copy:active:before {
  color: #817d6a !important;
}
.table.table-bordered thead th, .table-bordered.price-table thead th {
  background-color: #817d6a !important;
}
header #navbarNav .navbar-nav .dropdown-menu {
  background-color: #817d6a !important;
}
.index-lead {
  color: #817d6a !important;
}
.btn.btn-logout {
  --bs-btn-color: #817d6a !important;
  background: #817d6a;
  color: #fff;
}
.btn.btn-logout:hover {
  background: #fff;
  color: #817d6a;
}
/* 入力欄のplaceholder文字色を薄く */
.form-control::placeholder {
  color: #ccc;
  opacity: 1;
}

input::placeholder,
textarea::placeholder,
select::placeholder {
  color: #ccc;
  opacity: 1;
}

/* disabled */
input:disabled {
  cursor: not-allowed;
}
.btn:disabled,
.btn.disabled,
fieldset:disabled .btn {
  color:#999999;
  pointer-events:none;
  background-color: #E0E0E0;
  border-color: #E0E0E0;
  opacity:var(--bs-btn-disabled-opacity);
}
.cursor-disabled {
  cursor: not-allowed;
}
.plan-disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
/*　warp */
main .title-wrap {
  padding-top: 15px !important;
  padding-bottom: 25px !important;
}
.container-narrow-wrap {
  padding-top: 35px;
  max-width: calc(550px + 44px);
}

/* タイトル */
main .title-wrap h1 {
/*  color: #555; */
  font-size: 1.7rem;
}
main .section-title {
  font-size: 0.95rem;
}

/* delボタン */
.btn-delete:hover,.btn-delete:focus, .btn-delete:active {
  background-color: transparent;
  opacity: 0.7;
}

/* ？ボタン（ヘルプ） */
.btn.btn-q {
	top: -2px;
	position: relative;
    margin-left: 2px;
}

/* エラーメッセージ */
.error-text {
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: block;
}
.form-control.is-invalid {
  border-color: #dc3545;
}
.error-container {
  max-width: 600px;
  margin: 50px auto;
  padding: 30px;
  text-align: center;
}

/* pointerアイコン */
.pointer-icon {
  cursor: pointer;
}

/* otp認証 */
.otp-code-input {
  font-size: 1.5rem;
  letter-spacing: 0.5rem;
  text-align: center;
  font-weight: 600;
}

/* Googleログインボタン */
.google-btn {
  width: 100%;
  height: 41px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #fff;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 500;
  color: #848484;
  cursor: pointer;
  transition: all 0.2s;
  padding: 0 16px;
}
.google-btn:hover {
  background: #f8f9fa;
  border-color: #dadce0;
  box-shadow: 0 1px 2px 0 rgba(60,64,67,.3), 0 1px 3px 1px rgba(60,64,67,.15);
}
.google-btn:active {
  background: #f1f3f4;
  border-color: #dadce0;
}

.google-btn-unlink {
    background: #f8f9fa;
    border-color: #dc3545;
    color: #dc3545;
}

/* マイページのGoogle連携セクション内ボタン */
.google-link-section .google-btn {
    width: auto;
    white-space: nowrap;
}
.google-btn-unlink:hover {
    background: #dc3545;
    color: #fff;
    border-color: #dc3545;
}

.link_underline {
  text-decoration: underline;
  color: #0066cc;
}

/* ページ読み込みローディング */
.page-loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
}

/* ローディング */
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-spinner {
    text-align: center;
    color: white;
}

.loading-spinner .spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: 0.3rem;
}

.loading-text {
    font-size: 1.1rem;
    font-weight: 500;
    color: white;
    margin-top: 1rem;
}

div.tooltip-inner {
    /* max-width: 200px; */
    text-align: left;
}

.file-icon-normal.file-icon-lg {
  background-image:url(../img/ico_file_normal_lg.svg)
}
.detail-panel__body .file-users {
  margin-bottom: 0.1em !important;
}
.detail-panel__body .file-cards .card .file-status {
  padding-bottom: 0.3rem !important;
}
/*
  共通ここまで ---------------------------------------------------------------------------
*/

/* 外部向けヘッダで文字が折り返されるので、調整 */
/* ナビゲーションリンクの折り返し防止 */
header .navbar-nav .nav-item {
  white-space: nowrap;
}
/* 幅992px〜1300pxでナビゲーションをコンパクトに */
@media (min-width: 992px) and (max-width: 1300px) {
  header #navbarNav .navbar-nav a.nav-link {
    font-size: 1.0rem;
    padding-left: 0.4rem;
    padding-right: 0.4rem;
  }
  header .navbar-nav .btn-login {
    font-size: 1.0rem;
    padding: 0.6rem 0.6rem;
  }
}

/*
  （共通）ログイン・OPT・新規登録・パスワード再設定・マイページ -------------------------------------------------------------------------------
*/
@media(min-width: 768px) {
  main .auth-inner-content {
    padding-left:62px !important;
    padding-right:62px !important;
    padding-top:30px !important;
    padding-bottom:30px !important;
  }
}
@media(min-width: 992px) {
  .auth-main {
    padding-bottom:0px !important;
  }
}
.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 30px 0;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #d9d9d9;
}

.auth-divider span {
  padding: 0 16px;
  color: #848484;
  font-size: 0.875rem;
}

.auth-inner-content .btn-accent {
  width: 100%;
}
.auth-inner-content .btn-sub-accent {
  width: 40% !important;
}
.auth-inner {
  padding-top: 0px !important;
  padding-bottom: 0px !important;
}

.auth-text {
  color: #606c6c;
  font-size: 0.875rem;
  margin-top: 24px;
  margin-bottom: 0;
}

.auth-link {
  color: #0066cc;
  text-decoration: underline;
  font-weight: 500;
}

.auth-link:hover {
  color: #0052a3;
  text-decoration: underline;
}

.back-btn-login {
  color: #0066cc;
  font-weight: 500;
  font-size: 0.875rem;
}
.back-btn-login:hover {
  color: #0052a3;
}
/*
  （共通）ログイン・OPT・新規登録・パスワード再設定・マイページここまで -------------------------------------------------------------------------------
*/


/*
  マイページ・会社設定 -------------------------------------------------------------------------------
*/
.setting-btn-group {
  display: flex;
  justify-content: center;
  gap: 16px;
}
/*
  マイページ・会社設定ここまで -------------------------------------------------------------------------------
*/


/*
  会社設定 -------------------------------------------------------------------------------
*/
/* ユーザーテーブル */
#user-table tbody tr{
    cursor: pointer;
}
.user-table-mail {
    width: 35%;
}
.user-table-name {
    width: 25%;
}
.user-table-status {
    width: 15%;
}
.user-table-operation {
    width: 10%;
}
.btn-new-user {
    font-size: 16px;
}
@media (max-width: 767px) {
    #user-table thead {
        display: none;
    }

    #user-table tbody tr {
        display: block;
        margin-bottom: 20px;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        background: #fff;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    }

    #user-table tbody tr.user-row-clickable:hover {
        background-color: #fff;
        box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    }

    #user-table tbody td {
        display: flex;
        justify-content: space-between;
        padding: 12px 16px;
        border-bottom: 1px solid #f0f0f0;
        text-align: right;
        cursor: pointer;
    }

    #user-table tbody td:last-child {
        border-bottom: none;
    }

    #user-table tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #555;
        text-align: left;
        flex: 0 0 40%;
    }

    .btn-new-user {
        font-size: 0.9rem;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    #user-table thead th {
        font-size: 0.8rem;
        padding: 12px 8px;
    }

    #user-table tbody td {
        font-size: 0.8rem;
        padding: 12px 8px;
        cursor: pointer;
    }

    .btn-new-user {
        font-size: 15px;
    }
}
/*
  会社設定ここまで -------------------------------------------------------------------------------
*/


/*
  ダウンロード関連 -------------------------------------------------------------------------------
*/
.download-content {
  text-align: center;
  padding: 60px 40px;
}
.download-message {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 15px;
  font-weight: 500;
}
.filename {
  font-weight: bold;
  color: #0066cc;
  word-break: break-all;
  margin-bottom: 30px;
  font-size: 1.1rem;
}
.download-note {
  font-size: 0.9rem;
  color: #6c757d;
  margin-top: 30px;
  line-height: 1.6;
}
.download-note a {
  color: #0066cc;
  text-decoration: underline;
}
.download-note a:hover {
  color: #0052a3;
  text-decoration: underline;
}

/* スピナー（くるくる） */
.spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #39f;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  margin: 0 auto 30px;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
/*
  ダウンロード関連ここまで -------------------------------------------------------------------------------
*/


/*
  アップロード関連 -------------------------------------------------------------------------------
*/
.upload-drag-over {
    border-color: #848484;
    background-color: #ebebeb;
}

.upload-selected-file-item {
    background-color: #fff;
    border: 1px solid #dee2e6;
    padding: 10px 15px;
    margin-bottom: 8px;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.upload-selected-file-item.selected-file-error {
    background-color: #fff5f5;
    border-color: #dc3545;
}

.upload-progress-container {
    margin-top: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.upload-status {
    text-align: center;
    font-weight: bold;
}
/*
  アップロード関連ここまで -------------------------------------------------------------------------------
*/

/*
  （共通）運営・FAQ・プライバシーポリシー・お問合せ-------------------------------------------------------------------------------
*/
.info-container, .terms-container, .privacy-container {
  max-width: 800px;
  margin: 40px auto;
  padding: 20px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.info-header, .terms-header, .privacy-header {
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 2px solid #e9ecef;
}

.info-header h1, .terms-header h1, .privacy-header h1 {
  font-size: 2rem;
  margin-bottom: 10px;
  color: rgb(85, 85, 85);
}

.info-section {
  margin-bottom: 30px;
}

.info-section h2, .terms-section h2, .privacy-section h2 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: rgb(92, 92, 92);
  border-left: 5px solid #39f;
  padding-left: 12px;
}

.info-section h3 {
    font-size: 1.2rem;
    margin-top: 25px;
    margin-bottom: 15px;
    color: #495057;
}

.info-section p {
  line-height: 1.8;
  color: #6B7280;
  margin-bottom: 12px;
}

.info-company-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}

.info-company-table th,
.info-company-table td {
  padding: 12px;
  border: 1px solid #dee2e6;
  text-align: left;
}

.info-company-table th {
  background-color: #f8f9fa;
  font-weight: 600;
  width: 25%;
}

.info-company-table td {
  background-color: white;
}
/*
  （共通）運営・FAQ・プライバシーポリシー・お問合せここまで -------------------------------------------------------------------------------
*/


/*
  FAQ -------------------------------------------------------------------------------
*/
/* 目次ナビゲーション */
.faq-item {
  margin-bottom: 15px;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  overflow: hidden;
}

.faq-question {
  padding: 20px;
  background-color: #f8f9fa;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s;
}

.faq-question:hover {
  background-color: #e9ecef;
}

.faq-question.active {
  background-color: #39f;
  color: white;
}

.faq-question-text {
  font-weight: bold;
  font-size: 1.1rem;
}

.faq-question-icon {
  font-size: 1.5rem;
  transition: transform 0.3s;
}

.faq-question.active .faq-question-icon {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 20px;
  background-color: white;
  display: none;
  line-height: 1.8;
}

.faq-answer p {
  margin-bottom: 10px;
}
.faq-navigation {
  border-radius: 8px;
  padding: 20px 0px;
  margin-bottom: 40px;
}

.faq-nav-title {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: #1E40AF;
  display: none;
}

.faq-nav-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}

.faq-nav-list li {
  margin-bottom: 0;
  font-size: 0.85rem;
}

.faq-nav-list a {
  display: block;
  padding: 10px 15px;
  background-color: white;
  border: 1px solid #dee2e6;
  border-radius: 5px;
  color: #39f;
  text-decoration: underline;
  transition: all 0.3s;
}

.faq-nav-list a:hover {
  background-color: #39f;
  color: white;
  transform: translateX(5px);
}

/* FAQ - リスト内のスタイリング改善 */
.faq-answer ul, .faq-answer ol {
  margin-top: 10px;
  padding-left: 25px;
}

.faq-answer li {
  margin-bottom: 8px;
}

.faq-contact-section {
  margin-top: 50px;
  padding: 30px;
  background-color: #f8f9fa;
  border-radius: 8px;
  text-align: center;
}

.faq-contact-section h3 {
  margin-bottom: 15px;
}
/*
  FAQ ここまで -------------------------------------------------------------------------------
*/

/*
  利用規約・プライバシーポリシー -------------------------------------------------------------------------------
*/
.terms-section, .privacy-section {
  margin-top: 30px;
  margin-bottom: 60px;
}
.terms-section h3 {
  font-size: 1.2rem;
  margin-top: 25px;
  margin-bottom: 15px;
  color: #495057;
}

.terms-section p,
.terms-section li {
  line-height: 1.8;
  color: #495057;
  margin-bottom: 10px;
}

.terms-section ol {
  padding-left: 25px;
}

.terms-section ol li {
  margin-bottom: 15px;
}

.terms-section ul {
  padding-left: 25px;
  list-style-type: disc;
}

.terms-important-notice, .privacy-important-notice {
  background-color: #fff3cd;
  border-left: 4px solid #ffc107;
  padding: 15px;
  margin: 20px 0;
}

.terms-important-notice p, .privacy-important-notice p {
  margin-bottom: 0;
  color: #856404;
}

.terms-update-history, .privacy-update-history {
  font-size: 0.9rem;
  color: #6c757d;
  margin-top: 50px;
}

.terms-ex-link-container {
  max-width: 800px;
  margin: 50px auto;
  padding-left: 15px;
}
.terms-ex-link-container a {
  color: #777463 !important;
}

.privacy-contact-info {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-top: 40px;
}

.privacy-contact-info h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

/* メールアドレスをテキスト風に表示（スパムボット対策） */
.email-img::before {
    content: attr(data-u) "@" attr(data-d);
    user-select: none;
    -webkit-user-select: none;
    cursor: default;
}

#agree {
    width: 24px;
    height: 24px;
    cursor: pointer;
    vertical-align: middle;
    position: relative;
    top: -2px;
}

label[for="agree"], label:has(#agree) {
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 24px;
}
/*
  利用規約・プライバシーポリシー ここまで -------------------------------------------------------------------------------
*/


/*
  お問合せ -------------------------------------------------------------------------------
*/
.contact-form {
    background-color: white;
    padding: 20px;
}
.contact-submit-section {
    margin-top: 30px;
    text-align: center;
}

.btn-contact-submit {
    padding: 12px 50px;
    font-size: 1.1rem;
}
.contact-form-footer a {
  color: #777463 !important;
}
/*
  お問合せ ここまで -------------------------------------------------------------------------------
*/


/*
  サイトトップページ -------------------------------------------------------------------------------
*/
.back-to-top-wrapper {
  text-align: right;
  padding: 20px 0;
}

.back-to-top-link {
  display: inline-block;
  color: #817d6a;
  text-decoration: underline;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.back-to-top-link:hover {
  color: #5f5c4f;
  text-decoration: underline;
}
.discount-info {
  font-size: 0.8rem;
  color: #dc3545;
  margin-top: 10px;
}
/*
  トップページ ここまで -------------------------------------------------------------------------------
*/


/*
  カンパニートップ -----------------------------------------------------------------------------------------------
*/
.menu-okuru, 
.menu-uketoru {
    cursor: pointer;
}
.menu-okuru:hover,
.menu-uketoru:hover {
    opacity: 0.9;
}
/*
  カンパニートップ ここまで -----------------------------------------------------------------------------------------------
*/


/*
  オクルキャビネット、ウケトルキャビネット -------------------------------------------------------------------------------
*/
.card.card-okuru, .card.card-uketoru {
    background-color: #ffffff !important;
}
.card.card-okuru {
    border: 2px solid #3ab2a0;
}
.card.card-uketoru {
    border: 2px solid #fe9757;
}
.card.card-okuru.expired, .card.card-uketoru.expired {
    background-color : #ecebea !important;
}
.auto-delete-notice {
    font-size: 0.7rem;
    color: #dc3545;
    margin-top: 8px;
    padding: 6px 10px;
    background-color: rgba(220, 53, 69, 0.1);
    border-left: 3px solid #dc3545;
    border-radius: 3px;
    line-height: 1.4;
}
.file-users-wrap .file-users-item > span {
    flex: 0 0 auto;
    min-width: auto;
}
.file-users-wrap .file-users-item > span.file-users-col {
    flex: 1 1 0;
    min-width: 0;
}
.file-name-text {
    word-break: break-all;
}
/* 削除アイコンを右寄せ */
.card.card-okuru .card-body .file-list .file-list-item-delete,
.card.card-uketoru .card-body .file-list .file-list-item-delete {
  margin-left: auto;
}
.security-text {
  font-size: 0.95em;
}
/* ファイルカード内のアクションボタン（ダウンロード+削除）を横並びにする */
.file-card-actions {
  display: contents;
}
@media (max-width: 991.98px) {
  .file-card-actions {
    display: flex;
    align-items: center;
    width: 100%;
  }
  .file-card-actions .btn-delete {
    margin-left: auto;
  }
}
/*
  オクルキャビネット、ウケトルキャビネット ここまで -------------------------------------------------------------------------------
*/

/*
  管理タグ -------------------------------------------------------------------------------
*/
.badge {
	max-width: 100%;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.badge.badge-tag-light, .badge.badge-tag-dark {
  cursor: pointer;
}
.badge.badge-tag-light {
	border-color: #ececec;
	color: #ddd;
}
.add-tags-wrapper {
	width: 500px;
}
@media (max-width: 768px) {
    .add-tags-wrapper {
        width: 100%;
    }
}
/*
  管理タグ ここまで -------------------------------------------------------------------------------
*/


/*
  契約・プラン関連 -------------------------------------------------------------------------------
*/
/* 基本コンテナ */
.contract-container {
  max-width: 1200px;
  margin: 30px auto;
  padding: 0 20px;
  position: relative;
}

/* ページ読み込みオーバーレイ */
.page-loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
  min-height: 300px;
}

/* 契約プラン管理の見出し - 明るく親しみやすく */
.contract-container h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #212529;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 3px solid #f8f9fa;
  position: relative;
}

.contract-container h2::before {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, #0d6efd 0%, #0dcaf0 100%);
  border-radius: 2px;
}

/* Bootstrap nav-tabs用のスタイル（contact_tab.phpで使用） */
.nav-tabs .nav-link {
  color: #495057;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 12px 24px;
  transition: all 0.2s ease;
}

.nav-tabs .nav-link:hover {
  border-bottom-color: #dee2e6;
  color: #212529;
}

.nav-tabs .nav-link.active {
  color: #0d6efd;
  border-bottom-color: #0d6efd;
  background-color: transparent;
  font-weight: 600;
}

/* タブナビゲーション - 洗練された横並び */
.contract-tab-nav {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  border-bottom: 2px solid #e9ecef;
  padding-bottom: 0;
}

.contract-tab-item {
  padding: 14px 28px;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  color: #6c757d;
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  bottom: -2px;
}

.contract-tab-item:hover {
  color: #495057;
  background: rgba(74, 144, 226, 0.05);
}

.contract-tab-item.active {
  color: #4a90e2;
  border-bottom-color: #4a90e2;
  background: transparent;
}

/* 現在のプランカード - 控えめにしてボタンを目立たせる */
.current-plan-card {
  background: #f8f9fa;
  color: #333;
  padding: 36px 40px;
  border-radius: 12px;
  margin-bottom: 32px;
  border: 1px solid #dee2e6;
}

.current-plan-name {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.current-interval-badge {
  font-size: 0.9rem;
  font-weight: 500;
  background-color: rgba(255, 255, 255, 0.2);
  padding: 2px 10px;
  border-radius: 20px;
  margin-left: 10px;
  vertical-align: middle;
}

.current-plan-description {
  font-size: 1.05rem;
  opacity: 0.95;
  margin-bottom: 24px;
}

/* アクションボタングループ */
.plan-action-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-plan-upgrade {
  background-color: #4a90e2;
  color: white;
  border: none;
  padding: 14px 32px;
  min-width: 220px;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-plan-upgrade:hover {
  background-color: #357abd;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(74, 144, 226, 0.3);
}

.btn-plan-downgrade {
  background-color: transparent;
  color: #adb5bd;
  border: 1px solid #dee2e6;
  padding: 10px 24px;
  font-size: 0.85rem;
  font-weight: 400;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-plan-downgrade:hover {
  color: #6c757d;
  border-color: #adb5bd;
}

/* プラン選択グリッド - カード感を強化 */
.plan-select-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin: 32px 0;
}

.plan-card {
  background: white;
  border: 2px solid #e9ecef;
  border-radius: 16px;
  padding: 32px 28px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.plan-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #4a90e2 0%, #50c878 100%);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.plan-card:hover {
  border-color: #4a90e2;
  box-shadow: 0 8px 24px rgba(74, 144, 226, 0.15);
  transform: translateY(-4px);
}

.plan-card:hover::before {
  transform: scaleX(1);
}

.plan-card.selected {
  border-color: #4a90e2;
  background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 100%);
  box-shadow: 0 8px 24px rgba(74, 144, 226, 0.2);
}

.plan-card.selected::before {
  transform: scaleX(1);
}

/* 現在契約中のプラン */
.plan-card.current-plan {
  border-color: #28a745;
  background: linear-gradient(135deg, #f0fff4 0%, #ffffff 100%);
  position: relative;
}

.plan-card.current-plan::before {
  background: linear-gradient(90deg, #28a745, #20c997);
  transform: scaleX(1);
}

.current-plan-badge {
  display: inline-block;
  background: #28a745;
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: 8px;
  vertical-align: middle;
}

.plan-card-header {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: #212529;
}

.plan-card-price {
  font-size: 2.4rem;
  font-weight: 700;
  color: #4a90e2;
  margin: 20px 0;
  letter-spacing: -1px;
}

.plan-card-price small {
  font-size: 1rem;
  font-weight: 500;
  color: #6c757d;
}

.plan-card-features {
  list-style: none;
  padding: 0;
  margin: 24px 0 0 0;
}

.plan-card-features li {
  padding: 12px 0;
  border-bottom: 1px solid #f1f3f5;
  font-size: 0.95rem;
  color: #495057;
  display: flex;
  align-items: center;
  gap: 8px;
}

.plan-card-features li:before {
  content: '✓';
  color: #50c878;
  font-weight: bold;
  font-size: 1.1rem;
}

.plan-card-features li:last-child {
  border-bottom: none;
}

/* 支払周期セレクター - より洗練された見た目 */
.interval-selector {
  display: flex;
  gap: 16px;
  margin: 32px auto;
  justify-content: center;
  max-width: 480px;
}

.interval-option {
  flex: 1;
}

.interval-option input[type="radio"] {
  display: none;
}

.interval-label {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100px;
  padding: 20px 28px;
  border: 2px solid #dee2e6;
  border-radius: 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: white;
  font-weight: 600;
  font-size: 1.25rem;
}

.interval-label:hover {
  border-color: #4a90e2;
  background-color: rgba(74, 144, 226, 0.05);
}

.interval-option input[type="radio"]:checked + .interval-label {
  border-color: #4a90e2;
  background-color: #4a90e2;
  color: white;
  box-shadow: 0 4px 12px rgba(74, 144, 226, 0.25);
}

.interval-option input[type="radio"]:checked + .interval-label small {
  color: rgba(255, 255, 255, 0.9);
}

/* 年額払い「1ヶ月分お得」吹き出しバッジ */
.interval-label-yearly {
  position: relative;
  overflow: visible;
}

.yearly-badge-balloon {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 14px;
  border-radius: 20px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(238, 90, 36, 0.35);
  letter-spacing: 0.03em;
  animation: badgePulse 2s ease-in-out infinite;
}

.yearly-badge-balloon::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #ee5a24;
}

@keyframes badgePulse {
  0%, 100% { transform: translateX(-50%) scale(1); }
  50% { transform: translateX(-50%) scale(1.05); }
}

.interval-option input[type="radio"]:checked + .interval-label-yearly .yearly-badge-balloon {
  background: linear-gradient(135deg, #ffd700 0%, #ffb700 100%);
  color: #333;
  box-shadow: 0 2px 8px rgba(255, 183, 0, 0.4);
}

.interval-option input[type="radio"]:checked + .interval-label-yearly .yearly-badge-balloon::after {
  border-top-color: #ffb700;
}

.payment-summary {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border: 1px solid #e9ecef;
  border-radius: 12px;
  padding: 28px 32px;
  margin: 32px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.payment-summary h5 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: #495057;
}

.payment-row {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-top: 1px solid #e9ecef;
  font-size: 1rem;
}

.payment-row:last-child {
  border-bottom: none;
  font-size: 1.4rem;
  font-weight: 700;
  color: #4a90e2;
  padding-top: 20px;
  margin-top: 8px;
  border-top: 2px solid #4a90e2;
}

/* クーポンセクション */
.coupon-section {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 10px;
  padding: 20px 24px;
  margin: 24px 0;
}

.coupon-section h6 {
  font-weight: 600;
  color: #495057;
  margin-bottom: 12px;
}

.coupon-input-group {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.coupon-input-group input {
  flex: 1;
  border-radius: 6px;
}

.coupon-applied {
  background: linear-gradient(135deg, #d4edda 0%, #e7f5e9 100%);
  border-color: #198754;
}

.coupon-applied h6 {
  color: #0f5132;
}

/* カード情報セクション */
.card-info-section {
  background-color: white;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.card-info-section h4 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #212529;
  margin-bottom: 0;
}

/* クレジットカード表示 - リアルなカードデザイン */
.card-display {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  color: white;
  padding: 32px;
  border-radius: 16px;
  margin-bottom: 20px;
  min-height: 220px;
  position: relative;
  box-shadow: 0 8px 20px rgba(44, 62, 80, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-display:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(44, 62, 80, 0.4);
}

.card-display.default-card {
  border: 3px solid #ffc107;
  box-shadow: 0 8px 20px rgba(44, 62, 80, 0.35), 0 0 0 1px #ffc107;
}

.card-brand {
  font-size: 1.2rem;
  margin-bottom: 10px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.card-number {
  font-size: 1.6rem;
  letter-spacing: 4px;
  margin: 24px 0;
  font-family: 'Courier New', monospace;
  font-weight: 500;
}

.card-info-row {
  display: flex;
  justify-content: space-between;
  margin-top: 24px;
}

.card-default-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #ffc107;
  color: #000;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* カード追加ボタン */
.btn-add-card {
  background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
  color: white;
  border: none;
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(74, 144, 226, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-add-card:hover {
  background: linear-gradient(135deg, #357abd 0%, #2868a8 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(74, 144, 226, 0.4);
  color: white;
}

/* 履歴テーブル - より洗練 */
.history-section {
  background-color: white;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.history-section h4 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #212529;
  margin-bottom: 24px;
}

.payment-history-table {
  width: 100%;
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
}

.payment-history-table th {
  background: linear-gradient(135deg, #f8f9fa 0%, #f1f3f5 100%);
  padding: 16px 20px;
  font-weight: 600;
  border-bottom: 2px solid #dee2e6;
  color: #495057;
  font-size: 0.95rem;
}

.payment-history-table td {
  padding: 18px 20px;
  border-bottom: 1px solid #f1f3f5;
  color: #495057;
}

.payment-history-table tbody tr:hover {
  background-color: rgba(129, 125, 106, 0.02);
}

.payment-status-success {
  color: #198754;
  font-weight: 600;
}

.payment-status-failed {
  color: #dc3545;
  font-weight: 600;
}

/* 請求履歴の領収書ボタン */
.payment-history-amount {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.payment-history-amount .amount-text {
  font-weight: 600;
}

.receipt-link-btn {
  white-space: nowrap;
}

@media (max-width: 576px) {
  .payment-history-amount {
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
  }
}

/* 領収書 */
.receipt-container {
    max-width: 700px;
    margin: 40px auto;
    padding: 0 16px;
    color: #555;
}

.receipt-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 16px;
}

.receipt-print-btn {
    padding: 10px 20px;
    font-weight: 600;
}

.receipt-paper {
    background: #fff;
    border: 1px solid #333;
    padding: 50px 60px;
    position: relative;
}

.receipt-title-wrap {
    text-align: center;
    margin-bottom: 40px;
}

.receipt-title {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.5em;
    margin: 0 0 10px 0;
    padding-bottom: 10px;
    border-bottom: 3px double #333;
    display: inline-block;
}

.receipt-issue-date {
    text-align: right;
    font-size: 0.95rem;
    margin-bottom: 30px;
}

.receipt-addressee {
    font-size: 1.3rem;
    margin-bottom: 40px;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

.receipt-addressee-name {
    font-weight: 600;
}

.receipt-amount-section {
    background: #f8f8f8;
    border: 2px solid #333;
    padding: 20px 30px;
    margin-bottom: 30px;
}

.receipt-amount-row {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
}

.receipt-amount-label {
    font-size: 1rem;
}

.receipt-amount-value {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.receipt-amount-value::before {
    content: "¥";
    font-size: 1.5rem;
    margin-right: 5px;
}

.receipt-amount-value::after {
    content: "-";
    margin-left: 5px;
}

.receipt-tax-note {
    font-size: 0.85rem;
    color: #666;
    text-align: center;
    margin-top: 8px;
}

.receipt-bottom-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

.receipt-tax-breakdown {
    font-size: 0.9rem;
    color: #555;
    flex: 0 0 auto;
    min-width: 220px;
}

.receipt-tax-breakdown-title {
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.receipt-tax-breakdown-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px dotted #ccc;
    gap: 16px;
}

.receipt-tax-breakdown-row.receipt-tax-breakdown-refund {
    color: #dc3545;
}

.receipt-tax-breakdown-row.receipt-tax-breakdown-total {
    border-bottom: none;
    border-top: 1px solid #333;
    font-weight: 600;
    color: #333;
    margin-top: 2px;
    padding-top: 8px;
}

.receipt-bottom-section .receipt-issuer {
    text-align: right;
    flex: 0 0 auto;
}

.receipt-description {
    margin-bottom: 30px;
    font-size: 0.95rem;
}

.receipt-description-label {
    display: inline-block;
    margin-right: 10px;
}

.receipt-description-value {
    border-bottom: 1px solid #333;
    display: inline-block;
    min-width: 300px;
    padding-bottom: 3px;
}

.receipt-note {
    font-size: 0.95rem;
    margin-bottom: 40px;
    line-height: 1.8;
}

.receipt-issuer {
    text-align: right;
    position: relative;
}

.receipt-issuer-info {
    display: inline-block;
    text-align: left;
}

.receipt-issuer-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.receipt-issuer-detail {
    font-size: 0.85rem;
    color: #555;
    line-height: 1.6;
}

@media (max-width: 576px) {
    .receipt-paper {
        padding: 30px 20px;
    }

    .receipt-title {
        font-size: 1.5rem;
        letter-spacing: 0.3em;
    }

    .receipt-amount-value {
        font-size: 1.5rem;
    }

    .receipt-issuer {
        padding-right: 0;
        text-align: center;
    }

    .receipt-stamp {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        margin: 20px auto 0;
    }

    .receipt-description-value {
        min-width: auto;
        width: 100%;
    }

    .receipt-bottom-section {
        flex-direction: column;
        gap: 24px;
    }

    .receipt-bottom-section .receipt-issuer {
        text-align: center;
    }
}

@media print {
    .receipt-actions {
        display: none;
    }

    .receipt-container {
        margin: 0;
        padding: 0;
        max-width: none;
    }

    .receipt-paper {
        border: none;
        box-shadow: none;
    }

    body {
        background: #fff;
    }
}

/* テーブル内以外で使用する場合のアイコン配置 */
.payment-status-success i,
.payment-status-failed i {
  margin-right: 6px;
}

/* モーダルの改善 */
.modal-content {
  border-radius: 12px;
  border: none;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.modal-header {
  border-bottom: 2px solid #f1f3f5;
  padding: 24px 32px;
}

.modal-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: #212529;
}

.modal-body {
  padding: 28px 32px;
}

.modal-footer {
  border-top: 1px solid #f1f3f5;
  padding: 20px 32px;
}

/* アラート・通知の改善 */
.alert {
  border-radius: 8px;
  border-width: 1px;
  padding: 16px 20px;

  margin-bottom: 0px;
  font-size: 1.0rem;
  border-radius: 0px!important;
  border-width: 2px!important;
}
.alert-danger {
	--bs-alert-color: #e2041b ;
	--bs-alert-link-color: #e2041b ;
}
.alert-success {
	--bs-alert-color: #007b43 ;
	--bs-alert-link-color: #007b43 ;
}
.alert-warning {
  background: linear-gradient(135deg, #fff9e6 0%, #fffbf0 100%);
  border-color: #ffc107;
  color: #856404;
}
.alert-info {
  background: linear-gradient(135deg, #e7f5ff 0%, #f0f8ff 100%);
  border-color: #0dcaf0;
  color: #055160;
}

/* ボタングループの改善 */
.card-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.card-actions .btn {
  padding: 8px 16px;
  font-size: 0.9rem;
  border-radius: 6px;
  font-weight: 500;
}

/* プラン切り替え情報バッジ */
.plan-switch-info {
  background: rgba(255, 255, 255, 0.95);
  border: none;
  border-radius: 8px;
  padding: 14px 18px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.plan-switch-info i {
  margin-right: 8px;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .contract-container {
    padding: 0 16px;
  }

  .current-plan-card {
    padding: 28px 24px;
  }

  .current-plan-name {
    font-size: 1.8rem;
  }

  .plan-select-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .interval-selector {
    flex-direction: column;
    gap: 12px;
  }

  .plan-action-buttons {
    flex-direction: column;
  }

  .btn-plan-upgrade,
  .btn-plan-downgrade {
    width: 100%;
  }

  .contract-tab-nav {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .contract-tab-item {
    white-space: nowrap;
    padding: 12px 20px;
  }
}

/* カード選択UI */
.card-option {
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.card-option:hover {
  border-color: #aaa;
  background-color: #fafafa;
}

.card-option:has(input:checked) {
  border-color: #198754;
  background-color: #f0fff4;
}

.card-option input[type="radio"] {
  display: none;
}

.card-option-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  width: 100%;
  margin: 0;
}

.card-option-label .card-brand {
  font-size: 1rem;
  color: #555;
  min-width: 120px;
}

.card-option-label .card-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-option-label .card-number {
  font-family: 'Courier New', monospace;
  font-size: 1rem;
  font-weight: 500;
}

.card-option-label .card-expiry {
  font-size: 0.85rem;
  color: #666;
}

.card-option-label .badge {
  font-size: 0.75rem;
  color: #fff;
}

#newCardOption .card-option-label {
  justify-content: center;
  color: #0d6efd;
}

#newCardOption .card-option-label i {
  font-size: 1.2rem;
}

#newCardInputArea {
  padding: 15px;
  background-color: #f8f9fa;
  border-radius: 8px;
}

#resumeSubscriptionBtn, #exeResumeSubscriptionBtn, #cancelPlanChangeBtn {
  background: #E6F4EA;
  color: #1E7F4D;
  border: 1px solid #A7D7B8;
  border-radius:8px;
}
#resumeSubscriptionBtn:hover,#exeResumeSubscriptionBtn:hover,#cancelPlanChangeBtn:hover {
  background: #F9FAFB;
  border-color: #9CA3AF;
}
/*
  契約・プラン関連ここまで -------------------------------------------------------------------------------
*/


/*
  パスワード表示切り替えボタン -------------------------------------------------------------------------------
*/
#togglePassword {
  border-color: #ced4da;
  background-color: #fff;
}
#togglePassword:hover {
  background-color: #f8f9fa;
}
#togglePassword:focus {
  box-shadow: none;
  border-color: #ced4da;
}
/*
  パスワード表示切り替えボタンここまで -------------------------------------------------------------------------------
*/


/*
  履歴ダイアログ -------------------------------------------------------------------------------
*/
.act-log-dialog-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 20px;
}

.act-log-dialog-overlay.active {
  display: flex;
}

.act-log-dialog {
  background: #fff;
  border-radius: 10px;
  width: 100%;
  max-width: 500px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  border: 2px solid #817d6a;
  animation: actLogDialogFadeIn 0.2s ease-out;
}

@keyframes actLogDialogFadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.act-log-dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1em 1.5em;
  background-color: #817d6a;
  border-radius: 8px 8px 0 0;
  flex-shrink: 0;
}

.act-log-dialog-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
}

.act-log-dialog-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #fff;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.act-log-dialog-close:hover {
  opacity: 1;
}

.act-log-dialog-body {
  flex: 1;
  overflow-y: auto;
  padding: 0;
  min-height: 200px;
  font-size: 0.875rem;
}

.act-log-loading,
.act-log-empty {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
  color: #6c757d;
  font-size: 0.875rem;
}

.act-log-load-more {
  display: flex;
  justify-content: center;
  padding: 16px;
}

.act-log-list {
  padding: 0;
}

.act-log-item {
  padding: 1em 1.5em;
  border-bottom: 1px solid #e9ecef;
  transition: background-color 0.15s;
}

.act-log-item:hover {
  background-color: #f8f9fa;
}

.act-log-item:last-child {
  border-bottom: none;
}

.act-log-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  flex-wrap: wrap;
  gap: 6px;
}

.act-log-item-date {
  font-size: 0.75rem;
  color: #817d6a;
  font-weight: 500;
}

.act-log-item-user {
  font-size: 0.75rem;
  color: #fff;
  background: #817d6a;
  padding: 2px 10px;
  border-radius: 12px;
}

.act-log-item-detail {
  font-size: 0.8125rem;
  color: #333;
  line-height: 1.5;
  word-break: break-word;
}

/* レスポンシブ対応 */
@media (max-width: 576px) {
  .act-log-dialog-overlay {
    padding: 10px;
  }

  .act-log-dialog {
    max-height: 90vh;
  }

  .act-log-dialog-header {
    padding: 0.875em 1.25em;
  }

  .act-log-dialog-title {
    font-size: 1rem;
  }

  .act-log-item {
    padding: 0.875em 1.25em;
  }

  .act-log-item-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .act-log-item-detail {
    font-size: 0.8rem;
  }
}
/*
  履歴ダイアログここまで -------------------------------------------------------------------------------
*/

/*
  初回ガイドオーバーレイ -------------------------------------------------------------------------------
*/
.first-guide-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}
.first-guide-dialog {
    position: relative;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    max-width: 380px;
    width: 90%;
    animation: guideDialogIn 0.3s ease-out;
}
@keyframes guideDialogIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}
.first-guide-skip {
    position: absolute;
    top: 12px;
    right: 16px;
    background: transparent;
    border: none;
    color: #999;
    padding: 4px 12px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}
.first-guide-skip:hover {
    color: #666;
}
.first-guide-content {
    text-align: center;
    color: #333;
    padding: 32px 28px 28px;
}
.first-guide-step-num {
    font-size: 0.8rem;
    font-weight: 600;
    color: #4a90e2;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}
.first-guide-step-label {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 16px;
}
.first-guide-illust {
    font-size: 2.8rem;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    gap: 16px;
    color: #4a90e2;
}
.first-guide-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #333;
}
.first-guide-desc {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
}
.first-guide-nav {
    margin-top: 28px;
}
.first-guide-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}
.first-guide-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.2s;
}
.first-guide-dot.active {
    background: #4a90e2;
    transform: scale(1.2);
}
.first-guide-next-btn {
    background: #4a90e2;
    border: none;
    color: #fff;
    padding: 10px 40px;
    border-radius: 24px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.first-guide-next-btn:hover {
    background: #3a7bc8;
}

/* ガイド再表示アイコン */
.guide-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: color 0.2s ease;
    padding: 4px;
}
.guide-icon-btn:hover {
    color: #fff;
}
/*
  初回ガイドオーバーレイここまで -------------------------------------------------------------------------------
*/


/*
  エンプティステート（キャビネット0件時） -------------------------------------------------------------------------------
*/
.empty-state {
    max-width: 720px;
    margin: 40px auto 0;
    text-align: center;
}
.empty-state-header h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}
.empty-state-header p {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 32px;
}
.empty-state-cards {
    display: flex;
    gap: 24px;
    justify-content: center;
}
.empty-state-card {
    flex: 1;
    max-width: 320px;
    background: #fff;
    border-radius: 12px;
    padding: 28px 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    text-align: center;
    transition: box-shadow 0.2s, transform 0.2s;
    cursor: pointer;
}
.empty-state-card:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.13);
    transform: translateY(-3px);
}
.empty-state-card-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}
.empty-state-card-icon img {
    width: 32px;
    height: 32px;
}
.empty-state-icon-okuru {
    background-color: #3ab2a0;
}
.empty-state-icon-uketoru {
    background-color: #fe9757;
}
.empty-state-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 4px;
}
.empty-state-card-okuru h3 {
    color: #3ab2a0;
}
.empty-state-card-uketoru h3 {
    color: #fe9757;
}
.empty-state-card-desc {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 16px;
}
.empty-state-steps {
    text-align: left;
    font-size: 0.82rem;
    color: #666;
    line-height: 1.8;
    padding-left: 20px;
    margin-bottom: 20px;
}
.empty-state-card-okuru .empty-state-steps li::marker {
    color: #3ab2a0;
    font-weight: 600;
}
.empty-state-card-uketoru .empty-state-steps li::marker {
    color: #fe9757;
    font-weight: 600;
}
.btn-empty-state-okuru {
    background-color: #3ab2a0;
    color: #fff;
    border: none;
    padding: 8px 32px;
    border-radius: 24px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background-color 0.2s;
}
.btn-empty-state-okuru:hover {
    background-color: #2f9a8a;
    color: #fff;
}
.btn-empty-state-uketoru {
    background-color: #fe9757;
    color: #fff;
    border: none;
    padding: 8px 32px;
    border-radius: 24px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background-color 0.2s;
}
.btn-empty-state-uketoru:hover {
    background-color: #e8854b;
    color: #fff;
}
@media (max-width: 576px) {
    .empty-state-cards {
        flex-direction: column;
        align-items: center;
    }
    .empty-state-card {
        max-width: 100%;
        width: 100%;
    }
    .empty-state {
        margin-top: 24px;
    }
    .empty-state-header h2 {
        font-size: 1.2rem;
    }
}
/*
  エンプティステートここまで -------------------------------------------------------------------------------
*/


/*
  DL/UPページ共通（外部向けダウンロード・アップロード） -------------------------------------------------------------------------------
*/
.weak-title {
    color: #8B8C8A!important;
}
.cabinet-title {
    font-weight: bold;
    font-size: 1.4rem;
    margin-bottom: 30px;
    text-align: center;
}
.file-description {
    white-space: pre-wrap;
}
.container-outside-narrow-wrap {
  padding-top: 55px !important;
}
/*
  DL/UPページ共通ここまで -------------------------------------------------------------------------------
*/


/*
  オクル・ウケトルキャビネット詳細 -------------------------------------------------------------------------------
*/
main .inner-content section:not(:last-child){
    margin-bottom: 40px;
}
main .inner-content+.inner-content {
    margin-top: 32px;
}
.upload-area {
	position: relative;
	border: 2px dashed #d5d5d5;
	border-radius: 6px;
	padding: 1em 0.6em;
	text-align: center;
	cursor: pointer;
}
.auto-del-date {
    font-size: 0.85em;
    color: #999;
    margin-top: 4px;
}
.file-upload-date {
    font-size: 0.9em;
    color: #999;
}
.btn.btn-url-copy {
    width: 30px;
}
.btn.btn-url-copy::before {
	font-weight: 100;
	font-size: 1.8rem;
	color: #606c6c;
    position: relative;
    top: -6px;
}
.btn.btn-delete::before {
	color: #757575;
}
.btn.btn-q {
	width: 16px;
	height: 16px;
	border-radius: 16px;
}
.btn.btn-q::before {
	color: rgba(172, 172, 172, 0.7);
	font-size: 0.85rem;
}
/*
  オクル・ウケトルキャビネット詳細ここまで -------------------------------------------------------------------------------
*/


/*
  カンパニートップ詳細パネル -------------------------------------------------------------------------------
*/
.detail-panel__body .file-users .status-sent::before,
.detail-panel__body .file-users .status-pending::before {
    display: none;
}
.detail-panel__content .file-users .mail-icon {
    margin-right: 2px;
}
.title-user,
.title-send-files,
.title-rcv-files {
    margin-top: 40px;
}
.detail-panel__content .title-send-files .title-file-icon,
.detail-panel__content .title-rcv-files .title-file-icon {
    font-size: 1.2rem;
}
.detail-panel__content .title-send-files .title-file-icon::after,
.detail-panel__content .title-rcv-files .title-file-icon::after {
    display: none;
}
.detail-panel__content .file-cards .card-body {
	margin-top: 4px;
}
.file-users-toggle {
    text-align: center;
    cursor: pointer;
    padding: 2px 0;
    color: #888;
}
.file-users-toggle:hover {
    color: #333;
}
.file-users-toggle i {
    font-size: 0.85rem;
}
/*
  カンパニートップ詳細パネルここまで -------------------------------------------------------------------------------
*/


/*
  マイページ Google連携セクション -------------------------------------------------------------------------------
*/
.google-link-section {
    margin-top: 60px;
}
/*
  マイページ Google連携セクションここまで -------------------------------------------------------------------------------
*/


/*
  ヘッダー disabled要素 -------------------------------------------------------------------------------
*/
.disabled-elem {
    opacity: 0.5;
    cursor: not-allowed;
}
/*
  ヘッダー disabled要素ここまで -------------------------------------------------------------------------------
*/


/*
  契約プラン変更ボタン -------------------------------------------------------------------------------
*/
#confirmPlanBtn {
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    border: none;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 3px 10px rgba(74, 144, 226, 0.3);
}
#confirmPlanBtn:hover:not(:disabled) {
    background: linear-gradient(135deg, #357abd 0%, #2a6099 100%);
    box-shadow: 0 4px 14px rgba(74, 144, 226, 0.4);
}
#confirmPlanBtn:disabled {
    background: #adb5bd;
    box-shadow: none;
}
#executeChangePlanBtn {
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    border: none;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 3px 10px rgba(74, 144, 226, 0.3);
}
#executeChangePlanBtn:hover {
    background: linear-gradient(135deg, #357abd 0%, #2a6099 100%);
    box-shadow: 0 4px 14px rgba(74, 144, 226, 0.4);
}
/* PAY.JP モーダル内ボタン */
.modal .alert-info,
.modal .alert-warning {
    border: none;
}
.modal .payjp-button-container {
    text-align: center;
}
.modal .payjp-button-container input[type="button"],
.modal .payjp-button-container button {
    min-width: 280px;
    padding: 12px 32px;
    font-size: 1.05rem;
}
/*
  契約プラン変更ボタンここまで -------------------------------------------------------------------------------
*/