/* ============================================================
   SUPERVISION / FIELD 1 '学' MODAL STYLING
   ============================================================ */

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(12, 27, 64, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal__container {
  position: relative;
  width: 90%;
  max-width: 1040px;
  max-height: 90vh;
  overflow-y: auto;
  background: #f4f7fc;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  padding: 60px 50px 48px;
  z-index: 2;
  transform: scale(0.92);
  opacity: 0;
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
  scrollbar-width: thin;
  scrollbar-color: rgba(12, 27, 64, 0.2) transparent;
}

/* Custom Scrollbar for Container */
.modal__container::-webkit-scrollbar {
  width: 6px;
}
.modal__container::-webkit-scrollbar-track {
  background: transparent;
}
.modal__container::-webkit-scrollbar-thumb {
  background: rgba(12, 27, 64, 0.2);
  border-radius: 3px;
}

.modal.is-open .modal__container {
  transform: scale(1);
  opacity: 1;
}

/* Watermark */
.modal__watermark {
  position: absolute;
  top: -80px;
  left: -60px;
  font-family: var(--font-serif);
  font-size: 180px;
  font-weight: 900;
  color: rgba(12, 27, 64, 0.035);
  pointer-events: none;
  z-index: 0;
  user-select: none;
  line-height: 1;
}

.modal__content {
  position: relative;
  z-index: 1;
}

/* Top: Intro Grid */
.modal__top {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 50px;
}

.modal__title {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 700;
  color: var(--color-navy-deep);
  line-height: 1.4;
  margin-bottom: 24px;
  letter-spacing: 0.03em;
}

.modal__text {
  font-size: 15px;
  line-height: 1.8;
  color: #333;
}

.modal__text p + p {
  margin-top: 16px;
}

.modal__image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  object-fit: cover;
  aspect-ratio: 1.45;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* Habits Section */
.modal__habits-section {
  padding-top: 48px;
  margin-bottom: 40px;
}

.modal__habits-subtitle {
  font-size: 13px;
  color: #888;
  margin-bottom: 8px;
  letter-spacing: 0.08em;
  font-weight: 500;
}

.modal__habits-title {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 700;
  color: var(--color-navy-deep);
  margin-bottom: 18px;
  letter-spacing: 0.05em;
}

.modal__habits-divider {
  display: block;
  width: 40px;
  height: 2px;
  background: #bda054;
  margin-bottom: 48px;
}

.modal__habits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.habit-card {
  position: relative;
  background: #fff;
  border-radius: 8px;
  padding: 36px 20px 24px;
  box-shadow: 0 6px 20px rgba(12, 27, 64, 0.04);
  text-align: center;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.habit-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(12, 27, 64, 0.08);
}

.habit-card__badge {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 36px;
  background: var(--color-navy-deep);
  border-radius: 50%;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  justify-content: center;
  align-items: center;
}

.habit-card__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-navy-deep);
  margin-bottom: 12px;
  letter-spacing: 0.03em;
}

.habit-card__desc {
  font-size: 13px;
  line-height: 1.6;
  color: #555;
  text-align: center;
}

/* Close Buttons */
.modal__close-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  cursor: pointer;
  color: #888;
  padding: 4px;
  border-radius: 50%;
  transition: color 0.25s ease, transform 0.25s ease;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal__close-btn:hover {
  color: var(--color-orange);
  transform: rotate(90deg);
}

.modal__footer {
  text-align: center;
  margin-top: 16px;
}

.btn-modal-close {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 12px 64px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-navy-deep);
  border: 1.5px solid var(--color-navy-deep);
  background: transparent;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.05em;
}

.btn-modal-close:hover {
  background: var(--color-navy-deep);
  color: #fff;
}

/* ============================================================
   RESPONSIVE (SP Layouts)
   ============================================================ */
