/*!
 * Bootstrap v5.3 Custom Build (1rem = 10px / Base Spacers 1-10)
 * Compiled from SCSS Pattern B Settings
 */

/* ==========================================================================
   1. ルート変数＆基本設定 (1rem = 10px)
   ========================================================================== */
:root, html {
  font-size: 62.5% !important; /* 16px * 62.5% = 10px (1rem = 10px) */
  --bs-font-sans-serif: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --bs-font-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --bs-body-font-family: var(--bs-font-sans-serif);
  --bs-body-font-size: 1.6rem; /* 16px相当 */
  --bs-body-font-weight: 400;
  --bs-body-line-height: 1.5;
  --bs-body-color: #212529;
  --bs-body-bg: #ffffff;
  --bs-border-radius: 0.6rem;
  --bs-border-radius-sm: 0.4rem;
  --bs-border-radius-lg: 0.8rem;
  --bs-border-radius-xl: 1.2rem;
  --bs-border-radius-2xl: 2rem;
  --bs-border-radius-pill: 5[0]rem;
  --bs-gutter-x: 2rem; /* ガター 20px */
  --bs-gutter-y: 0;
}

/* スマホ表示時（767.98px以下）の左右パディングを20pxに固定 */
@media (max-width: 767.98px) {
  .container,
  .container-fluid {
    padding-left: 2rem !important;  /* 20px */
    padding-right: 2rem !important; /* 20px */
  }
}

