/* ===============================
   グローバル設定
================================= */

body {
    background-color: #FFF7F0;
    margin: 0;
    font-family: var(--font-noto-sans-jp, sans-serif);
}

*, *::before, *::after {
    box-sizing: border-box;
}

/* ===============================
   ヘッダー
================================= */

.main-header {
    background: linear-gradient(90deg, #d5b717, #d95fbd);
    color: #fff;
    padding: 25px 20px;
    font-size: 24px;
    height: 30px;
    display: flex;
    align-items: center;
}

/* ===============================
   レイアウト
================================= */

.layout {
    display: flex;
    height: calc(100vh - 56px);
}

/* ===============================
   サイドメニュー
================================= */

.side-menu-wrapper {
    width: 250px;
    background: #ffffff;
    border: 1px solid #ffdeb7;
    border-radius: 12px;
    padding-bottom: 10px;
    margin: 16px 0 16px 16px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
    height: calc(100vh - 80px);
    overflow-y: auto;
}

.side-menu-title {
    padding: 9px 12px;
    font-size: 20px;
    background: rgb(240 219 146 );
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 12px 12px 0 0;
}

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

.side-menu-item a {
    display: flex;
    font-size: 14px;
    align-items: center;
    gap: 10px;
    padding: 7px 14px;
    color: #333;
    text-decoration: none;
    border-left: 6px solid transparent;
}

.side-menu-item a:hover {
    background: #edfeff;
}

.side-menu-item.current a {
    border-left-color: #ff9a5f;
    background: #fff;
}

/* ===============================
   メインコンテンツ
================================= */

.main-content {
    flex: 1;
    padding: 20px 30px;
    overflow-y: auto;
}


/* 折りたたみ全体 */
.collapsible {
    margin-bottom: 16px;
    border: 1px solid #fcd4bb;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    background: #fff;
}

/* タイトル帯 */
.collapsible-header {
    background:rgb(240 219 146 );
    padding: 12px 16px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 8px 8px 0 0;
}

/* 本文（アニメーション対象） */
.collapsible-body {
    overflow: hidden;
    max-height: 0;
    font-size: 16px;
    transition: max-height .25s ease-in-out;
}

.collapsible-inner {
    padding: 6px 12px; /* 上下6px、左右12px */
}


/* アニメ OFF 時に使うクラス */
.collapsible-body.no-animate {
    transition: none !important;
}

/* ===============================
   余白（Tailwind削除用）
================================= */

.mt-s { margin-top: 8px; }
.mt-m { margin-top: 16px; }
.mt-l { margin-top: 24px; }

.mb-s { margin-bottom: 8px; }
.mb-m { margin-bottom: 16px; }
.mb-l { margin-bottom: 24px; }

/* ===============================
   グリッド / レイアウトユーティリティ
================================= */

.grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.col-span-2 {
    grid-column: span 2;
}

/* 横並び */
.hstack {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 幅 */
.w-100 {
    width: 100%;
}

/* ===============================
   ContentFrame（カード）
================================= */

.content-frame {
    background: #ffffff;
    border: 1px solid #ffdeb7;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.content-frame-title {
    background-color: #fcd4bb;
    padding: 10px 16px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 6px;
    margin-bottom: 16px;
}

/* セクション（借入銀行／利息計算など） */
.subsection-title {
    background: #f7efe5;
    padding: 8px 12px;
    font-weight: bold;
    border-radius: 6px 6px 0 0;
    margin-top: 16px;
}

.subsection-box {
    background: #fff;
    padding: 16px;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 6px 6px;
}

/* ===============================
   入力系
================================= */

.input-text,
.input-select {
    width: 100%;
    height: 42px;
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid #ddd;
    background: #fff;
    font-size: 12px;
}

.input-text:disabled {
    background: #f3f3f3;
}

.label {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
    color: #6f6f6f;
}

.label.small {
    font-size: 12px;
}

.badge-required {
    background: #ff6d6d;
    color: white;
    padding: 2px 4px;
    border-radius: 4px;
    font-size: 11px;
}

/* 検索ボタン */
.btn-search {
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    background: #f2f2f2;
    border: 1px solid #ccc;
    border-radius: 6px;
    cursor: pointer;
}

/* 単位（%） */
.unit {
    display: flex;
    align-items: center;
    height: 42px;
    padding-left: 4px;
}

/* ===============================
   ボタン（クリア／削除／登録）
================================= */

.button-frame {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn-gray {
    width: 150px;
    padding: 10px;
    background: #e2e2e2;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.btn-primary {
    width: 150px;
    padding: 10px;
    background: #5daeff;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}
/* 2カラム内で横幅100%使う */
.col-2 {
    grid-column: span 2;
}

/* フォームフィールドの上下余白 */
.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* flex基準の幅可変 */
.flex-1 {
    flex: 1;
}

.form-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 24px;
    align-items: start;
    margin-bottom: 24px;
}

.left-column,
.right-column {
    width: 100%;
}

.note-box p {
    line-height: 1.45;
    margin-bottom: 4px; /* 項目間を詰める */
}

.note-box p:last-child {
    margin-bottom: 0; /* 最後だけ余白なし */
}


/* ページ内表デザイン */
/* ===========================
   テーブル全体
=========================== */
.bankmaster-table {
    padding: 0;
}

/* 横スクロール（必要時のみ表示） */
.table-scroll {
    width: 100%;
    overflow-x: auto;
}

/* ===========================
   テーブル本体
=========================== */
.bank-table {
    width: 100%;
    border-collapse: collapse;
    white-space: nowrap;
}

/* ヘッダー */
.bank-table thead th {
    background: #000;
    color: #fff;
    padding: 12px 20px;
    font-size: 18px;
    font-weight: bold;
    border-right: 1px solid #333;
}

.bank-table thead th:last-child {
    border-right: none;
}

.col-new { width: 90px; text-align: center; }
.col-company { width: 160px; }
.col-bank { width: 180px; }
.col-subject { width: 130px; }
.col-edit { width: 90px; text-align: center; }

/* ===========================
   ボディ
=========================== */
.bank-table tbody td {
    padding: 12px 20px;
    font-size: 16px;
    border-bottom: 1px solid #eee;
}

/* 中央寄せ */
.text-center { text-align: center; }

/* ===========================
   ボタン
=========================== */
.icon-btn {
    padding: 6px 10px !important;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.icon-btn i {
    font-size: 16px;
}