@media (max-width: 1023px) {
  .modal {
    display: block !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior: contain !important; /* Prevent body scroll chaining on iOS/mobile */
  }

  /* Fixed Overlay with high opacity and no blur to fix iOS Safari z-index / transparent background bug */
  .modal__overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(8, 12, 36, 0.95) !important; /* Deep navy with high opacity to completely cover main page */
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    z-index: 1 !important;
  }

  /* Force all modal containers to display full screen on mobile */
  .modal__container,
  .modal__container--privacy,
  .modal__container--contact,
  .modal__container--schedule-detail {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 100% !important;
    max-height: none !important; /* Reset 90vh maximum height to allow full vertical flow on mobile */
    height: auto !important;
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 72px 20px 40px !important; /* Generous top padding for the fixed close button */
    box-shadow: none !important;
    transform: none !important;
    border: none !important; /* Remove contact modal borders */
    overflow: visible !important; /* Let the .modal container handle scrolling */
    z-index: 2 !important;
  }

  .modal__container { background: #f4f7fc !important; }
  .modal__container--privacy { background: #fff !important; }
  .modal__container--contact { background: #f5f9ff !important; }
  .modal__container--schedule-detail { background: #f4f7fc !important; }
  
  .modal__close-btn {
    position: fixed !important;
    top: 16px !important;
    right: 16px !important;
    z-index: 99999 !important; /* Ensure it stays above scrolling content */
    background: #fff !important;
    color: var(--color-navy-deep) !important;
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
    border: none !important;
    padding: 0 !important;
  }

  .modal__watermark {
    font-size: 130px;
    top: -65px;
    left: -25px;
  }

  .modal__top {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 40px;
  }

  .modal__title {
    font-size: 26px;
    margin-bottom: 16px;
  }

  .modal__text {
    font-size: 14px;
  }

  .modal__image img {
    aspect-ratio: 1.6;
  }

  .modal__habits-section {
    padding-top: 32px;
    margin-bottom: 32px;
  }

  .modal__habits-title {
    font-size: 22px;
  }

  .modal__habits-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .habit-card {
    padding: 28px 16px 20px;
  }
  
  .btn-modal-close {
    width: 100%;
    max-width: 280px;
  }
}

/* ============================================================
   SUPERVISION / FIELD 2 '測' MODAL SPECIFIC STYLING
   ============================================================ */

/* Supervisor Box */
.modal__supervisor-box {
  background: #080c24;
  border-radius: 8px;
  padding: 30px;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 30px;
  align-items: center;
  margin: 0 90px 48px;
  color: #fff;
  position: relative;
  z-index: 1;
}

.modal__supervisor-text {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
}

.modal__supervisor-profile {
  display: flex;
  gap: 20px;
  align-items: center;
  padding-left: 30px;
}

.modal__supervisor-img img {
  width: 90px;
  height: 120px;
  object-fit: cover;
  border-radius: 4px;
  display: block;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.modal__supervisor-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #fff;
  letter-spacing: 0.05em;
}

.modal__supervisor-title {
  font-size: 12px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
}

/* Visible Section */
.modal__visible-section {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
  padding-top: 48px;
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}

.modal__visible-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 20px;
}

.modal__visible-title {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--color-navy-deep);
  line-height: 1.4;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.modal__visible-divider {
  display: block;
  width: 40px;
  height: 2px;
  background: #bda054;
  margin-bottom: 24px;
}

.modal__visible-text {
  font-size: 14px;
  line-height: 1.8;
  color: #333;
}

.modal__visible-text p + p {
  margin-top: 16px;
}

.modal__visible-text .text-gold {
  color: #bda054;
}

/* Media Query overrides for Field 2 */
@media (max-width: 1023px) {
  .modal__supervisor-box {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px 20px;
    margin-bottom: 36px;
  }

  .modal__supervisor-profile {
    border-left: none;
    padding-left: 0;
    padding-top: 24px;
    flex-direction: column;
    text-align: center;
  }

  .modal__supervisor-img img {
    width: 110px;
    height: 146px;
  }

  .modal__visible-section {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-top: 36px;
    margin-bottom: 32px;
  }

  .modal__visible-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    order: 2;
  }

  .modal__visible-intro {
    order: 1;
  }
}

/* ============================================================
   SUPERVISION / FIELD 3 '動' MODAL SPECIFIC STYLING
   ============================================================ */

/* Exercise/Movement Section Layout */
.modal__exercise-section {
  display: grid;
  grid-template-columns: 1fr 1fr 1.15fr;
  gap: 40px;
  align-items: start;
  padding-top: 24px;
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}

.modal__exercise-title {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--color-navy-deep);
  line-height: 1.4;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.modal__exercise-title .text-gold {
  color: #bda054;
}

.modal__exercise-subtitle {
  font-size: 15px;
  font-weight: 700;
  color: #333;
  margin-bottom: 12px;
}

.modal__exercise-text {
  font-size: 14px;
  line-height: 1.8;
  color: #555;
}

.modal__exercise-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  object-fit: cover;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* Trainer Box Layout */
.modal__trainer-box {
  background: #080c24;
  border-radius: 8px;
  padding: 24px;
  display: flex;
  gap: 20px;
  align-items: center;
  color: #fff;
  position: relative;
  z-index: 1;
}

.modal__trainer-img img {
  width: 90px;
  height: 120px;
  object-fit: cover;
  border-radius: 4px;
  display: block;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.modal__trainer-info {
  flex: 1;
  width: 100%;
}

.modal__trainer-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #fff;
  letter-spacing: 0.05em;
}

.modal__trainer-title {
  font-size: 12px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
}

/* Media Query overrides for Field 3 */
@media (max-width: 1023px) {
  .modal__exercise-section {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-top: 16px;
    margin-bottom: 32px;
  }

  .modal__exercise-image {
    order: 2;
  }

  .modal__exercise-intro {
    order: 1;
  }

  .modal__trainer-box {
    order: 3;
    flex-direction: column;
    padding: 24px 20px;
  }

  .modal__trainer-img img {
    width: 110px;
    height: 146px;
    margin: 0 auto;
  }
}

/* ============================================================
   SUPERVISION / FIELD 5 '癒' MODAL SPECIFIC STYLING
   ============================================================ */

/* Healing Section Grid Layout */
.modal__healing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
  margin-bottom: 40px;
}

