/* =========================================================
   Fundive page modern layout
   Scoped under .fd-page to avoid affecting Project Seven menus
   ========================================================= */

.fd-page,
.fd-page * {
  box-sizing: border-box;
}

.fd-page {
  --fd-navy: #063a60;
  --fd-blue: #0878b9;
  --fd-sky: #eaf7fd;
  --fd-aqua: #27a6c7;
  --fd-orange: #f28a2e;
  --fd-ink: #173042;
  --fd-muted: #5d7180;
  --fd-line: #d9e7ee;
  --fd-white: #ffffff;
  color: var(--fd-ink);
  background: #f7fbfd;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP",
    "Yu Gothic", "YuGothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  line-height: 1.75;
}

.fd-page a {
  transition: opacity .2s ease, transform .2s ease, background-color .2s ease;
}

.fd-page a:hover {
  opacity: .9;
}

.fd-container {
  width: min(100%, 1000px);
  margin: 0 auto;
  padding: 0 24px 70px;
}

.fd-hero {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: stretch;
  background-position: center;
  background-size: cover;
}

.fd-hero-overlay {
  width: 100%;
  display: flex;
  align-items: center;
  padding: 68px 24px;
  background:
    linear-gradient(90deg, rgba(2, 31, 54, .88) 0%, rgba(3, 54, 88, .72) 48%, rgba(3, 54, 88, .18) 100%);
}

.fd-hero-inner {
  width: min(100%, 920px);
  margin: 0 auto;
  color: #fff;
}

.fd-eyebrow {
  margin: 0 0 8px;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.fd-blue {
  color: var(--fd-blue);
}

.fd-hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(2.25rem, 6vw, 4.25rem);
  line-height: 1.12;
  letter-spacing: .02em;
  text-shadow: 0 3px 18px rgba(0, 0, 0, .28);
}

.fd-hero-lead {
  max-width: 670px;
  margin: 22px 0 0;
  color: #fff;
  font-size: clamp(1rem, 2.3vw, 1.28rem);
  line-height: 1.8;
}

.fd-license-note {
  max-width: 760px;
  margin: 22px 0 0;
  padding: 11px 14px;
  border-left: 3px solid rgba(255,255,255,.8);
  background: rgba(0, 31, 54, .46);
  color: #fff;
  font-size: .9rem;
}

.fd-license-note a {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
}

.fd-hero-actions,
.fd-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.fd-btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 11px 24px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
}

.fd-btn-primary {
  color: #fff !important;
  background: var(--fd-orange);
  box-shadow: 0 8px 20px rgba(242, 138, 46, .28);
}

.fd-btn-ghost {
  color: #fff !important;
  border-color: rgba(255,255,255,.85);
  background: rgba(255,255,255,.08);
}

.fd-btn-outline {
  color: var(--fd-navy) !important;
  border-color: var(--fd-navy);
  background: #fff;
}

.fd-summary-grid {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: -46px;
}

.fd-summary-card {
  min-height: 138px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 22px 16px;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(12, 62, 92, .12);
  text-align: center;
}

.fd-summary-number,
.fd-summary-mark {
  color: var(--fd-blue);
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
}

.fd-summary-card strong {
  margin-top: 8px;
  color: var(--fd-navy);
  font-size: 1rem;
}

.fd-summary-card small {
  margin-top: 4px;
  color: var(--fd-muted);
  font-size: .78rem;
}

.fd-section-heading {
  max-width: 760px;
  margin: 82px auto 30px;
  text-align: center;
}

.fd-section-heading-left {
  max-width: none;
  margin-left: 0;
  text-align: left;
}

.fd-section-heading h2 {
  margin: 0;
  color: var(--fd-navy);
  font-size: clamp(1.65rem, 4vw, 2.45rem);
  line-height: 1.35;
}

.fd-section-heading p:last-child {
  margin: 14px 0 0;
  color: var(--fd-muted);
}

.fd-jump-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 32px;
}

.fd-jump-nav a {
  padding: 8px 17px;
  border: 1px solid var(--fd-line);
  border-radius: 999px;
  color: var(--fd-navy);
  background: #fff;
  font-weight: 700;
  text-decoration: none;
}

