@charset "UTF-8";

:root {
  --card-bg: #ecf8e5;
  /* やわらかい黄緑 */
  --card-edge: #9ac88b;
  /* 角の縁取り色 */
  --title-color: #2f6f36;
  /* タイトル色 */
  --body-color: #1b1b1b;
}

/* ゲストカード */
.guest-card {
  background: var(--card-bg);
  border-radius: 10px;
  padding: 18px 25px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
}

/* 角の丸みを強調（見た目を近づける飾り） */
.guest-card:before {
  content: "";
  position: absolute;
  top: -24px;
  right: -24px;
  width: 120px;
  height: 120px;
  background: var(--card-edge);
  opacity: 0.25;
  border-radius: 24px;
  transform: rotate(45deg);
  pointer-events: none;
}

.guest-title {
  display: inline-block;
  font-size: clamp(1.5rem, 1.364rem + 0.68vw, 1.875rem);
  color: var(--title-color);
  margin-bottom: 10px;
  text-align: center;
  line-height: 1;
  font-family: "Nunito Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 800;
  font-style: italic;
  font-variation-settings: "wdth" 125, "YTLC" 500;
  border-bottom: solid 2px var(--title-color);
}

.guest-photo {
  border-radius: 7px;
  border: 2px solid #fff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  width: 100%;
  height: auto;
  object-fit: cover;
}

.guest-name {
  font-size: clamp(1.5rem, 1.364rem + 0.68vw, 1.875rem);
  margin-bottom: 25px;
  color: var(--body-color);
  font-family: "Shippori Mincho B1", serif;
  font-weight: 800;
  font-style: normal;
  line-height: 1;
  text-align: center;
}

.guest-metrics {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 0.75rem;
  color: #222;
}

.guest-records {
  font-size: 0.95rem;
  padding-left: 0.25em;
  margin-bottom: 0.9rem;
  list-style: none;
}

.guest-records li {
  margin-bottom: 0.25rem;
}

.guest-note {
  font-size: 0.95rem;
  color: #2a2a2a;
  background: rgba(255, 255, 255, 0.55);
  border-left: 4px solid var(--card-edge);
  border-radius: 5px;
  padding: 0.6rem 0.8rem;
}

@media (max-width: 576px) {
  .guest-card {
    padding: 18px 10px;
  }
.guest-name {
    margin-bottom: 7px;
}
}

.run-table {
  font-size: 0.95em;
}

.run-table th {
  background: #f5f5f5;
  text-align: center;
  font-weight: 700;
  white-space: nowrap;
}

.run-table th > p {
  line-height: 1.35;
  margin-top: 5px;
  display: inline-block;
}

.run-table td {
  background: #fff;
}

/* タブレット以下で .run-table を縦積みに（内側の表は影響させない） */
@media (max-width: 768px) {
  .run-table {
    border-collapse: separate;
    border-spacing: 0;
  }

  /* 第一階層のみを縦積みにする */
  .run-table > tbody {
    display: block;
  }
  .run-table > tbody > tr {
    display: block;
    width: 100%;
    margin-bottom: 1rem;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    overflow: hidden; /* 角丸 */
  }
  .run-table > tbody > tr > th,
  .run-table > tbody > tr > td {
    display: block;
    width: 100%;
  }

  /* 上（見出し） */
  .run-table > tbody > tr > th {
    background: #f5f5f5;
    text-align: left; /* PC時のcenterを上書き */
    border-bottom: 1px solid #dee2e6;
    padding: 0.75rem 0.9rem;
    white-space: normal; /* 折り返し可 */
  }
  .run-table > tbody > tr > th > p {
    margin: 0;
  }

  .run-table > tbody > tr > th > p > br {
    display: none; /* 改行を無効化 */
  }

  /* 下（内容） */
  .run-table > tbody > tr > td {
    padding: 0.75rem 0.9rem;
    background: #fff;
  }

  /* ネストしたテーブル（タイムスケジュール等）は通常表示のまま */
  /* ※上の指定を“第一階層限定”にしたので本来不要ですが、保険で入れておくなら↓ */
  .run-table td .table {
    display: table;
    width: 100%;
  }
  .run-table td .table thead {
    display: table-header-group;
  }
  .run-table td .table tbody {
    display: table-row-group;
  }
  .run-table td .table tr {
    display: table-row;
  }
  .run-table td .table th,
  .run-table td .table td {
    display: table-cell;
  }

/* 外側 run-table だけ table-bordered を無効化（子孫には影響させない） */
.run-table.table-bordered { border: 0 !important; }

/* 直下セル(th/td)の枠線だけ消す：子孫の表には波及しない */
.run-table.table-bordered > thead > tr > th,
.run-table.table-bordered > tbody > tr > th,
.run-table.table-bordered > tbody > tr > td,
.run-table.table-bordered > tfoot > tr > th,
.run-table.table-bordered > tfoot > tr > td {
  border: 0 !important;
}

/* ネストした table.table-bordered（= run-schedule-table）は通常通り枠線を表示 */
.run-table td .table.table-bordered,
.run-table td .table.table-bordered th,
.run-table td .table.table-bordered td {
  border: 1px solid #dee2e6 !important;
}
}

.run-schedule-table {
  font-size: 0.95em;
}

.run-schedule-table th {
  background: #f5f5f5;
  text-align: center;
  font-weight: 700;
  white-space: nowrap;
}

.run-schedule-table td {
  background: #fff;
}

.run-schedule-table tr > td:first-child {
  text-align: center;
  white-space: nowrap;
}

#map {
  width: 100%;
  height: 50vh;
}

/* map-wrap を基準に絶対配置 */
.map-wrap { position: relative; }

.map-actions{
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}

.map-actions a , .map-actions button {
  width: 120px !important;
}

@media (max-width: 575.98px){
  .map-actions { right: 8px; top: 8px; gap: 6px; }
}


.btn-outline-secondary.bg-white {
  background-color: #fff;
  color: #6c757d;
  border-color: #6c757d;
}

.btn-outline-secondary.bg-white:hover,
.btn-outline-secondary.bg-white:focus {
  background-color: #f8f9fa;
  color: #495057;
  border-color: #6c757d;
}

.btn-outline-secondary.bg-white:active,
.btn-outline-secondary.bg-white.active,
.show > .btn-outline-secondary.bg-white.dropdown-toggle {
  background-color: #e9ecef;
  color: #343a40;
  border-color: #6c757d;
}

.btn-outline-secondary.bg-white.disabled,
.btn-outline-secondary.bg-white:disabled {
  background-color: #fff;
  color: #6c757d;
}


.leaflet-popup-content {
  margin: 10px 10px 10px 15px;
  line-height: 1.3;
  font-size: 13px;
  font-size: 1.08333em;
  min-height: 1px;
}

.enlarge-btn {
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 1100;
}
#mapModalCanvas {
  width: 100%;
  height: 85vh;
}

@media screen {
  #mapModalCanvas {
  width: 100%;
  height: 75vh;
}
}

.modal {
  z-index: 9999;
}


.course-stroke{
  height: var(--hl-thick, 12px);
  position: relative;
  width: 150px;
  background: rgba(255,243,77,.45);
  border-radius: 999px;
}
.course-stroke::after{
  content:"";
  position:absolute; left:8px; right:8px;
  top: calc(50% - 3px); height: 4px;
  background:#e53935; border-radius:999px;
}


.run-course p{
  font-size: 0.925em !important;
  line-height: 1.35;
}