/* Healing Card Style */
.healing-card {
  position: relative;
  background: #fff;
  border-radius: 8px;
  padding: 30px 24px;
  box-shadow: 0 6px 20px rgba(12, 27, 64, 0.04);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.healing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(12, 27, 64, 0.08);
}

.healing-card__title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-navy-deep);
  margin-bottom: 8px;
  padding-left: 12px;
  border-left: 3.5px solid var(--color-navy-deep);
  line-height: 1.3;
  letter-spacing: 0.03em;
}

.healing-card__subtitle {
  font-size: 11px;
  color: #888;
  margin-top: -4px;
  margin-bottom: 12px;
  padding-left: 12px;
  letter-spacing: 0.05em;
}

.healing-card__desc {
  font-size: 13px;
  line-height: 1.7;
  color: #555;
  margin-bottom: 24px;
}

/* Overlapping Images Layout */
.modal__healing-images {
  position: relative;
  width: 100%;
  aspect-ratio: 1.1;
  margin-top: auto; /* Pushes the images to the bottom of the card */
}

.modal__healing-img-1 {
  position: absolute;
  top: 0;
  left: 0;
  width: 65%;
  aspect-ratio: 1.33;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  z-index: 1;
}

.modal__healing-img-2 {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 65%;
  aspect-ratio: 1.33;
  object-fit: cover;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  z-index: 2;
}

/* Positional Modifiers for Overlapping Images */
.modal__healing-img-1.modal__healing-img--tr {
  left: auto;
  right: 0;
}

.modal__healing-img-2.modal__healing-img--bl {
  right: auto;
  left: 0;
}

/* Responsive adjustments for Modal 5 */
@media (max-width: 1023px) {
  .modal__healing-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .healing-card {
    padding: 24px 20px;
  }

  .modal__healing-images {
    max-width: 320px;
    margin: 0 auto;
  }
}

/* ============================================================
   SUPERVISION / FIELD 4 '食' MODAL SPECIFIC STYLING
   ============================================================ */

/* Food Grid Layout */
.modal__food-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 40px;
  margin-bottom: 48px;
}

/* Food Card Badge */
.food-card__badge {
  align-self: flex-start;
  display: inline-block;
  background: #0c1b40;
  color: #fff;
  font-size: 11px;
  padding: 4px 10px;
  font-weight: 500;
  margin-bottom: 14px;
  letter-spacing: 0.03em;
  border-radius: 2px;
}

/* Food Card Title */
.food-card__title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--color-navy-deep);
  margin-bottom: 24px;
  line-height: 1.4;
  letter-spacing: 0.03em;
}

/* Override supervisor box margin for Modal 4 to span full width */
#modal-field-4 .modal__supervisor-box {
  margin: 0 0 48px;
}

