/* CSV取込エラー用フラッシュメッセージ（高さ10行分・スクロール） */
.csv-import-error-message {
    max-height: calc(1.5em * 10);
    min-height: calc(1.5em * 10);
    overflow-y: auto;
    width: 100%;
    display: block;
    line-height: 1.5em;
    white-space: pre-line;
    border-radius: 4px;
    padding: 0 4px;
    margin-top: 8px;
    box-sizing: border-box;
}
/* ============================= */
/* 防犯登録カード編集フォーム 専用横幅拡張 */
/* ============================= */
#bohan-registration-card-edit-form .input-group-item-wrapper .input-wide {
    width: 100%;
    max-width: none;
}
#bohan-registration-card-edit-form .input-group-item-wrapper .input-wide {
    /* RequiredNameSpaceInputなどでinputがラップされている場合にも対応 */
    width: 100% !important;
    max-width: none !important;
}
#bohan-registration-card-edit-form .input-group-item-wrapper {
    /* input-wideを含む場合のみ幅を100%に */
    width: 100%;
}
#bohan-registration-card-edit-form .input-group-item-wrapper .input-wide input {
    width: 100% !important;
    max-width: none !important;
}
/* 基本設定 */
:root {
    --bg-color: #B8E9FF;
    --card-bg: #ffffff;
    --text-color: #333333;
    --padding: 16px;
    --border-radius: 12px;
    --font-size: 16px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    font-size: var(--font-size);
    color: var(--text-color);
    line-height: 1.6;
    height: 100vh;
    display: flex;
    flex-direction: column;
    min-width: 1260px;
    /* 最小幅を固定 */
}

/* ヘッダー */
header {
    background-color: var(--card-bg);
    margin: var(--padding);
    padding: var(--padding);
    border-radius: var(--border-radius);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.header-left .system-name {
    font-weight: bold;
    font-size: 1.2rem;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-icon {
    width: 32px;
    height: 32px;
    background-color: #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.user-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logout-btn {
    padding: 4px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
}

.logout-btn:hover {
    background: #f0f0f0;
}

/* メインレイアウト */
.container {
    display: flex;
    flex: 1;
    overflow: hidden;
    padding: 0 var(--padding) var(--padding) var(--padding);
    gap: var(--padding);
}

/* サイドメニュー */
aside {
    width: 260px;
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: var(--padding);
    overflow-y: auto;
}

.menu-list {
    list-style: none;
}

.menu-item {
    margin-bottom: 8px;
}

.menu-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    text-decoration: none;
    color: var(--text-color);
    border-radius: 6px;
    transition: background 0.2s;
}

.menu-link i {
    width: 20px;
    text-align: center;
    color: #007bff;
}

.menu-link:hover {
    background-color: #F1FBFF;
}

.menu-link.is-active {
    background-color: #F1FBFF;
    font-weight: bold;
}

/* プルダウン（詳細メニュー） */
details summary {
    list-style: none;
    cursor: pointer;
    padding: 10px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    transition: background 0.2s;
}

details summary i {
    width: 20px;
    text-align: center;
    color: #007bff;
}

details summary::after {
    content: '\f107';
    /* fa-angle-down */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 10px;
    transition: transform 0.3s;
}

details[open] summary::after {
    transform: rotate(180deg);
}

details summary::-webkit-details-marker {
    display: none;
}

details summary:hover {
    background-color: #F1FBFF;
}

details .submenu {
    padding-left: 12px;
    margin-top: 4px;
    border-left: 2px solid #F1FBFF;
    margin-left: 20px;
}

/* メインコンテンツ */
main {
    flex: 1;
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: var(--padding);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.content-area {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    padding-bottom: 20px;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

/* フッターボタンがある場合は、最下部のコンテンツが隠れないように余白を広げる */
main:has(.footer-buttons) .content-area {
    padding-bottom: 80px;
}

/* Chrome, Safari, Edge用のスクロールバー非表示設定 */
.content-area::-webkit-scrollbar {
    display: none !important;
}

.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0 12px 0;
    padding: 0 4px;
}

.list-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin: 12px 0 0 0;
    padding: 0 4px;
}

.list-title {
    font-size: 16px;
    font-weight: bold;
    margin: 0;
}

.list-count {
    font-size: 14px;
    color: #666;
}

.list-pagination {
    display: flex;
    align-items: center;
    gap: 20px;
}

.list-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.list-nav a {
    color: #007bff;
    text-decoration: none;
}

.list-nav a:hover {
    text-decoration: underline;
}

.list-nav span {
    color: #ddd;
}

/* 一覧テーブル */
.list-table-container {
    background-color: white;
    border-radius: 0;
    overflow: hidden;
}

.list-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    text-align: left;
}

