/* ===== セット向け：現在HTML使用分のみ整理版 ===== */

.fw-detail {
  margin: 18px 0;
}

.fw-section__head {
  margin-bottom: 12px;
}

.fw-h2 {
  font-size: 18px;
  margin: 0 0 4px;
}

.fw-muted {
  color: #667085;
  font-size: 13px;
  margin: 0 0 10px;
  line-height: 1.6;
}

/* 2カラム（SPは1列） */
.fw-grid {
  display: grid;
  gap: 14px;
}

.fw-grid--2 {
  grid-template-columns: 1fr 1fr;
  align-items: start;
}

@media (max-width: 900px) {
  .fw-grid--2 {
    grid-template-columns: 1fr;
  }
}

/* カード */
.fw-card {
  border: 1px solid #e6e8ee;
  border-radius: 12px;
  background: #fff;
  padding: 14px;
}

.fw-card__title {
  font-size: 16px;
  margin: 0 0 10px;
  padding-left: 10px;
  border-left: 4px solid #011461;
}

/* アラート（沖縄・離島） */
.fw-alert {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border-radius: 12px;
  padding: 12px 14px;
  margin: 0 0 14px;
  border: 1px solid #e6e8ee;
  background: #f8fafc;
}

.fw-alert--danger {
  border-color: #f1b0b7;
  background: #fff5f6;
}

.fw-alert__icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #d92d20;
  color: #fff;
  font-weight: 700;
  line-height: 1;
}

.fw-alert__title {
  margin: 0;
  font-weight: 700;
  color: #b42318;
}

.fw-alert__text {
  margin: 4px 0 0;
  font-size: 13px;
  color: #7a271a;
  line-height: 1.6;
}

/* 表 */
.fw-table {
  overflow: hidden;
  border: 1px solid #e6e8ee;
  border-radius: 10px;
  margin: 8px 0 10px;
}

.fw-table__inner {
  width: 100%;
  border-collapse: collapse;
}

.fw-table__inner th,
.fw-table__inner td {
  padding: 10px 12px;
  border-top: 1px solid #eef0f4;
  font-size: 14px;
}

.fw-table__inner tr:first-child th,
.fw-table__inner tr:first-child td {
  border-top: none;
}

.fw-table__inner th {
  width: 46%;
  background: #f6f7f9;
  text-align: left;
  font-weight: 700;
  color: #111827;
}

.fw-table__inner td {
  color: #111827;
}

/* バッジ */
.fw-badges {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fw-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #e6e8ee;
  background: #f8fafc;
  font-size: 12px;
  color: #111827;
}

/* アコーディオン */
.fw-acc {
  margin-top: 10px;
  border-top: 1px dashed #e6e8ee;
  padding-top: 10px;
}

.fw-acc__summary {
  cursor: pointer;
  font-weight: 700;
  color: #011461;
  list-style: none;
}

.fw-acc__summary::-webkit-details-marker {
  display: none;
}

.fw-acc__summary::after {
  content: "＋";
  float: right;
  color: #011461;
}

details[open]>.fw-acc__summary::after {
  content: "－";
}

.fw-acc__body {
  margin-top: 10px;
}

.fw-acc__group {
  margin-top: 10px;
}

.fw-acc__h4 {
  margin: 0 0 6px;
  font-size: 14px;
  color: #111827;
}

.fw-list {
  margin: 0;
  padding-left: 18px;
  color: #344054;
  font-size: 13px;
  line-height: 1.7;
}

/* 注記カード */
.fw-note {
  margin-top: 10px;
  border-radius: 10px;
  border: 1px solid #e6e8ee;
  background: #f8fafc;
  padding: 10px 12px;
}

.fw-note__title {
  margin: 0 0 4px;
  font-weight: 700;
  font-size: 13px;
  color: #111827;
}

.fw-note__text {
  margin: 0;
  font-size: 13px;
  color: #344054;
  line-height: 1.6;
}

/* 代表例の画像リスト */
.fw-items {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

@media (max-width: 900px) {
  .fw-items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .fw-items {
    grid-template-columns: 1fr;
  }
}

.fw-item__link {
  display: block;
  border: 1px solid #e6e8ee;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  text-decoration: none;
}

.fw-item__img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
  background: #f6f7f9;
}

.fw-item__name {
  display: block;
  padding: 8px 10px 0;
  font-size: 13px;
  font-weight: 700;
  color: #111827;
  line-height: 1.4;
}

.fw-item__cta {
  display: block;
  padding: 6px 10px 10px;
  font-size: 12px;
  color: #011461;
}

.fw-item__link:hover {
  border-color: #011461;
}

/* ===== 回遊カード ===== */
.fw-navcard {
  margin: 0;
}

.fw-navcard--slider {
  margin-top: 0;
}

.fw-navcard__inner {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #e6e8ee;
  border-radius: 12px;
  background: #fff;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.fw-navcard__title {
  margin: 0 0 6px;
  font-size: 16px;
  line-height: 1.35;
}

.fw-navcard__lead {
  margin: 0;
  font-size: 13px;
  color: #344054;
  line-height: 1.6;
}

/* 横スクロールサムネイル */
.fw-thumbrail {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 2px 10px;
  margin: 0;
  scroll-snap-type: none;
  -webkit-overflow-scrolling: touch;
}

.fw-thumbrail::-webkit-scrollbar {
  height: 8px;
}

.fw-thumbrail::-webkit-scrollbar-thumb {
  background: rgba(1, 20, 97, 0.25);
  border-radius: 999px;
}

.fw-thumbrail::-webkit-scrollbar-track {
  background: rgba(1, 20, 97, 0.08);
  border-radius: 999px;
}

.fw-thumbcard {
  flex: 0 0 148px;
  min-width: 148px;
  text-decoration: none;
  color: #222;
  background: #fff;
  border: 1px solid #e5e8f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  scroll-snap-align: start;
}

.fw-thumbcard:hover {
  transform: translateY(-2px);
  border-color: #011461;
  box-shadow: 0 8px 20px rgba(1, 20, 97, 0.12);
}

.fw-thumbcard img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #f7f8fb;
}

.fw-thumbcard span {
  display: block;
  padding: 10px 10px 12px;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 700;
  color: #011461;
}

/* ボタン領域：inner幅いっぱいに揃える */
.fw-navcard__actions {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 0;
  box-sizing: border-box;
}

.fw-navcard__btn {
  display: flex;
  width: 100%;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #d0d5dd;
  background: #fff;
  color: #111827;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.fw-navcard__btn--primary {
  border-color: #011461;
  background: #011461;
  color: #fff;
}

.fw-navcard__btn--primary:hover {
  filter: brightness(1.08);
}

.fw-navcard__btn--primary:active {
  filter: brightness(0.92);
}

/* 文字色干渉対策 */
a.fw-navcard__btn--primary,
a.fw-navcard__btn--primary:link,
a.fw-navcard__btn--primary:visited,
a.fw-navcard__btn--primary:hover,
a.fw-navcard__btn--primary:active,
a.fw-navcard__btn--primary:focus,
a.fw-navcard__btn--primary:focus-visible {
  color: #fff !important;
}

/* SP調整 */
@media (max-width: 767px) {
  .fw-thumbcard {
    flex: 0 0 132px;
    min-width: 132px;
  }

  .fw-thumbcard span {
    font-size: 12px;
  }

  .fw-thumbrail {
    gap: 10px;
    padding-bottom: 8px;
  }
}