/* Responsive adjustments for Modal 4 */
@media (max-width: 1023px) {
  .modal__food-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ============================================================
   SUPERVISION / FIELD 6 '宿' MODAL SPECIFIC STYLING
   ============================================================ */

/* Lodging Top Layout */
.modal__lodging-top {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 48px;
}

.modal__lodging-subtitle {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--color-navy-deep);
  margin-bottom: 24px;
  line-height: 1.4;
  letter-spacing: 0.03em;
}

.modal__lodging-subtitle .text-gold {
  color: #bda054;
}

.modal__lodging-text {
  font-size: 14px;
  line-height: 1.8;
  color: #555;
}

.modal__lodging-text p + p {
  margin-top: 16px;
}

/* Lodging Profile Box (Kuniyoshi Shimizu) */
.modal__lodging-profile-box {
  background: #080c24;
  border-radius: 8px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  color: #fff;
  position: relative;
  z-index: 1;
}

.modal__lodging-profile-name {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #fff;
  letter-spacing: 0.05em;
}

.modal__lodging-profile-title {
  font-size: 20px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
}

.modal__lodging-profile-img img {
  width: 100px;
  height: 133px;
  object-fit: cover;
  border-radius: 4px;
  display: block;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Lodging Detail Card (Bottom Section) */
.lodging-detail-card {
  background: #fff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 6px 20px rgba(12, 27, 64, 0.04);
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: center;
  margin-top: 40px;
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}

.lodging-detail-card__image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  display: block;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.lodging-detail-card__tag {
  font-size: 11px;
  color: #888;
  margin-bottom: 6px;
  letter-spacing: 0.05em;
}

.lodging-detail-card__title {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--color-navy-deep);
  margin-bottom: 18px;
  line-height: 1.4;
  letter-spacing: 0.03em;
}

.lodging-detail-card__desc {
  font-size: 13px;
  line-height: 1.8;
  color: #555;
}

/* Responsive adjustments for Modal 6 */
@media (max-width: 1023px) {
  .modal__lodging-top {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 36px;
  }

  .modal__lodging-profile-box {
    padding: 40px;
  }

  .modal__lodging-profile-name {
    font-size: 22px;
  }

  .modal__lodging-profile-title {
    font-size: 16px;
  }

  .lodging-detail-card {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 24px 20px;
  }

  .lodging-detail-card__image {
    order: 2;
  }

  .lodging-detail-card__info {
    order: 1;
  }

  .lodging-detail-card__title {
    font-size: 20px;
    margin-bottom: 12px;
  }
}

/* ============================================================
   PRIVACY POLICY (個人情報保護方針) MODAL SPECIFIC STYLING
   ============================================================ */

/* Container specific style */
.modal__container--privacy {
  max-width: 800px;
  background: #fff;
  padding: 60px 80px 48px;
}

.privacy-modal {
  color: var(--color-text);
  font-family: var(--font-serif);
}

.privacy-modal__title {
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  color: var(--color-text);
  margin-bottom: 40px;
  letter-spacing: 0.05em;
}

.privacy-modal__intro {
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 48px;
  color: var(--color-text);
}