.list-table th {
    background-color: #F1FBFF;
    padding: 12px 16px;
    font-weight: bold;
    color: #333;
    border-top: 1px solid #D9D9D9;
    border-bottom: 1px solid #D9D9D9;
}

.list-table td {
    padding: 12px 16px;
    color: #555;
    border-bottom: 1px solid #D9D9D9;
}

.list-table td:last-child {
    text-align: right;
}

.list-table tr:hover {
    background-color: #f9f9f9;
}

.list-table tr.is-cancelled {
    background-color: #e0e0e0 !important;
}

.is-expired-date {
    color: #dc2626!important;
    font-weight: bold!important;
}

.btn-detail {
    display: inline-block;
    background-color: #00A0E9;
    color: white;
    text-decoration: none;
    padding: 2px 12px;
    border-radius: 4px;
    font-size: 14px;
    transition: background-color 0.2s;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.btn-detail:hover {
    background-color: #0087c4;
    text-decoration: none;
}

/* パンくず（ページタイトル） */
.breadcrumb {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 16px;
}

.breadcrumb a {
    text-decoration: none;
    color: #007bff;
}

/* 固定フッター（ボタンエリア） */
.footer-buttons {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--card-bg);
    padding: var(--padding);
    border-top: 1px solid #eee;
    display: flex;
    /* Changed to flex */
    justify-content: center;
    /* Default center for single group */
    align-items: center;
    gap: 10px;
    /* Gap between buttons */
    border-bottom-left-radius: var(--border-radius);
    border-bottom-right-radius: var(--border-radius);
}

.footer-buttons.is-end {
    justify-content: flex-end;
    /* Right align for list pages if needed, but usually center is fine for simple forms. Wait, edit page needs split. */
    /* Let's make a specific class for the edit page layout or just use utility classes if possible, but user asked to move style to css. */
    justify-content: space-between !important;
}

.btn-primary {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
}



/* ログイン画面用スタイル */
body.login-page {
    min-width: 0;
    min-height: 100vh;
    justify-content: center;
    align-items: center;
    background-color: #ffffff;
    padding: 16px;
    box-sizing: border-box;
}

.login-wrapper {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.login-container {
    background-color: var(--bg-color);
    /* コンテナを水色に */
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    width: 100%;
    position: relative;
    /* キャラクター配置用 */
    overflow: visible;
    /* はみ出しを許可 */
}

.login-title {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: #00A0E9;
    /* タイトルの色を指定 */
    font-weight: bold;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
}

/* ▼バリデーションメッセージ（入力欄下・赤字） */
.form-error {
    color: #dc2626;
    font-size: 12px;
    margin-top: 6px;
    display: block;
    text-align: left;
    width: 100%;
}

/* フラッシュメッセージ */
.flash-message {
    padding: 12px;
    margin: 0 0 16px 0;
    border-radius: 6px;
    font-size: 14px;
}

.flash-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.flash-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.flash-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}


.password-wrapper input {
    padding-right: 44px;
    /* アイコンのスペース分 */
    position: relative;
    z-index: 1;
}

.login-actions {
    text-align: left;
    /* ログインボタンを左側に設置 */
    margin-top: 30px;
}

.login-character {
    position: absolute;
    bottom: -20px;
    /* 下にはみ出し */
    right: -40px;
    /* 右にはみ出し */
    width: 100px;
    /* サイズ調整 */
    height: auto;
    z-index: 10;
    /* コンテナの上に重ねる */
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
    /* 影を追加 */
}

/* パスワード表示切替（クリック可能にする） */
.password-wrapper .password-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #cccccc;
    cursor: pointer;
    pointer-events: auto;
    z-index: 10;
}