.fd-boat-section {
  margin: 0 0 42px;
  padding: 34px;
  border: 1px solid var(--fd-line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(7, 56, 88, .08);
  scroll-margin-top: 20px;
}

.fd-boat-section-alt {
  background: linear-gradient(180deg, #fff 0%, #f1faff 100%);
}

.fd-boat-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 26px;
}

.fd-boat-label {
  margin: 0 0 5px;
  color: var(--fd-blue);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .13em;
}

.fd-boat-header h2 {
  margin: 0;
  color: var(--fd-navy);
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  line-height: 1.35;
}

.fd-boat-header p:last-child {
  max-width: 690px;
  margin: 12px 0 0;
  color: var(--fd-muted);
}

.fd-recommend-badge {
  flex: 0 0 auto;
  padding: 7px 13px;
  border-radius: 999px;
  color: #fff;
  background: var(--fd-orange);
  font-size: .78rem;
  font-weight: 800;
  white-space: nowrap;
}

.fd-recommend-comfort {
  background: var(--fd-aqua);
}

.fd-media-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(240px, .8fr);
  gap: 22px;
  align-items: stretch;
}

.fd-image-frame,
.fd-slider-frame {
  overflow: hidden;
  min-height: 280px;
  border-radius: 16px;
  background: #dcebf2;
}

.fd-image-frame img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}

.fd-slider-frame .p7IR2 {
  margin: 0;
  border: 0;
  box-shadow: none;
}

.fd-slider-frame .p7ir2-box-wrapper,
.fd-slider-frame .p7ir2-box {
  min-height: 280px;
  background: #dcebf2;
}

.fd-feature-panel {
  padding: 25px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(145deg, var(--fd-navy), #0b6f9c);
}

.fd-feature-panel h3 {
  margin: 0 0 15px;
  color: #fff;
  font-size: 1.15rem;
}

.fd-check-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.fd-check-list li {
  position: relative;
  margin: 10px 0;
  padding-left: 25px;
}

.fd-check-list li::before {
  position: absolute;
  left: 0;
  top: .05em;
  content: "✓";
  color: #9ae8f3;
  font-weight: 900;
}

.fd-tour-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.fd-tour-card {
  padding: 24px;
  border: 1px solid var(--fd-line);
  border-top: 5px solid var(--fd-blue);
  border-radius: 16px;
  background: #fff;
}

.fd-tour-card-accent {
  border-top-color: var(--fd-orange);
}

.fd-tour-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.fd-destination {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 6px;
  color: var(--fd-navy);
  background: var(--fd-sky);
  font-size: .8rem;
  font-weight: 800;
}

.fd-price {
  color: var(--fd-orange);
  font-size: clamp(1.25rem, 3.1vw, 1.75rem);
  font-weight: 900;
  white-space: nowrap;
}

.fd-tour-card h3 {
  margin: 14px 0 17px;
  color: var(--fd-navy);
  font-size: 1.25rem;
}

.fd-tour-facts {
  margin: 0;
}

.fd-tour-facts > div {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid #edf2f5;
}

.fd-tour-facts dt {
  color: var(--fd-muted);
  font-size: .86rem;
  font-weight: 700;
}

.fd-tour-facts dd {
  margin: 0;
  color: var(--fd-ink);
  font-weight: 700;
}

.fd-card-note {
  margin: 16px 0 0;
  color: var(--fd-muted);
  font-size: .86rem;
  line-height: 1.7;
}

.fd-info-box {
  margin-top: 22px;
  padding: 19px 22px;
  border-left: 5px solid var(--fd-aqua);
  border-radius: 8px;
  background: #edf9fc;
}

.fd-info-box h3 {
  margin: 0 0 6px;
  color: var(--fd-navy);
  font-size: 1.05rem;
}

.fd-info-box p {
  margin: 0;
}

.fd-included-section,
.fd-details-section {
  margin-top: 72px;
  scroll-margin-top: 20px;
}

.fd-included-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.fd-included-grid > div {
  min-height: 150px;
  padding: 22px 18px;
  border: 1px solid var(--fd-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(7, 56, 88, .06);
}

.fd-included-grid strong {
  display: block;
  color: var(--fd-navy);
  font-size: 1rem;
}

.fd-included-grid span {
  display: block;
  margin-top: 8px;
  color: var(--fd-muted);
  font-size: .84rem;
  line-height: 1.65;
}

.fd-small-note {
  margin: 15px 0 0;
  padding: 13px 16px;
  border-radius: 8px;
  color: #6b4c16;
  background: #fff5df;
  font-size: .88rem;
}

/* Project Seven accordion: visual refinements only */
.fd-page .p7AP4 {
  margin: 0 !important;
  border: 0 !important;
  border-radius: 15px !important;
  background: #fff;
  box-shadow: 0 12px 32px rgba(7, 56, 88, .07);
}

.fd-page .p7AP4trig {
  border-bottom: 1px solid var(--fd-line);
  background: #fff;
}

.fd-page .p7AP4trig h3 {
  margin: 0;
}

.fd-page .p7AP4trig a {
  padding: 17px 22px !important;
  color: var(--fd-navy) !important;
  font-weight: 800;
  line-height: 1.5;
}

.fd-page .p7AP4content {
  color: var(--fd-ink);
  background: #f8fcfe;
}

.fd-page .p7ap4-content {
  padding: 23px !important;
}

.fd-page .p7ap4-content h2,
.fd-page .p7ap4-content h3 {
  color: var(--fd-navy);
  line-height: 1.45;
}

.fd-page .lbm-map-wrapper iframe {
  width: 100%;
  max-width: 100%;
  border: 0;
}

.fd-final-cta {
  overflow: hidden;
  margin-top: 76px;
  border-radius: 22px;
  background-position: center;
  background-size: cover;
}

.fd-final-cta-overlay {
  padding: 56px 38px;
  color: #fff;
  background: linear-gradient(90deg, rgba(3, 42, 69, .91), rgba(3, 74, 110, .58));
}

.fd-final-cta h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.65rem, 4vw, 2.5rem);
}