.privacy-modal__list {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.privacy-modal__item {
  position: relative;
}

.privacy-modal__item-title {
  display: flex;
  align-items: center;
  font-size: 18px;
  font-weight: 700;
  color: #030659; /* Figma dark navy */
  margin-bottom: 14px;
  letter-spacing: 0.03em;
}

.privacy-modal__item-icon {
  display: inline-block;
  width: 19.3px;
  height: 12.8px;
  background: #bda054; /* Gold accent */
  margin-right: 12px;
  transform: skewX(-20deg); /* Diagonal stripe look */
  flex-shrink: 0;
}

.privacy-modal__item-text {
  font-size: 15px;
  line-height: 1.8;
  color: var(--color-text);
}

.privacy-modal .btn-modal-close {
  background: #bda054;
  color: #fff;
  border: none;
  border-radius: 30px;
  padding: 12px 64px;
}

.privacy-modal .btn-modal-close:hover {
  background: #9d813b; /* darker gold */
  color: #fff;
}

/* Responsive */
@media (max-width: 1023px) {
  .modal__container--privacy {
    padding: 50px 24px 32px;
  }

  .privacy-modal__title {
    font-size: 20px;
    margin-bottom: 24px;
  }

  .privacy-modal__intro {
    font-size: 14px;
    line-height: 1.65;
    margin-bottom: 32px;
  }

  .privacy-modal__list {
    gap: 32px;
  }

  .privacy-modal__item-title {
    font-size: 16px;
    margin-bottom: 10px;
  }

  .privacy-modal__item-icon {
    width: 16px;
    height: 10.5px;
    margin-right: 8px;
  }

  .privacy-modal__item-text {
    font-size: 14px;
    line-height: 1.65;
  }
}

/* ============================================================
   CONTACT FORM (お問い合わせ) MODAL SPECIFIC STYLING
   ============================================================ */

.modal__container--contact {
  max-width: 700px;
  background: #f5f9ff; /* Light navy/white background */
  border: 1px solid #030659; /* Navy border */
  padding: 50px 40px 40px;
}

.modal__container--contact .modal__close-btn {
  color: #030659;
}

.contact-modal {
  font-family: var(--font-sans);
}

.contact-modal__form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-modal__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-modal__row {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-modal__label {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
  color: #030659;
}

.contact-modal__input,
.contact-modal__select,
.contact-modal__textarea {
  width: 100%;
  background-color: #eaeaea;
  border: 1px solid #7f8a9e;
  border-radius: 4px;
  padding: 12px 16px;
  font-size: 15px;
  color: #333;
  box-sizing: border-box;
  font-family: var(--font-sans);
  transition: border-color 0.25s, box-shadow 0.25s;
}

.contact-modal__input::placeholder,
.contact-modal__textarea::placeholder {
  color: #a0a0a0;
}

.contact-modal__select:invalid {
  color: #a0a0a0 !important;
}

.contact-modal__select option {
  color: #333 !important;
}

.text-danger {
  color: #e60012 !important;
  margin-left: 4px;
}

.contact-modal__input:focus,
.contact-modal__select:focus,
.contact-modal__textarea:focus {
  outline: none;
  border-color: #030659;
  box-shadow: 0 0 0 3px rgba(3, 6, 89, 0.1);
}

/* Custom Select Arrow */
.contact-modal__select-wrapper {
  position: relative;
  width: 100%;
}

.contact-modal__select-wrapper::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #030659;
  pointer-events: none;
}

.contact-modal__select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 40px !important;
}

/* Policy agreement text */
.contact-modal__policy-text {
  text-align: center;
  font-size: 13px;
  line-height: 1.65;
  color: #030659;
  margin-top: 10px;
}

.contact-modal__policy-link {
  color: #030659;
  text-decoration: underline;
  font-weight: 700;
  transition: opacity 0.2s;
}

.contact-modal__policy-link:hover {
  opacity: 0.8;
}

/* Checkbox alignment */
.contact-modal__checkbox-container {
  display: flex;
  justify-content: center;
  margin-top: 8px;
  margin-bottom: 12px;
}

.contact-modal__checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.contact-modal__checkbox {
  width: 20px;
  height: 20px;
  border: 1.5px solid #030659;
  accent-color: #030659;
  cursor: pointer;
}

.contact-modal__checkbox-text {
  font-size: 15px;
  font-weight: 700;
  color: #030659;
}

/* Submit button styling */
.contact-modal__submit-container {
  display: flex;
  justify-content: center;
}