.login-actions .btn-primary {
    background-color: #00A0E9;
}

.login-actions .btn-primary:hover {
    background-color: #0087c4;
}

/* ページ共通ヘッダー（タイトル＋ボタン） */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    min-height: 48px;
    padding-bottom: 10px;
    transition: border-bottom-color 0.3s;
    border-bottom: 1px solid transparent;
}

.page-header.is-scrolled {
    border-bottom-color: #e0e0e0;
}

.page-header .breadcrumb {
    margin-bottom: 0;
    /* ヘッダー内では余白をリセット */
}

.header-actions {
    display: flex;
    gap: 10px;
}

.btn-action {
    background-color: #00A0E9;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: background-color 0.2s;
}

.btn-action:hover {
    background-color: #0087c4;
}

.btn-sm {
    padding: 4px 12px;
    font-size: 13px;
    border-radius: 4px;
}

/* 検索フォーム */
.search-section {
    background-color: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 20px;
}

.search-summary {
    padding: 12px 16px;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #555;
    border-radius: 8px;
    position: relative;
    /* アイコン配置の基準 */
}

.search-summary::after {
    content: '\f107';
    /* fa-angle-down */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 16px;
    transition: transform 0.3s;
}

.search-section[open] .search-summary::after {
    transform: rotate(180deg);
}

.search-summary::-webkit-details-marker {
    display: none;
}



.search-section[open] .search-summary {
    border-bottom: 1px solid #eee;
    border-radius: 8px 8px 0 0;
}

.search-form-inner {
    padding: 20px;
}

.search-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    /* 5列に修正 */
    column-gap: 16px;
    row-gap: 4px;
    margin-bottom: 10px;
}

.search-section .form-group {
    margin-bottom: 4px;
}

.search-section .form-group label {
    margin-bottom: 4px;
}

.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    background-color: white;
}

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

.date-range {
    display: flex;
    align-items: center;
    gap: 8px;
}

.date-range input {
    flex: 1;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 10px 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-weight: normal !important;
}

.checkbox-label input {
    appearance: none;
    -webkit-appearance: none;
    width: 20px !important;
    height: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    cursor: pointer;
    position: relative;
}

.checkbox-label input:checked {
    background-color: #00A0E9;
    border-color: #00A0E9;
}

.checkbox-label input:checked::after {
    content: '';
    position: absolute;
    top: 45%;
    left: 50%;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: translate(-50%, -50%) rotate(45deg);
}

.search-actions-inline {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 12px;
    padding-bottom: 4px;
    /* 入力欄との高さ調整 */
}

.btn-secondary {
    background-color: #a4a9ae;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    white-space: nowrap;
    /* 改行を防止 */
}

.btn-search {
    background-color: #00A0E9;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    white-space: nowrap;
    /* 改行を防止 */
}

.btn-search i {
    margin-right: 6px;
}

.btn-secondary:hover {
    background-color: #8e9398;
}

.btn-search:hover {
    background-color: #0087c4;
}

/* フッターボタン用スタイル */
.btn-footer-cancel {
    background-color: white;
    border: 1px solid #B3B3B3;
    color: #333;
    width: 120px;
}

.btn-footer-cancel:hover {
    background-color: #f0f0f0;
}

.btn-footer-save {
    background-color: #00A0E9;
    color: white;
    width: 120px;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
}

.btn-footer-save:hover {
    background-color: #0087c4;
}

.btn-footer-delete {
    background-color: #dc3545;
    /* Red */
    color: white;
    width: 120px;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
}

.btn-footer-delete:hover {
    background-color: #c82333;
}

.footer-right-group {
    display: flex;
    gap: 10px;
}

/* 登録・編集フォーム用スタイル */
.form-container {
    background-color: white;
    /* padding: 24px; */
    border-radius: 0;
    width: 100%;
    margin: 0;
    border-top: 1px solid #D9D9D9;
}

.form-container.registration {
    background-color: #F5F5F5;
    border-radius: 8px;
    border-top: none;
}

.registration .form-container {
    border-top: none;
}

.input-group {
    display: flex;
    align-items: stretch;
    /* Stretch to make label take full height */
    border-bottom: 1px solid #D9D9D9;
}

.registration .input-group {
    border-bottom: none;
}

