html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #836c03;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* ─── ローディングオーバーレイ（Ajax 処理中） ─── */
#loader {
    width: 80px;
    height: 80px;
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    margin-top: -40px;
    margin-left: -40px;
    z-index: 90;
}

#fade {
    width: 100%;
    height: 100vh;
    display: none;
    background-color: rgba(255,255,255,0.7);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 80;
}

/* ─── キャンペーンフォーム ─── */
.campaign input,
.campaign textarea {
    max-width: 100%;
}

@media screen and (max-width: 767px) {
    .campaign h1 {
        font-size: 15pt;
        font-weight: bold;
    }
    .campaign h6 {
        font-size: 15pt;
    }
}

@media (min-width: 767px) {
    .campaign h6 {
        font-size: 15pt;
    }
    .campaignbr {
        display: none;
    }
}

/* ─── 記事・お知らせリスト ─── */
.news-title {
    margin-top: 5px;
    border-top: 3px solid #836c03;
    border-bottom: 1px solid #efefef;
    background-color: #f9f9f9;
    padding: 12px 12px 9px 12px;
    color: black;
}

.newsdate {
    font-size: small;
    color: red;
}

.newsdetailesdate {
    margin-top: 10px;
    font-size: x-small;
    color: black;
}

.newscontent {
    margin-top: 20px;
    margin-bottom: 20px;
}

/* ─── 丸ボタン（上下移動用）─── */
.updown {
    border-radius: 50%;
}

/* ─── Ajax ツールチップ ─── */
.ajax-tooltip {
    position: absolute;
    background-color: #836c03;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    display: none;
    z-index: 1000;
}

/* ─── ナビゲーションバー背景色カスタマイズ ─── */
.navbar.bg-dark {
    background-color: #d9b605 !important;
}

/* ナビゲーションリンクの色設定 */
.navbar.bg-dark .nav-link {
    color: #ffffff !important;
}

.navbar.bg-dark .nav-link:hover,
.navbar.bg-dark .nav-link:focus {
    color: #000000 !important;
}

.navbar.bg-dark .dropdown-menu-dark {
    background-color: #b89804;
}

.navbar.bg-dark .dropdown-menu-dark .dropdown-item {
    color: #ffffff;
}

.navbar.bg-dark .dropdown-menu-dark .dropdown-item:hover,
.navbar.bg-dark .dropdown-menu-dark .dropdown-item:focus {
    background-color: #a08704;
    color: #000000;
}

/* ─── カスタムボタンスタイル ─── */
.btn-primary {
    background-color: #b89b2e;
    border-color: #b89b2e;
    color: #fff;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: #836c03 !important;
    border-color: #836c03 !important;
    color: #fff !important;
}

.btn-primary:focus {
    box-shadow: 0 0 0 0.25rem rgba(131, 108, 3, 0.5);
}

/* ─── ナビバーロゴ画像切り替え ─── */
.navbar-logo {
    height: 30px;
    width: auto;
    transition: opacity 0.2s ease;
}

.logo-link {
    position: relative;
    display: inline-block;
}

.logo-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('/img/denki/title-s2.png') no-repeat center center;
    background-size: contain;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.logo-link:hover::before,
.logo-link:focus::before {
    opacity: 1;
}

.logo-link:hover .navbar-logo,
.logo-link:focus .navbar-logo {
    opacity: 0;
}

/* ─── テーブルヘッダーカスタマイズ ─── */
.table-dark {
    --bs-table-bg: #836c03;
    --bs-table-striped-bg: #836c03;
    --bs-table-active-bg: #836c03;
    --bs-table-hover-bg: #a08704;
}

.table-dark th,
.table-dark td {
    background-color: #836c03;
    border-color: #a08704;
}

/* ─── ユーティリティ ─── */
.mt-10 { margin-top: 10px; }
.mb-10 { margin-bottom: 10px; }