.fd-final-cta p {
  max-width: 660px;
  color: #fff;
}

.fd-mobile-cta {
  display: none;
}

@media (max-width: 820px) {
  .fd-container {
    padding-right: 16px;
    padding-left: 16px;
  }

  .fd-summary-grid,
  .fd-included-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fd-media-grid {
    grid-template-columns: 1fr;
  }

  .fd-feature-panel {
    min-height: auto;
  }
}

@media (max-width: 620px) {
  .fd-page {
    padding-bottom: 68px;
  }

  .fd-hero {
    min-height: 420px;
  }

  .fd-hero-overlay {
    align-items: flex-end;
    padding: 48px 18px 54px;
    background: linear-gradient(0deg, rgba(1, 30, 51, .94) 0%, rgba(3, 58, 91, .66) 62%, rgba(3, 58, 91, .25) 100%);
  }

  .fd-hero h1 {
    font-size: 2.35rem;
  }

  .fd-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: -30px;
  }

  .fd-summary-card {
    min-height: 118px;
    padding: 17px 10px;
  }

  .fd-section-heading {
    margin-top: 62px;
  }

  .fd-boat-section {
    padding: 22px 16px;
    border-radius: 16px;
  }

  .fd-boat-header {
    display: block;
  }

  .fd-recommend-badge {
    display: inline-block;
    margin-top: 12px;
  }

  .fd-image-frame,
  .fd-image-frame img,
  .fd-slider-frame,
  .fd-slider-frame .p7ir2-box-wrapper,
  .fd-slider-frame .p7ir2-box {
    min-height: 220px;
  }

  .fd-tour-grid,
  .fd-included-grid {
    grid-template-columns: 1fr;
  }

  .fd-included-grid > div {
    min-height: 0;
  }

  .fd-hero-actions,
  .fd-cta-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .fd-btn {
    width: 100%;
  }

  .fd-final-cta-overlay {
    padding: 38px 20px;
  }

  .fd-page .p7AP4trig a {
    padding: 15px 15px !important;
    font-size: .94rem;
  }

  .fd-page .p7ap4-content {
    padding: 18px 14px !important;
  }

  .fd-mobile-cta {
    position: fixed;
    z-index: 9999;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    padding: 8px;
    gap: 8px;
    background: rgba(255,255,255,.97);
    box-shadow: 0 -6px 22px rgba(0,0,0,.15);
  }

  .fd-mobile-cta a {
    display: flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: var(--fd-navy);
    border: 1px solid var(--fd-navy);
    background: #fff;
    font-weight: 800;
    text-decoration: none;
  }

  .fd-mobile-cta a:last-child {
    color: #fff;
    border-color: var(--fd-orange);
    background: var(--fd-orange);
  }
}