.input-group label {
    width: 200px;
    font-weight: normal;
    flex-shrink: 0;
    background-color: #F1FBFF;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    border-right: 1px solid #D9D9D9;
    /* Optional vertical separator */
}

.registration .input-group label {
    background-color: transparent;
    border-right: none;
    padding: 8px 16px;
}

.registration .input-group-body {
    padding: 8px 16px;
    min-height: 48px;
}

.input-group-body {
    flex: 1;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    min-height: 64px;
    /* 入力欄がある場合と高さを揃える */
}

.input-group-zip,
.input-group-split {
    gap: 12px;
}

.input-text {
    width: 100%;
    max-width: 300px;
    /* 半角30文字程度 */
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

/* ユーティリティクラス */
.w-auto {
    width: auto !important;
}

.w-100 {
    width: 100px !important;
}

.max-w-full {
    max-width: 100% !important;
}

.registration .input-text {
    margin-left: 8px;
}

.radio-group {
    display: flex;
    gap: 16px;
}

.radio-group label,
.checkbox-group label {
    width: auto;
    font-weight: normal;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    background-color: transparent !important;
    padding: 0 !important;
    border: none !important;
}

.radio-group input[type="radio"] {
    accent-color: #087bff;
}

.tag-sticky {
    display: inline-block;
    color: white;
    padding: 4px 0;
    width: 120px;
    text-align: center;
    font-size: 13px;
    font-weight: normal;
    border-left: 10px solid rgba(0, 0, 0, 0.2);
    border-radius: 0px;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
    position: relative;
    transform: rotate(-1deg);
    margin-left: 16px;
}

/* 最初のタグの左側にマージンを自動で取り、右端に寄せる */
.tag-sticky:first-of-type {
    margin-left: auto;
}

.tag-sticky.is-purple {
    background-color: #C293FF;
}

.tag-sticky.is-red {
    background-color: #E57070;
}

.form-section-title {
    font-size: 18px;
    font-weight: bold;
    margin: 24px 0 12px;
    padding-left: 8px;
    border-left: 4px solid #00A0E9;
}

/* モーダル基本スタイル */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.is-show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background-color: white;
    padding: 0;
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.modal-overlay.is-show .modal-content {
    transform: translateY(0);
}

.modal-header {
    background-color: #F1FBFF;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #D9D9D9;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: #00A0E9;
    font-weight: bold;
}

.close-btn {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.close-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.modal-body {
    padding: 24px;
}

.modal-body .form-group {
    margin-bottom: 20px;
}

.modal-body label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    font-size: 14px;
}

.modal-footer {
    padding: 16px 24px;
    background-color: #f9f9f9;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* モーダル内のフォーム要素調整 */
.modal-body select,
.modal-body input[type="file"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background-color: white;
}

/* ラジオボタンのグループ表示 */
.modal-radio-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.modal-radio-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.modal-radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: normal !important;
}

.modal-radio-label input[type="radio"] {
    accent-color: #00A0E9;
    width: 18px;
    height: 18px;
}

.modal-sub-input {
    margin-left: 26px;
}

.modal-sub-input select {
    width: 200px;
}

body.login-page #app {
    width: 100%;
    max-width: 400px;
    align-self: center;
    margin: 0 auto;
    flex-shrink: 0;
}
body:not(.login-page) #app {
  display: contents;
}
/* 登録会ユーザ管理：バリデーションを入力欄の下に表示 */
#registration-user-create-form .input-group-body,
#registration-user-edit-form .input-group-body {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}
#registration-user-create-form .input-group-body .input-text,
#registration-user-edit-form .input-group-body .input-text {
    margin-left: 0;
}

/* 防犯登録カード管理：バリデーションを入力欄の下に表示 */
.input-group-body .input-group-item-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.input-group-body .input-group-item-wrapper .input-group-zip-container {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 4px;
}

input:read-only:not([type="checkbox"]):not([type="radio"]){
  background-color: #e5e5e5;
}

.registration-num-search {
    display: flex;
    gap: 8px;
    align-items: center;
}

.registration-num-search input {
    flex: 1;
}

.btn-multi-search {
    white-space: nowrap;
}