.contact-modal__submit-btn {
  background-color: #af934c; /* Gold/Bronze */
  color: #fff;
  border: none;
  border-radius: 30px;
  padding: 14px 64px;
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(175, 147, 76, 0.2);
  transition: background-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.contact-modal__submit-btn:hover {
  background-color: #937a3b;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(175, 147, 76, 0.35);
}

/* Responsive styles */
@media (min-width: 769px) {
  .modal__container--contact {
    padding: 60px 80px 48px;
  }
  
  .contact-modal__row {
    flex-direction: row;
    gap: 20px;
  }
  
  .contact-modal__field--half {
    width: 50%;
  }
}

/* ============================================================
   HEALTH PROGRAM SCHEDULE DETAIL MODAL SPECIFIC STYLING
   ============================================================ */

.modal__container--schedule-detail {
  max-width: 1292px;
  background: #f4f7fc;
  border-radius: 16px;
  padding: 60px 40px 48px;
}

.modal.is-open .modal__container--schedule-detail {
  transform: scale(1);
  opacity: 1;
}

.schedule-modal {
  font-family: var(--font-serif);
}

.schedule-modal__title {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  color: var(--color-navy-deep);
  line-height: 1.4;
  margin-bottom: 8px;
  letter-spacing: 0.03em;
}

.schedule-modal__title span {
  font-size: 24px;
}

.schedule-modal__note {
  text-align: center;
  font-size: 14px;
  color: #555;
  margin-bottom: 40px;
  font-family: var(--font-sans);
}

/* Day Rows */
.schedule-modal__rows {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.schedule-modal__day-row {
  background-color: #f7f9fc;
  border-radius: 16px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

/* DAY Badge */
.schedule-modal__day-badge {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: #030659;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(3, 6, 89, 0.2);
}

.schedule-modal__day-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1;
  margin-bottom: 2px;
}

.schedule-modal__day-number {
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}

/* Cards Wrapper */
.schedule-modal__cards-wrapper {
  display: flex;
  gap: 10px;
  flex: 1;
}

/* Base Card Styling */
.schedule-modal__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 8px;
  text-align: center;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #e1e7f0;
  box-shadow: 0 4px 12px rgba(12, 27, 64, 0.03);
  box-sizing: border-box;
  width: 120px;
  min-height: 175px;
  flex: 1;
}

.schedule-modal__card-num {
  font-family: var(--font-sans);
  font-size: 11px;
  color: #a0a0a0;
  margin-bottom: 8px;
  display: block;
}

.schedule-modal__card-title {
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  color: #030659;
  margin-bottom: 8px;
}

/* Text Colors */
.schedule-modal__card--gold .schedule-modal__card-title,
.schedule-modal__card--gold-bordered .schedule-modal__card-title {
  color: #bda054;
}

.schedule-modal__card-icon {
  margin-top: auto;
  width: 100%;
  height: 64px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.schedule-modal__card-icon img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Card Special: 1日観光 Giant Card */
.schedule-modal__card--wide {
  flex: 4.5;
  width: 510px;
  padding: 12px 16px;
  border: 1px solid #bda054;
  border-left-width: 3px;
}

.schedule-modal__wide-content {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-top: 10px;
  gap: 12px;
}

.schedule-modal__wide-spot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 25%;
}

.schedule-modal__spot-name {
  font-size: 10px;
  font-weight: 700;
  color: #030659;
  white-space: nowrap;
  letter-spacing: -0.02em;
}

.schedule-modal__spot-img {
  width: 52px;
  height: 52px;
  overflow: hidden;
  background-color: #fff;
}

.schedule-modal__spot-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Card Special: Gold Bordered Card (Day 5 Card 05) */
.schedule-modal__card--gold-bordered {
  border: 1px solid #bda054;
  border-left-width: 3px;
  background-color: #fff;
}

.schedule-modal__card-subtitle {
  font-family: var(--font-serif);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  color: #030659;
  margin-top: -4px;
  margin-bottom: 6px;
}

/* Responsive Styles for Schedule Detail Modal */
@media (max-width: 1023px) {
  .modal__container--schedule-detail {
    padding: 50px 16px 32px;
    width: 95%;
  }

  .schedule-modal__title {
    font-size: 22px;
    margin-bottom: 6px;
  }

  .schedule-modal__title span {
    font-size: 18px;
  }

  .schedule-modal__note {
    font-size: 13px;
    margin-bottom: 24px;
  }

  .schedule-modal__day-row {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 12px;
    gap: 16px;
  }

  .schedule-modal__day-badge {
    width: 56px;
    height: 56px;
  }

  .schedule-modal__day-number {
    font-size: 20px;
  }

  /* Horizontal Scroll on SP */
  .schedule-modal__cards-wrapper {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 12px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(3, 6, 89, 0.2) transparent;
  }

  /* Custom Webkit scrollbar for SP card row */
  .schedule-modal__cards-wrapper::-webkit-scrollbar {
    height: 4px;
  }
  .schedule-modal__cards-wrapper::-webkit-scrollbar-track {
    background: transparent;
  }
  .schedule-modal__cards-wrapper::-webkit-scrollbar-thumb {
    background: rgba(3, 6, 89, 0.2);
    border-radius: 2px;
  }

  .schedule-modal__card {
    width: 110px;
    min-height: 165px;
    flex: none;
  }

  .schedule-modal__card--wide {
    width: 320px;
    flex: none;
  }

  .schedule-modal__wide-content {
    gap: 8px;
  }

  .schedule-modal__spot-name {
    font-size: 9px;
  }

  .schedule-modal__spot-img {
    width: 44px;
    height: 44px;
  }
}







