/* 日本團體自由行頁：沿用站台金色 #cfa92b／#a8841a 與深褐字 #2b2418 */
.jf .wrapper { padding-bottom: 80px; }
.jf-lead { max-width: 760px; margin: 8px 0 36px; font-size: 18px; line-height: 1.9; color: #4a4030; }
.jf-cities { display: flex; flex-wrap: wrap; gap: 12px; margin: 8px 0 40px; }
.jf-cities a { display: inline-flex; flex-direction: column; min-width: 120px; padding: 12px 22px; border: 1px solid #d9cfb4; border-radius: 6px; font-size: 20px; font-weight: 700; color: #2b2418; text-decoration: none; background: #fff; }
.jf-cities a small { font-size: 14px; font-weight: 400; color: #7a6c4a; }
.jf-cities a[aria-current] { border-color: #cfa92b; box-shadow: inset 0 -3px 0 #cfa92b; }
.jf-cities a:hover { border-color: #cfa92b; }
.jf-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.jf-card { display: flex; flex-direction: column; gap: 6px; padding: 28px 26px; border: 1px solid #e3dac0; border-top: 4px solid #cfa92b; background: #fff; text-decoration: none; color: #2b2418; transition: transform .2s, box-shadow .2s; }
.jf-card:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(60, 45, 10, .12); }
.jf-card strong { font-size: 30px; letter-spacing: .06em; }
.jf-card em { font-style: normal; color: #a8841a; font-weight: 700; }
.jf-prod { max-width: 1240px; margin: 0 0 90px; scroll-margin-top: 150px; }
.jf-head { padding-left: 18px; border-left: 5px solid #cfa92b; margin-bottom: 28px; }
.jf-head h2 { margin: 0; font-size: 32px; line-height: 1.4; font-weight: 700; letter-spacing: .04em; color: #2b2418; }
.jf-from { margin: 12px 0 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; font-size: 18px; color: #4a4030; }
.jf-from b { font-size: 34px; color: #a8841a; letter-spacing: .02em; }
.jf-from small { flex-basis: 100%; font-size: 14px; color: #8a7d5c; }
.jf-facts { margin: 0 0 8px; display: grid; gap: 10px; }
.jf-facts div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px dashed #dccf9d; font-size: 18px; line-height: 1.8; }
.jf-facts dt { font-weight: 700; color: #a8841a; }
.jf-facts dd { margin: 0; color: #2b2418; }
.jf-h3 { margin: 44px 0 14px; font-size: 22px; font-weight: 700; color: #2b2418; padding-bottom: 6px; border-bottom: 2px solid #cfa92b; display: inline-block; }
.jf-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid #e3dac0; }
.jf-table { width: 100%; border-collapse: collapse; font-size: 17px; line-height: 1.6; background: #fff; }
.jf-table th, .jf-table td { padding: 11px 14px; border-bottom: 1px solid #efe8d2; text-align: left; vertical-align: top; }
.jf-table thead th { background: #f6efd8; color: #2b2418; font-weight: 700; white-space: nowrap; border-bottom: 2px solid #cfa92b; }
.jf-table { table-layout: auto; }
.jf-hotel { min-width: 820px; }
.jf-flight { min-width: 760px; }
.jf-table td { min-width: 96px; }
.jf-hotel tbody th { font-weight: 500; color: #2b2418; width: 200px; min-width: 200px; position: sticky; left: 0; background: #fff; box-shadow: 1px 0 0 #efe8d2; }
.jf-hotel tbody tr:nth-child(even) th, .jf-hotel tbody tr:nth-child(even) td { background: #fcfaf2; }
.jf-hotel td.jf-n, .jf-sur td.jf-n { font-variant-numeric: tabular-nums; white-space: nowrap; }
.jf-hotel td.jf-na { color: #aaa086; }
.jf-sur td.jf-n { font-weight: 700; color: #a8841a; }
.jf-note { margin: 10px 0 0; font-size: 16px; color: #6a5d3e; line-height: 1.8; }
.jf-remind { margin-top: 26px; padding: 16px 20px; background: #fbf6e4; border-left: 4px solid #cfa92b; }
.jf-remind p { margin: 6px 0; font-size: 17px; line-height: 1.85; color: #3a3224; }
.jf-notes { margin: 8px 0 0; padding-left: 1.8em; font-size: 17px; line-height: 1.9; color: #3a3224; }
.jf-notes li { margin: 10px 0; padding-left: .3em; }
.jf-cta { margin-top: 44px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; padding: 22px 26px; background: #2b2418; color: #f6efd8; }
.jf-cta p { margin: 0; font-size: 18px; }
.jf-cta a { padding: 10px 28px; background: #cfa92b; color: #2b2418; font-weight: 700; text-decoration: none; border-radius: 3px; }
@media (max-width: 640px) {
  .jf-head h2 { font-size: 25px; }
  .jf-from b { font-size: 28px; }
  .jf-facts div { grid-template-columns: 1fr; gap: 2px; }
  .jf-table { font-size: 15px; }
  .jf-table th, .jf-table td { padding: 9px 10px; }
  .jf-hotel tbody th { width: 150px; min-width: 150px; }
  .jf-hotel { min-width: 760px; }
}

.jf-toc { margin: 0 0 56px; padding: 22px 26px; background: #fbf6e4; border-left: 4px solid #cfa92b; max-width: 1080px; }
.jf-toc b { font-size: 18px; color: #a8841a; letter-spacing: .1em; }
.jf-toc ul { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.jf-toc a { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; padding: 8px 0; border-bottom: 1px dashed #dccf9d; color: #2b2418; text-decoration: none; font-size: 18px; }
.jf-toc a:hover { color: #a8841a; }
.jf-toc small { font-size: 15px; color: #7a6c4a; }
.jf-gift { margin: 14px 0 0; padding: 14px 20px; border: 1px solid #e3dac0; background: #fff; }
.jf-gift b { display: block; margin-bottom: 4px; color: #a8841a; font-size: 18px; }
.jf-gift ol { margin: 0; padding-left: 1.6em; font-size: 17px; line-height: 1.9; }
.jf-flag { margin: 14px 0 0; padding: 12px 18px; background: #fbf6e4; border-left: 4px solid #cfa92b; font-size: 17px; line-height: 1.85; color: #3a3224; }
.jf-intro { margin-top: 22px; }
.jf-intro p { margin: 10px 0; font-size: 17px; line-height: 1.9; color: #3a3224; }
.jf-note a { color: #a8841a; word-break: break-all; }

/* ===== 示意：黏住分頁導覽、右側摘要卡、飯店表工具列、加價按月份 ===== */
.jf-subnav { position: sticky; top: 97px; z-index: 5; display: flex; gap: 6px; margin: 0 0 26px; padding: 8px 0; background: rgba(255, 255, 255, .96); border-bottom: 1px solid #e3dac0; backdrop-filter: blur(4px); }
.jf-subnav a { flex: 0 0 auto; white-space: nowrap; padding: 8px 18px; border-radius: 999px; font-size: 17px; font-weight: 700; color: #4a4030; text-decoration: none; }
.jf-subnav a:hover { background: #f6efd8; color: #a8841a; }
.jf-prod .jf-h3 { scroll-margin-top: 170px; }
.jf-cols { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 40px; align-items: start; }
.jf-main { min-width: 0; }
.jf-aside { position: sticky; top: 170px; padding: 24px 22px; border: 1px solid #e3dac0; border-top: 4px solid #cfa92b; background: #fff; box-shadow: 0 8px 22px rgba(60, 45, 10, .08); }
.jf-a-price { margin: 0 0 16px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; font-size: 16px; color: #4a4030; }
.jf-a-price b { font-size: 30px; color: #a8841a; }
.jf-aside ul { margin: 0 0 18px; padding: 0; list-style: none; font-size: 16px; line-height: 1.7; }
.jf-aside li { padding: 8px 0; border-bottom: 1px dashed #dccf9d; }
.jf-aside li b { display: block; font-size: 14px; color: #a8841a; }
.jf-a-btn { display: block; padding: 12px; background: #cfa92b; color: #2b2418; font-weight: 700; text-align: center; text-decoration: none; border-radius: 3px; }
.jf-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin: 0 0 12px; }
.jf-tools button { padding: 8px 18px; border: 1px solid #cfa92b; background: #fff; color: #2b2418; font-size: 16px; border-radius: 999px; cursor: pointer; }
.jf-tools button:hover { background: #f6efd8; }
.jf-tools label { font-size: 16px; color: #3a3224; cursor: pointer; }
.jf-months { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.jf-months li { white-space: normal; }
.jf-months b { margin-right: 8px; color: #a8841a; }
@media (max-width: 1100px) {
  .jf-cols { grid-template-columns: 1fr; }
  .jf-aside { position: sticky; top: auto; bottom: 0; order: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 12px 16px; border-top-width: 3px; z-index: 6; }
  .jf-aside ul { display: none; }
  .jf-a-price { margin: 0; } .jf-a-price b { font-size: 24px; }
  .jf-a-btn { margin-left: auto; padding: 10px 22px; }
  .jf-subnav { top: 62px; overflow-x: auto; }
}

.jf-sur { min-width: 0 !important; }
.jf-sur td { min-width: 0; }

/* ===== 城市頁：行程摘要卡 ===== */
.jf-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 22px; max-width: 1240px; margin-bottom: 40px; }
.jf-item { display: flex; flex-direction: column; gap: 10px; padding: 26px 28px; border: 1px solid #e3dac0; border-top: 4px solid #cfa92b; background: #fff; color: #2b2418; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.jf-item:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(60, 45, 10, .12); }
.jf-item strong { font-size: 24px; line-height: 1.4; letter-spacing: .03em; }
.jf-item-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 16px; color: #6a5d3e; }
.jf-item-dates { font-size: 16px; line-height: 1.7; color: #3a3224; }
.jf-item-dates b { margin-right: 10px; color: #a8841a; }
.jf-item-foot { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 12px; border-top: 1px dashed #dccf9d; }
.jf-item-foot em { font-style: normal; color: #4a4030; font-size: 16px; }
.jf-item-foot em b { font-size: 24px; color: #a8841a; }
.jf-item-go { color: #a8841a; font-weight: 700; white-space: nowrap; }
.jf-others { margin-top: 20px; max-width: 1240px; }
.jf-others ul { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.jf-others a { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; padding: 10px 0; border-bottom: 1px dashed #dccf9d; color: #2b2418; text-decoration: none; font-size: 18px; }
.jf-others a:hover { color: #a8841a; }
.jf-others small { font-size: 15px; color: #7a6c4a; }
@media (max-width: 640px) { .jf-list { grid-template-columns: 1fr; } .jf-item { padding: 20px 18px; } .jf-item strong { font-size: 21px; } }

/* 適用日期：按月份的小標籤 */
.jf-mchips { display: inline-flex; flex-wrap: wrap; gap: 8px 10px; vertical-align: top; }
.jf-mchips i { font-style: normal; padding: 4px 14px; background: #f6efd8; border-radius: 999px; font-size: 16px; line-height: 1.6; color: #2b2418; white-space: nowrap; }
.jf-mchips i b { margin-right: 6px; color: #a8841a; }
.jf-item-dates { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px 12px; }
.jf-item-dates > b { padding-top: 4px; }
.jf-aside .jf-mchips { display: flex; margin-top: 6px; }
.jf-aside .jf-mchips i { font-size: 15px; padding: 2px 10px; }
.jf-aside li b { display: block; }
.jf-aside .jf-mchips i b { display: inline; font-size: inherit; }