.multi-search-active-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin: 16px 0;
    padding: 12px 16px;
    border: 1px solid #9ed8f7;
    border-radius: 6px;
    background-color: #f1fbff;
}

.multi-search-active-banner__label {
    font-weight: bold;
    color: #00A0E9;
}

.multi-search-active-banner__numbers {
    flex: 1;
    min-width: 200px;
    word-break: break-all;
}

.multi-search-description {
    margin: 0 0 16px;
    font-size: 14px;
    color: #666;
}

.multi-search-rows {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.multi-search-row label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    font-size: 14px;
}

.multi-search-row-input {
    display: flex;
    gap: 8px;
    align-items: center;
}

.multi-search-row-input input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.btn-row-add {
    border: 1px solid #ccc;
    background: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
}

.btn-row-add:hover {
    background: #f5f5f5;
}

.btn-row-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #dc3545;
    cursor: pointer;
    flex-shrink: 0;
}

.btn-row-remove svg {
    width: 24px;
    height: 24px;
}

.btn-row-remove:hover:not(:disabled) {
    color: #c82333;
}

.btn-row-remove:disabled {
    color: #ccc;
    cursor: not-allowed;
}

.btn-primary {
    border: 1px solid #00A0E9;
    background: #00A0E9;
    color: #fff;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
}

.btn-primary:hover {
    background: #008ecf;
}

/* [C-SERIES] 第2フェーズ お客様向け画面スタイル（C1001-C1005）追記 */
/* C(顧客向け)html Styles */
/* ============================= */
#c-login-body{
	font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
	min-width: inherit;
	overflow-wrap: anywhere;   
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

#c-body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #fff;
	min-width: inherit;
	overflow-wrap: anywhere;
}
.header-title {
    text-align: center;
    padding: 20px;
    background-color: #fff;
}
.info-section {
    background-color: #f5f5f5;
    text-align: center;
    padding: 20px;
}
.info-section .shop-name {
    margin-bottom: 8px;
}
.info-section .reg-number-label {
    margin-bottom: 4px;
}
.info-section .reg-number {
    font-size: 3em;
    color: #00A0E9;
    margin: 0;
    letter-spacing: 1px;
}
.selection-section {
    background-color: #fff;
    text-align: center;
    padding: 0px 20px 30px ;
}

.bike-icon {
}
.bike-icon img{
	max-width: 50%;
	height: auto;
}
.selection-text {
    margin-bottom: 20px;
}
.selection-text2 {
    margin-top: 20px;
	font-size: 1.4em;
}
.radio-group-inline {
    display: flex;
    justify-content: center;
    gap: 30px;
}
.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}
.form-section {
    background-color: #f5f5f5;
    padding: 20px;
}
.form-group-custom {
    margin-bottom: 20px;
}
.form-group-custom label {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    color: #333;
}
.form-group-custom label .required {
    color: #dc2626;
    margin-left: 8px;
}
.form-group-custom input[type="text"],
.form-group-custom input[type="date"],
.form-group-custom select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    box-sizing: border-box;
}
.form-group-custom.flex-row {
    display: flex;
    gap: 10px;
    align-items: center;
}
.form-group-custom.flex-row input {
    flex: 1;
}
/*確認画面用*/
.form-section.is-datacheck{
	background-color: #fff;
}
.is-datacheck-text{
	border-bottom: solid 1px #B3B3B3;
	padding-left: 0.8em;
	padding-right: 0.8em;
	padding-bottom: 10px;
	min-height: 2em;
}

.btn-address {
    background-color: #00A0E9;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    white-space: nowrap;
}
.w-50per {width: 60% !important;}

.section-header {
    background-color: #e6f7ff;
    padding: 16px 20px;
    font-weight: bold;
    font-size: 1.2em;
	border-top: solid 5px #fff;
	border-bottom: solid 5px #fff;
}
.c-footer-buttons{
    padding:20px;
    text-align: center;
}
.c-btn-footer-exit,
.c-btn-footer-save,
.c-btn-footer-cancel{
	width: 100%;
	margin: 8px 0;
}
.c-btn-footer-exit {
    background-color: #FF7F00;
}
.c-btn-footer-exit:hover {
    background-color: #D77513;
}
.c-btn-footer-save {
    background-color: #00A0E9;
}
.c-btn-footer-save:hover {
    background-color: #0087c4;
}
.c-btn-footer-cancel {
    background-color: #eeeeee;
    border: 1px solid #B3B3B3;
    color: #333;
}
.c-btn-footer-cancel:hover {
    background-color: #f0f0f0;
}
.c-sns{
	color: #00A0E9;
	margin-bottom: 20px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}