body {
  margin: 0;
  font-family: var(--bs-body-font-family);
  font-size: var(--bs-body-font-size);
  font-weight: var(--bs-body-font-weight);
  line-height: var(--bs-body-line-height);
  color: var(--bs-body-color);
  text-align: var(--bs-body-text-align);
  background-color: var(--bs-body-bg);
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

/* ==========================================================================
   2. タイポグラフィ (見出し・本文)
   ========================================================================== */
h1, .h1 { font-size: 4rem; margin-top: 0; margin-bottom: 1.6rem; font-weight: 500; line-height: 1.2; }
h2, .h2 { font-size: 3.2rem; margin-top: 0; margin-bottom: 1.6rem; font-weight: 500; line-height: 1.2; }
h3, .h3 { font-size: 2.8rem; margin-top: 0; margin-bottom: 1.6rem; font-weight: 500; line-height: 1.2; }
h4, .h4 { font-size: 2.4rem; margin-top: 0; margin-bottom: 1.6rem; font-weight: 500; line-height: 1.2; }
h5, .h5 { font-size: 2rem; margin-top: 0; margin-bottom: 1.6rem; font-weight: 50  rem; line-height: 1.2; }
h6, .h6 { font-size: 1.6rem; margin-top: 0; margin-bottom: 1.6rem; font-weight: 500; line-height: 1.2; }

p { margin-top: 0; margin-bottom: 1.6rem; }
small, .small { font-size: 1.4rem; }

/* ==========================================================================
   3. スペーシングクラス (m-0〜10, p-0〜10 : 1=10px, 2=20px ... 10=100px)
   ========================================================================== */
.m-0 { margin: 0 !important; } .mt-0 { margin-top: 0 !important; } .mb-0 { margin-bottom: 0 !important; } .ms-0 { margin-left: 0 !important; } .me-0 { margin-right: 0 !important; }
.p-0 { padding: 0 !important; } .pt-0 { padding-top: 0 !important; } .pb-0 { padding-bottom: 0 !important; } .ps-0 { padding-left: 0 !important; } .pe-0 { padding-right: 0 !important; }

.m-1 { margin: 1rem !important; } .mt-1 { margin-top: 1rem !important; } .mb-1 { margin-bottom: 1rem !important; } .ms-1 { margin-left: 1rem !important; } .me-1 { margin-right: 1rem !important; }
.p-1 { padding: 1rem !important; } .pt-1 { padding-top: 1rem !important; } .pb-1 { padding-bottom: 1rem !important; } .ps-1 { padding-left: 1rem !important; } .pe-1 { padding-right: 1rem !important; }

.m-2 { margin: 2rem !important; } .mt-2 { margin-top: 2rem !important; } .mb-2 { margin-bottom: 2rem !important; } .ms-2 { margin-left: 2rem !important; } .me-2 { margin-right: 2rem !important; }
.p-2 { padding: 2rem !important; } .pt-2 { padding-top: 2rem !important; } .pb-2 { padding-bottom: 2rem !important; } .ps-2 { padding-left: 2rem !important; } .pe-2 { padding-right: 2rem !important; }

.m-3 { margin: 3rem !important; } .mt-3 { margin-top: 3rem !important; } .mb-3 { margin-bottom: 3rem !important; } .ms-3 { margin-left: 3rem !important; } .me-3 { margin-right: 3rem !important; }
.p-3 { padding: 3rem !important; } .pt-3 { padding-top: 3rem !important; } .pb-3 { padding-bottom: 3rem !important; } .ps-3 { padding-left: 3rem !important; } .pe-3 { padding-right: 3rem !important; }

.m-4 { margin: 4rem !important; } .mt-4 { margin-top: 4rem !important; } .mb-4 { margin-bottom: 4rem !important; } .ms-4 { margin-left: 4rem !important; } .me-4 { margin-right: 4rem !important; }
.p-4 { padding: 4rem !important; } .pt-4 { padding-top: 4rem !important; } .pb-4 { padding-bottom: 4rem !important; } .ps-4 { padding-left: 4rem !important; } .pe-4 { padding-right: 4rem !important; }

.m-5 { margin: 5rem !important; } .mt-5 { margin-top: 5rem !important; } .mb-5 { margin-bottom: 5rem !important; } .ms-5 { margin-left: 5rem !important; } .me-5 { margin-right: 5rem !important; }
.p-5 { padding: 5rem !important; } .pt-5 { padding-top: 5rem !important; } .pb-5 { padding-bottom: 5rem !important; } .ps-5 { padding-left: 5rem !important; } .pe-5 { padding-right: 5rem !important; }

.m-6 { margin: 6rem !important; } .mt-6 { margin-top: 6rem !important; } .mb-6 { margin-bottom: 6rem !important; } .ms-6 { margin-left: 6rem !important; } .me-6 { margin-right: 6rem !important; }
.p-6 { padding: 6rem !important; } .pt-6 { padding-top: 6rem !important; } .pb-6 { padding-bottom: 6rem !important; } .ps-6 { padding-left: 6rem !important; } .pe-6 { padding-right: 6rem !important; }

.m-7 { margin: 7rem !important; } .mt-7 { margin-top: 7rem !important; } .mb-7 { margin-bottom: 7rem !important; } .ms-7 { margin-left: 7rem !important; } .me-7 { margin-right: 7rem !important; }
.p-7 { padding: 7rem !important; } .pt-7 { padding-top: 7rem !important; } .pb-7 { padding-bottom: 7rem !important; } .ps-7 { padding-left: 7rem !important; } .pe-7 { padding-right: 7rem !important; }

.m-8 { margin: 8rem !important; } .mt-8 { margin-top: 8rem !important; } .mb-8 { margin-bottom: 8rem !important; } .ms-8 { margin-left: 8rem !important; } .me-8 { margin-right: 8rem !important; }
.p-8 { padding: 8rem !important; } .pt-8 { padding-top: 8rem !important; } .pb-8 { padding-bottom: 8rem !important; } .ps-8 { padding-left: 8rem !important; } .pe-8 { padding-right: 8rem !important; }

.m-9 { margin: 9rem !important; } .mt-9 { margin-top: 9rem !important; } .mb-9 { margin-bottom: 9rem !important; } .ms-9 { margin-left: 9rem !important; } .me-9 { margin-right: 9rem !important; }
.p-9 { padding: 9rem !important; } .pt-9 { padding-top: 9rem !important; } .pb-9 { padding-bottom: 9rem !important; } .ps-9 { padding-left: 9rem !important; } .pe-9 { padding-right: 9rem !important; }

.m-10 { margin: 10rem !important; } .mt-10 { margin-top: 10rem !important; } .mb-10 { margin-bottom: 10rem !important; } .ms-10 { margin-left: 10rem !important; } .me-10 { margin-right: 10rem !important; }
.p-10 { padding: 10rem !important; } .pt-10 { padding-top: 10rem !important; } .pb-10 { padding-bottom: 10rem !important; } .ps-10 { padding-left: 10rem !important; } .pe-10 { padding-right: 10rem !important; }

/* ==========================================================================
   4. ガター (g-0 〜 g-10: 10px〜100px)
   ========================================================================== */
.g-0, .gx-0 { --bs-gutter-x: 0 !important; } .g-0, .gy-0 { --bs-gutter-y: 0 !important; }
.g-1, .gx-1 { --bs-gutter-x: 1rem !important; } .g-1, .gy-1 { --bs-gutter-y: 1rem !important; }
.g-2, .gx-2 { --bs-gutter-x: 2rem !important; } .g-2, .gy-2 { --bs-gutter-y: 2rem !important; }
.g-3, .gx-3 { --bs-gutter-x: 3rem !important; } .g-3, .gy-3 { --bs-gutter-y: 3rem !important; }
.g-4, .gx-4 { --bs-gutter-x: 4rem !important; } .g-4, .gy-4 { --bs-gutter-y: 4rem !important; }
.g-5, .gx-5 { --bs-gutter-x: 5rem !important; } .g-5, .gy-5 { --bs-gutter-y: 5rem !important; }
.g-6, .gx-6 { --bs-gutter-x: 6rem !important; } .g-6, .gy-6 { --bs-gutter-y: 6rem !important; }
.g-7, .gx-7 { --bs-gutter-x: 7rem !important; } .g-7, .gy-7 { --bs-gutter-y: 7rem !important; }
.g-8, .gx-8 { --bs-gutter-x: 8rem !important; } .g-8, .gy-8 { --bs-gutter-y: 8rem !important; }
.g-9, .gx-9 { --bs-gutter-x: 9rem !important; } .g-9, .gy-9 { --bs-gutter-y: 9rem !important; }
.g-10, .gx-10 { --bs-gutter-x: 10rem !important; } .g-10, .gy-10 { --bs-gutter-y: 10rem !important; }

/* ==========================================================================
   5. 各種コンポーネント (ボタン, フォーム, カード, モーダル, アコーディオン等)
   ========================================================================== */
/* ボタン */
.btn {
  display: inline-block;
  font-family: var(--bs-body-font-family);
  font-weight: 400;
  line-height: 1.5;
  color: var(--bs-body-color);
  text-align: center;
  text-decoration: none;
  vertical-align: middle;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  background-color: transparent;
  border: 0.1rem solid transparent;
  padding: 0.8rem 1.6rem;
  font-size: 1.6rem;
  border-radius: var(--bs-border-radius);
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
.btn-sm { padding: 0.4rem 0.8rem; font-size: 1.4rem; border-radius: var(--bs-border-radius-sm); }
.btn-lg { padding: 1.2rem 2.4rem; font-size: 2rem; border-radius: var(--bs-border-radius-lg); }

/* フォーム要素 */
.form-control, .form-select {
  display: block;
  width: 100%;
  padding: 0.8rem 1.2rem;
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1.5;
  color: var var(--bs-body-color);
  background-color: #fff;
  background-clip: padding-box;
  border: 0.1rem solid #dee2e6;
  appearance: none;
  border-radius: var(--bs-border-radius);
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
.form-control-sm, .form-select-sm { padding: 0.4rem 0.8rem; font-size: 1.4rem; border-radius: var(--bs-border-radius-sm); }
.form-control-lg, .form-select-lg { padding: 1.2rem 1.6rem; font-size: 2rem; border-radius: var(--bs-border-radius-lg); }

/* カード */
.card { border-radius: var(--bs-border-radius); border: 0.1rem solid rgba(0, 0, 0, 0.125); }
.card-header, .card-footer { padding: 1.2rem 1.6rem; background-color: rgba(0, 0, 0, 0.03); }
.card-body { padding: 1.6rem; }
.card-title { margin-bottom: 0.8rem; font-size: 2rem; }

/* モーダル */
.modal-header { padding: 1.6rem 2rem; border-bottom: 0.1rem solid #dee2e6; }
.modal-body { padding: 2rem; font-size: 1.6rem; }
.modal-footer { padding: 1.2rem 2rem; border-top: 0.1rem solid #dee2e6; }

/* ナビゲーション */
.navbar-brand { font-size: 2rem; padding-top: 0.4rem; padding-bottom: 0.4rem; margin-right: 1.6rem; }
.nav-link { padding: 0.8rem 1.6rem; font-size: 1.6rem; }
.dropdown-menu { font-size: 1.6rem; padding: 0.8rem 0; border-radius: var(--bs-border-radius); }
.dropdown-item { padding: 0.6rem 1.6rem; }

/* テーブル */
.table { font-size: 1.6rem; }
.table > :not(caption) > * > * { padding: 0.8rem 1rem; }
.table-sm > :not(caption) > * > * { padding: 0.4rem 0.6rem; }

/* アラート・バッジ・ページネーション・アコーディオン */
.alert { padding: 1.2rem 1.6rem; margin-bottom: 1.6rem; border-radius: var(--bs-border-radius); font-size: 1.6rem; }
.badge { padding: 0.4rem 0.8rem; font-size: 1.2rem; border-radius: var(--bs-border-radius-sm); }
.page-link { padding: 0.8rem 1.2rem; font-size: 1.6rem; }
.accordion-button { padding: 1.6rem 2rem; font-size: 1.6rem; }
.accordion-body { padding: 1.6rem 2rem; font-size: 1.6rem; }
