/* 基本設定 */
html {
    scroll-behavior: smooth;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    background-color: #f5f5f5;
    color: #000;
    font-family: Meiryo;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.red {
    color: #E23838;
}

/* ヘッダー */
.header {
    background-color: #10069F;
    height: 60px;
    display: flex;
    align-items: center;
}

.header-inner {
    width: 100%;
    padding: 0 20px;
}

.logo {
    color: #fff;
    font-style: italic;
    font-size: 24px;
    font-weight: bold;
}

/* メインコンテンツ */
.main-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

.login-container {
    width: 100%;
    max-width: 700px;
}

.title {
    font-family: Noto Sans;
    font-weight: 600;
    font-size: 32px;
    line-height: 100%;
    letter-spacing: 5%;
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

/* カードスタイル */
.login-card {
    background-color: #fff;
    padding: 60px 40px;
    border-radius: 5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* フォーム要素 */
.login-form {
    max-width: 550px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.form-group label {
    width: 200px;
    font-size: 16px;
}

.form-input-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

.form-group input:focus {
    outline: none;
    border-color: #10069F;
}

.error-message {
    color: #ff0000;
    font-size: 16px;
    margin-bottom: 15px;
}

.field-error {
    color: #ff0000;
    font-size: 12px;
    margin-top: 5px;
}

/* ボタン */
.form-actions {
    text-align: center;
    margin-top: 60px;
}

.login-button {
    background-color: #10069F;
    color: #fff;
    border: none;
    padding: 12px 60px;
    font-size: 18px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
    max-width: 250px;
}

.login-button:hover {
    background-color: #10069F;
}

/* フッター */
.footer {
    padding: 20px;
    text-align: center;
    font-size: 12px;
}

/* レイアウト構造 */
.wrapper {
    display: flex;
    min-height: 100vh;
}

.main-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: #f5f5f5;
    position: relative;
    min-width: 0;
    overflow-x: hidden;
}

.content {
    flex: 1;
    padding: 50px 20px;
    width: 100%;
    min-width: 0;
}

/* サイドバー */
.sidebar {
    width: 300px;
    background-color: #10069F;
    color: #fff;
    padding: 40px 0;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.sidebar-header {
    padding: 0 30px 30px;
}

.sidebar-logo {
    width: 80px;
    height: auto;
}

.login-header-logo {
    width: 60px;
    height: auto;
}

.sidebar-nav {
    flex: 1;
}

.sidebar-nav ul {
    list-style: none;
}

.sidebar-nav li a {
    display: block;
    padding: 15px 30px;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s;
}

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

.sidebar-nav li.logout {
    margin-top: 20px;
}

.sidebar-footer {
    text-align: center;
    padding: 20px;
    font-size: 10px;
    opacity: 0.7;
}

/* バッジ */
.badge {
    display: inline-block;
    padding: 2px 8px;
    font-size: 10px;
    border-radius: 2px;
    margin-left: 8px;
    vertical-align: middle;
}

.badge-new {
    background-color: #FF4B2B;
    color: #fff;
}

/* ページヘッダー */
.page-header {
    margin-bottom: 40px;
}

.page-title {
    font-size: 32px;
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 30px;
}

.breadcrumb {
    font-size: 14px;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: #333;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    display: inline-flex;
    align-items: center;
}

.breadcrumb span:not(:first-child)::before {
    content: '>';
    margin: 0 5px;
}

.breadcrumb i {
    color: #10069F;
    margin-right: 8px;
    font-size: 18px;
    display: inline-flex;
    align-items: center;
}

/* セクションとカード */
.section {
    margin-bottom: 50px;
    min-width: 0;
}

.section-title {
    display: flex;
    align-items: center;
    border-bottom: 2px solid #10069F;
    padding-bottom: 10px;
    margin-bottom: 25px;
    position: relative;
}

.section-title h3 {
    font-size: 20px;
    font-weight: bold;
}

/* カード */
.card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 20px;
}

.card-item-title {
    color: #000;
    border-left: 4px solid #10069F;
    padding-left: 8px;
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: normal;
}

.card-content p {
    margin-bottom: 15px;
    font-size: 16px;
    line-height: 1.6;
}

.card-content p:last-child {
    margin-bottom: 0;
}

.label {
    color: #333;
    font-weight: normal;
}

.pdf-link {
    color: #10069F;
    text-decoration: underline;
}

.info-item {
    margin-bottom: 35px;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item p {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 10px;
}

.info-item p:last-child {
    margin-bottom: 0;
}

/* 営業所情報ページ：長い文字列の折り返し */
.branch-index-page {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.branch-index-page .card,
.branch-index-page .card-body,
.branch-index-page .card-content {
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.branch-index-page .section-title h3,
.branch-index-page .card-item-title {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.branch-index-page .card-content p,
.branch-index-page .info-item p {
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

.branch-index-page .card-content a,
.branch-index-page .info-item a {
    word-wrap: break-word;
    overflow-wrap: anywhere;
    word-break: break-all;
}

/* フローティングアクション */
.floating-actions {
    display: flex;
    justify-content: center;
    margin: 40px 0 0;
}

.btn-pdf {
    background-color: #fff;
    color: #10069F;
    border: 1px solid #10069F;
    padding: 15px 60px;
    border-radius: 30px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.btn-pdf:hover {
    background-color: #10069F;
    color: #fff;
}

/* トップへ戻るボタン */
.back-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 60px;
    height: 60px;
    background-color: #10069F;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 100;
    font-size: 28px;
}

/* 支店別夕食会ページ用スタイル */
.section-title-with-links {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-bottom: 2px solid #10069F;
    padding-bottom: 10px;
    margin-bottom: 25px;
}

.section-title-with-links h3 {
    font-size: 20px;
    font-weight: bold;
}

.title-links {
    display: flex;
    gap: 20px;
    margin-left: 20px;
}

.title-links a {
    font-size: 12px;
    color: #10069F;
    text-decoration: none;
}

.title-links a:hover {
    text-decoration: underline;
}

/* 夕食会：見出し・リンク文言は改行しない／会場名は折り返し */
.dinner-section-title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 20px;
    width: 100%;
}

.dinner-section-title-row > .title-links {
    margin-left: 0;
}

.dinner-section-title-heading {
    flex: 0 0 auto;
    white-space: nowrap;
}

.title-links--venue {
    flex: 1 1 160px;
    min-width: 0;
    line-height: 1.5;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.title-links--actions {
    flex: 0 0 auto;
    white-space: nowrap;
}

.title-links--actions a {
    white-space: nowrap;
}

.action-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-bottom: 20px;
}

.btn-outline {
    background-color: #fff;
    border: 1px solid #10069F;
    color: #10069F;
    padding: 10px 30px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 140px;
}

.btn-outline:hover {
    background-color: #10069F;
    color: #fff;
}

.btn-red-outline {
    background-color: #fff;
    border: 1px solid #E23838;
    color: #E23838;
    padding: 10px 30px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 140px;
}

.btn-red-outline:hover {
    background-color: #E23838;
    color: #fff;
}

.btn-red-outline:disabled,
.btn-red-outline[disabled] {
    background-color: #fff;
    border-color: #F0C8C8;
    color: #E8A8A8;
    cursor: not-allowed;
    opacity: 0.75;
    transition: none;
}

.btn-red-outline:disabled:hover,
.btn-red-outline[disabled]:hover {
    background-color: #fff;
    border-color: #F0C8C8;
    color: #E8A8A8;
    opacity: 0.75;
}

.search-icon {
    display: revert;
    font-size:17px;
    margin: 0 3px;
    background: none;
    border: none;
    color: #10069F;
}

.search-icon-btn {
    background: none;
    border: none;
    color: #10069F;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.search-icon-btn:hover {
    opacity: 0.7;
}

/* テーブルスタイル */
.table-container {
    border: 1px solid #CECECE;
    border-radius: 5px;
    background: #fff;
    overflow: auto;
    max-height: 500px;
    max-width: 100%;
    width: 100%;
}

.data-table {
    width: 100%;
    border-collapse: separate; /* border-collapse: collapse; だと sticky が効かないため */
    border-spacing: 0;
}

.data-table th {
    position: sticky;
    top: 0;
    z-index: 10;
    border: 1px solid #CECECE;
    background-color: #10069F;
    color: #fff;
    text-align: left;
    font-weight: bold;
}
.data-table th,
.data-table td {
    font-size: 16px;
    padding: 15px 10px;
}

.data-table th:first-child,
.data-table td:first-child {
    border-left: none;
}

.data-table th:last-child,
.data-table td:last-child {
    border-right: none;
}

.data-table tr:first-child th {
    border-top: none;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table td {
    border: 1px solid #CECECE;
    background-color: #F0FBFF;
}

.data-table tr:nth-child(even) td {
    background-color: #fff;
}

.data-table tr.bg-white td {
    background-color: #fff;
}

.data-table tr.bg-light-blue td {
    background-color: #F0FBFF;
}

/* 国内交通一覧などの横スクロール+1列目固定用 */
.table-scroll-fixed {
    cursor: grab;
    user-select: none;
}

.table-scroll-fixed:active {
    cursor: grabbing;
}

.table-scroll-fixed .data-table th:first-child {
    position: sticky;
    left: 0;
    z-index: 20;
    background-color: #10069F;
}

.table-scroll-fixed .data-table td:first-child {
    position: sticky;
    left: 0;
    z-index: 5;
}

.table-scroll-fixed .data-table tr.bg-white td:first-child {
    background-color: #fff;
}

.table-scroll-fixed .data-table tr.bg-light-blue td:first-child {
    background-color: #F0FBFF;
}

.table-select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    cursor: pointer;
}

.table-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #E0E0E0;
    border-radius: 5px;
    background-color: #fff;
    font-size: 14px;
    height: 41px;
}

.table-input:focus {
    outline: none;
    border-color: #10069F;
}

@media (max-width: 992px) {
    .section-title-with-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .action-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }
}

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

.modal.is-active {
    display: flex;
}

.modal-content {
    background-color: #fff;
    padding: 40px;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

/* テーブル席数集計モーダル */
.modal-title-line {
    border-left: 4px solid #10069F;
    padding-left: 15px;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
}

.modal-note {
    color: #FF4B2B;
    font-weight: bold;
    margin-bottom: 20px;
    font-size: 14px;
}

.modal-body p {
    margin-bottom: 10px;
    font-size: 16px;
}

/* テーブル席数集計：件数が多いときはモーダル内スクロール・画面内に収める */
.modal-summary {
    padding: 24px;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
}

.modal-summary-content {
    max-height: calc(100vh - 48px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    width: 100%;
}

.modal-summary-content .modal-title-line,
.modal-summary-content .modal-note {
    flex-shrink: 0;
}

.modal-summary-content .modal-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    margin-right: -4px;
    padding-right: 8px;
}

.modal-summary-content .modal-body p:last-child {
    margin-bottom: 0;
}

/* 更新確認モーダル */
.confirm-modal-content {
    max-width: 500px;
    text-align: center;
}

.confirm-title {
    font-size: 18px;
    font-weight: bold;
    text-align: left;
}

.confirm-text {
    font-size: 15px;
    margin-top: 20px;
    text-align: left;
}

.confirm-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
}

.btn-confirm {
    padding: 12px 0;
    width: 150px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.btn-no {
    background-color: #E6E9FF;
    border: 1px solid #10069F;
    color: #10069F;
}

.btn-no:hover {
    background-color: #d0d7ff;
}

.btn-yes {
    background-color: #fff;
    border: 1px solid #10069F;
    color: #10069F;
}

.btn-yes:hover {
    background-color: #10069F;
    color: #fff;
}

/* 詳細画面用スタイル */
.detail-header-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.user-summary {
    display: flex;
    gap: 30px;
    font-size: 16px;
    font-weight: normal;
}

.btn-back {
    background-color: #fff;
    border: 1px solid #10069F;
    color: #10069F;
    padding: 10px 40px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-back:hover {
    background-color: #10069F;
    color: #fff;
}

.transport-item {
    margin-bottom: 40px;
}

.item-header {
    border-left: 4px solid #10069F;
    padding-left: 15px;
    font-size: 16px;
    font-weight: normal;
    margin-bottom: 15px;
}

.user-info {
    margin-left: 20px;
    display: inline-flex;
    align-items: center;
}

.user-info::before {
    content: "(";
}

.user-info::after {
    content: ")";
}

.user-info-item:first-child {
    margin-left: 0;
}

.user-info-item {
    margin-left: 20px;
}

.transport-card {
    display: flex;
    background: #fff;
    border: 1px solid #E0E0E0;
    border-radius: 5px;
    overflow: hidden;
}

.transport-item .transport-card {
    margin-bottom: 0;
    border-radius: 0;
}

/* 2枚目以降のカードの上端の線を消して、境界線が2pxにならないようにする */
.transport-item .transport-card + .transport-card {
    border-top: none;
}

/* 最初のカードの上側だけ角を丸くする */
.transport-item .item-header + .transport-card {
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

/* 最後のカードの下側だけ角を丸くする */
.transport-item .transport-card:last-of-type {
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    margin-bottom: 20px;
}

.path-label {
    width: 80px;
    background-color: #10069F;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 25px;
    font-size: 20px;
    font-weight: normal;
    gap: 10px;
    flex-shrink: 0;
}

.path-label .round-trip {
    font-size: 16px;
}

.form-content {
    flex: 1;
    padding: 25px 30px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

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

.form-item label {
    font-size: 14px;
    color: #333;
}

.form-item select, 
.form-item input {
    padding: 10px;
    border: 1px solid #CCC;
    border-radius: 5px;
    font-size: 14px;
    background-color: #fff;
}

.form-value {
    padding: 10px;
    border: 1px solid #E0E0E0;
    border-radius: 5px;
    font-size: 14px;
    background-color: #fff;
    min-height: 41px;
    display: flex;
    align-items: center;
}

/* 国内交通詳細：発地・着地を広く、発時刻・着時刻を狭く */
.form-row.transport-loc-time-row .form-item.transport-loc-field {
    flex: 1 1 30%;
    min-width: 0;
    width: auto;
}
.form-row.transport-loc-time-row .form-item.transport-time-field {
    flex: 0 0 120px;
    width: auto;
    max-width: 150px;
}

.form-item input[readonly] {
    background-color: #F5F5F5;
}

.w-full { width: 100%; }
.w-1-2 { width: calc(50% - 10px); }
.w-1-3 { width: calc(33.333% - 13.333px); }
.w-1-4 { width: calc(25% - 15px); }

@media (max-width: 768px) {
    .w-1-2, .w-1-3, .w-1-4 {
        width: 100%;
    }
    .form-row.transport-loc-time-row .form-item.transport-loc-field,
    .form-row.transport-loc-time-row .form-item.transport-time-field {
        flex: 1 1 100%;
        max-width: none;
    }
}