.checkbox-container input[type="radio"],
.checkbox-container input[type="checkbox"] {
    width: 22px;
    height: 22px;
}
.checkbox-container input:checked {
    background-color: #00A0E9;
    border-color: #00A0E9;
}

.welcome-text {
	margin-top: 30px;
	font-size: 32px;
	color: #00a0e9;
	font-weight: normal;
	line-height: 1.3;
}
.character-img {
	margin-top: 30px;
}
.character-img img {
	max-width: 180px;
	height: auto;
}
.welcom-button-container {
	margin-top: 40px;
	width: 90%;
	max-width: 360px;
	display: flex;
	flex-direction: column;
	gap: 20px;
}
.welcom-action-button {
	background-color: #fff;
	border: 1px solid #ddd;
	border-radius: 8px;
	padding: 20px 20px;
	display: flex;
	align-items: center;
	color: #333;
	box-shadow: 0 1px 3px rgba(0,0,0,0.1);
	cursor: pointer;
	text-align: left;
	width: 100%;
	box-sizing: border-box;
}
.welcom-action-button .icon {
	font-size: 45px;
	margin-right: 20px;
	width: 50px;
	text-align: center;
	display: flex;
	justify-content: center;
	align-items: center;
}
.welcom-action-button.new-reg .icon {
	color: #e6007e;
}
.welcom-action-button.reissue .icon {
	color: #00a0e9;
}
.welcom-action-button .text-content {
	display: flex;
	flex-direction: column;
}
.welcom-action-button .title {
	font-size: 18px;
	font-weight: bold;
	margin-bottom: 8px;
}
.welcom-action-button .subtitle {
	font-size: 12px;
	color: #666;
}
.welcom-footer-text {
	margin-top: 50px;
	margin-bottom: 40px;
	font-size: 14px;
	color: #111;
}
.toggle-buttons {
	display: flex;
	gap: 15px;
	margin-bottom: 30px;
}
.toggle-btn {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 20px 10px;
	border-radius: 8px;
	border: 1px solid #ccc;
	background-color: #fff;
	cursor: pointer;
	box-sizing: border-box;
	color: #111;
}
.toggle-btn.active {
	background-color: #ccebff;
	border-color: #00a0e9;
}
.toggle-btn .icon {
	font-size: 35px;
	margin-bottom: 12px;
}
.toggle-btn .title {
	font-size: 16px;
	margin-bottom: 5px;
}
.toggle-btn .subtitle {
	font-size: 11px;
}
.note-text {
	font-size: 12px;
	color: #555;
	margin-top: 10px;
}
.agreement-box {
	background-color: #fff;
	padding: 20px 20px;
	border-radius: 8px;
	margin-bottom: 30px;
	display: flex;
	flex-direction: column;
}
.checkbox-row {
	display: flex;
	align-items: center;
	margin-bottom: 10px;
}
.checkbox-row input[type="checkbox"] {
	transform: scale(1.6);
	margin-right: 15px;
	margin-left: 5px;
	accent-color: #00a0e9;
}
.agreement-link {
	margin-left: 40px;
	font-size: 13px;
	color: #00a0e9;
	text-decoration: underline;
	text-decoration-color: #00a0e9;
}

/* 送信完了画面用（C1006 登録完了 / C1007 再発行完了）— 公式 style.css より該当クラスのみ移植 */
.success-icon-container {
	display: flex;
	justify-content: center;
}
.success-icon-circle {
	width: 72px;
	height: 72px;
	background-color: #ffffff;
	color: #00A0E9;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 3em;
}
.mail-destination-box {
	background-color: #FFFFFF;
	border-radius: 10px;
	padding: 20px;
	margin-bottom: 28px;
	text-align: left;
}
.box-divider {
	border: none;
	border-top: 1px solid #e2e1da;
	margin: 12px 0;
}
