/* ====== Departures Page Styles ====== */

/* ====== PAGE TITLE AREA ====== */
.dpt-page-title {
  background-color: #5a3450;
  background-image: url('/wp-content/uploads/2021/09/pattern-bg.png');
  background-repeat: repeat;
  background-size: auto;
  color: #fff;
  text-align: center;
  padding: 72px 24px 64px;
  position: relative;
}
.dpt-page-title::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .15);
  pointer-events: none;
}
.dpt-page-title::after {
  content: "";
  display: block;
  width: 40px;
  height: 1px;
  background: var(--gold-light);
  margin: 24px auto 0;
  position: relative;
}
.dpt-page-title__en {
  font-family: var(--font-en);
  font-size: .95em;
  font-weight: 300;
  font-style: italic;
  color: var(--gold-light);
  letter-spacing: .12em;
  margin-bottom: 8px;
}
.dpt-page-title__ja {
  font-size: 1.6em;
  font-weight: 500;
  letter-spacing: .15em;
  margin: 0;
}

/* ====== MAIN CONTENT AREA ====== */
.dpt-content {
  max-width: var(--article_size, 880px);
  margin: 0 auto;
  padding: 64px 24px 80px;
}

/* ====== HEADINGS ====== */
.dpt-page .post_content h2:where(:not([class^="swell-block-"]):not(.faq_q):not(.p-postList__title)) {
  background: none;
  color: var(--color_main, #5a3450);
  border: none;
  border-bottom: 1px solid var(--color_main, #5a3450);
  padding: .6em 0;
  font-size: 1.3em;
  font-weight: 500;
  letter-spacing: .08em;
  position: relative;
}
.dpt-page .post_content h2:where(:not([class^="swell-block-"]):not(.faq_q):not(.p-postList__title))::before {
  content: none;
}
.dpt-page .post_content h2:where(:not([class^="swell-block-"]):not(.faq_q):not(.p-postList__title))::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 60px;
  height: 2px;
  background: var(--gold);
}

.dpt-page .post_content h3:where(:not([class^="swell-block-"]):not(.faq_q):not(.p-postList__title)) {
  color: var(--color_main, #5a3450);
  border: none;
  padding: 0 0 .4em .8em;
  border-left: 3px solid var(--gold);
  font-size: 1.15em;
  font-weight: 500;
  letter-spacing: .06em;
}
.dpt-page .post_content h3:where(:not([class^="swell-block-"]):not(.faq_q):not(.p-postList__title))::before {
  content: none;
}

.dpt-page .post_content h4:where(:not([class^="swell-block-"]):not(.faq_q):not(.p-postList__title)) {
  color: var(--color_main, #5a3450);
  border-left: 2px solid var(--gold);
  padding-left: 12px;
  font-size: 1.05em;
  font-weight: 500;
}

/* ====== TABLES ====== */
.dpt-page .wp-block-table table {
  border-collapse: collapse;
  width: 100%;
  font-size: .9em;
}
.dpt-page .wp-block-table th,
.dpt-page .wp-block-table td {
  border: 1px solid var(--color_border, #e0d8d4);
  padding: 14px 16px;
  line-height: 1.7;
}
/* Only apply header style to thead th, not tbody th (plan page uses th for row numbers) */
.dpt-page .wp-block-table thead th {
  background: var(--color_main, #5a3450);
  color: #fff;
  font-weight: 500;
  letter-spacing: .06em;
}

/* ====== BUTTONS (SWELL) ====== */
.dpt-page [class*=is-style-btn_] {
  --the-btn-color: var(--color_main, #5a3450);
}
.dpt-page .swell-block-button__link,
.dpt-page [class*=is-style-btn_] a {
  letter-spacing: .08em;
  font-weight: 600;
  transition: all .35s ease;
}
.dpt-page .is-style-btn_normal a:hover {
  box-shadow: 0 6px 20px rgba(90, 52, 80, .2);
}

/* ====== Reset SWELL custom CSS overrides ====== */
.dpt-page input[type="text"],
.dpt-page input[type="password"],
.dpt-page input[type="email"],
.dpt-page input[type="url"],
.dpt-page input[type="tel"],
.dpt-page input[type="date"],
.dpt-page select,
.dpt-page textarea,
.dpt-page .field {
  display: block;
  width: 100%;
  height: auto;
  padding: 14px 16px;
  border: 1px solid #e0d8d4;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  color: #4a3040;
  font-size: .9em;
  font-family: inherit;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: .02em;
  transition: border-color .3s, box-shadow .3s;
  -webkit-appearance: none;
  resize: none;
}
.dpt-page textarea {
  min-height: 180px;
  resize: vertical;
}
.dpt-page input:focus,
.dpt-page textarea:focus,
.dpt-page select:focus {
  outline: none;
  border-color: #b8965a;
  box-shadow: 0 0 0 3px rgba(184, 150, 90, .1);
  background: #fff;
}
.dpt-page input::placeholder,
.dpt-page textarea::placeholder {
  color: #c5bab8;
}
.dpt-page .haveto {
  display: inline-block;
  font-size: .6em;
  padding: 1px 6px;
  background: #5a3450;
  color: #fff;
  border-radius: 0;
  margin-left: 6px;
  margin-right: 0;
  position: static;
  bottom: auto;
  vertical-align: middle;
  letter-spacing: .02em;
  font-weight: 500;
  line-height: 1.6;
}
.dpt-page .any {
  display: inline-block;
  font-size: .6em;
  padding: 1px 6px;
  background: transparent;
  border: 1px solid #c5bab8;
  color: #8a7a80;
  border-radius: 0;
  margin-left: 6px;
  margin-right: 0;
  position: static;
  bottom: auto;
  vertical-align: middle;
  letter-spacing: .02em;
  font-weight: 500;
  line-height: 1.6;
}
.dpt-page .inquiry th {
  text-align: left;
  font-size: .85em;
  color: #5a3450;
  background: #faf8f6;
  border: 1px solid #e0d8d4;
  padding: 12px 14px;
}
.dpt-page .inquiry td {
  font-size: .85em;
  border: 1px solid #e0d8d4;
  padding: 12px 14px;
}
.dpt-page #formbtn,
.dpt-page .wpcf7 input[type="submit"] {
  display: block;
  width: 100%;
  max-width: 360px;
  height: auto;
  margin: 32px auto 0;
  padding: 18px 32px;
  background: #5a3450;
  color: #fff;
  font-size: .95em;
  font-weight: 600;
  letter-spacing: .12em;
  line-height: 1.5;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: background .35s, box-shadow .35s;
}
.dpt-page #formbtn:hover,
.dpt-page .wpcf7 input[type="submit"]:hover {
  background: #4a2a40;
  color: #fff;
  border: none;
  box-shadow: 0 4px 20px rgba(90, 52, 80, .25);
}
.dpt-page .wpcf7-acceptance {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .85em;
  color: #8a7a80;
  margin-top: 1em;
}
.dpt-page .wpcf7-acceptance input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #5a3450;
}
.dpt-page .wpcf7-not-valid-tip {
  color: #c44;
  font-size: .8em;
  margin-top: 4px;
}
.dpt-page .wpcf7-not-valid {
  border-color: #c44;
}
.dpt-page .wpcf7-response-output {
  border: none;
  padding: 16px 20px;
  margin: 2em 0 0;
  font-size: .9em;
  text-align: center;
}
.dpt-page .wpcf7 form.sent .wpcf7-response-output {
  background: rgba(90, 52, 80, .05);
  color: #5a3450;
}

/* ====== FORMS (Contact Form 7) ====== */
.dpt-page .wpcf7 {
  max-width: 680px;
  margin: 0 auto;
}
.dpt-page .wpcf7 p {
  margin-bottom: 1.5em;
}

/* ====== COVER BLOCKS ====== */
.dpt-page .wp-block-cover {
  border-radius: 0;
}

/* ====== IMAGES ====== */
.dpt-page .dpt-content .wp-block-image img {
  border-radius: 0;
  height: auto !important;
  width: auto;
  max-width: 100%;
}
.dpt-page .dpt-content img {
  height: auto;
}
.dpt-page .dpt-content .wp-block-cover__image-background {
  object-fit: cover;
}
.dpt-page .dpt-content .luminous,
.dpt-page .dpt-content .wp-block-image img,
.dpt-page .dpt-content .wp-block-gallery img {
  aspect-ratio: auto !important;
  height: auto !important;
}

/* ====== PARAGRAPHS ====== */
.dpt-page .post_content p {
  line-height: 2;
  letter-spacing: .02em;
}

/* ====== BLOCKQUOTE ====== */
.dpt-page .post_content blockquote {
  border-left-color: var(--gold);
}

/* ====== BREADCRUMB ====== */
.dpt-page .p-breadcrumb {
  display: none;
}

/* ====== PLAN PAGE — Tab Compact ====== */
.dpt-page .swell-block-tab .c-tabList {
  gap: 0;
}
.dpt-page .swell-block-tab .c-tabList__button {
  background: var(--color_gray, #f5f2ef);
  color: var(--color_main, #5a3450);
  border: 1px solid var(--color_border, #e0d8d4);
  border-bottom: none;
  font-size: .85em;
  font-weight: 600;
  letter-spacing: .06em;
  padding: 12px 20px;
  transition: all .25s;
}
.dpt-page .swell-block-tab .c-tabList__button[aria-selected="true"] {
  background: var(--color_main, #5a3450);
  color: #fff;
  border-color: var(--color_main, #5a3450);
}
.dpt-page .swell-block-tab .c-tabBody {
  border: 1px solid var(--color_border, #e0d8d4);
  padding: 24px;
}
/* Compact images in plan tabs */
.dpt-page .swell-block-tab .wp-block-image {
  max-width: 600px;
  margin: 0 auto 1.5em;
}
/* Price highlight */
.dpt-page .swell-block-tab h3 {
  font-size: 1.1em;
}

/* ====== ESTIMATE PAGE — Yes/No Quiz ====== */
.dpt-page #yesno_wrap {
  max-width: 640px;
  margin: 2em auto;
}
.dpt-page .yesno_q {
  border: none;
  border-radius: 0;
  background: #fff;
  box-shadow: 0 2px 16px rgba(0,0,0,.06);
  padding: 2em;
  text-align: center;
}
.dpt-page .yesno_q dt {
  margin-bottom: 1em !important;
  padding: .5em;
}
.dpt-page .yesno_q dt span {
  background: var(--color_main, #5a3450);
  color: #fff;
  border-radius: 0;
  padding: .5em 1.2em;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: .08em;
}
.dpt-page .yesno_q dd {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color_main, #5a3450);
  padding: 1em !important;
  line-height: 1.8;
}
.dpt-page #choices {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  list-style: none;
  padding: 0;
}
.dpt-page #choices li button {
  width: 100%;
}
.dpt-page #choices li {
  margin-bottom: 12px !important;
}
.dpt-page #choices li button {
  background: var(--color_main, #5a3450);
  color: #fff;
  border: none;
  border-radius: 0;
  padding: 16px 24px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .06em;
  cursor: pointer;
  transition: all .3s ease;
}
.dpt-page #choices li button:hover {
  background: #4a2a40;
  box-shadow: 0 4px 16px rgba(90, 52, 80, .2);
}
/* Back button */
.dpt-page .yesno_back,
.dpt-page [data-onclick="yesnoBack"] {
  display: inline-block;
  margin-top: 16px;
  padding: 10px 32px;
  background: none;
  border: 1px solid var(--color_border, #e0d8d4);
  color: var(--color_main, #5a3450);
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .06em;
  cursor: pointer;
  transition: all .3s;
}
.dpt-page .yesno_back:hover,
.dpt-page [data-onclick="yesnoBack"]:hover {
  border-color: var(--color_main, #5a3450);
  background: var(--color_main, #5a3450);
  color: #fff;
}
/* Result area */
.dpt-page #yesno_result,
.dpt-page .yesno_result {
  text-align: center;
  padding: 2em;
  background: #fff;
  box-shadow: 0 2px 16px rgba(0,0,0,.06);
}

/* ====== RESPONSIVE ====== */
@media (max-width: 959px) {
  .dpt-page-title {
    padding: 48px 20px 40px;
  }
  .dpt-page-title__ja {
    font-size: 1.3em;
  }
  .dpt-content {
    padding: 48px 20px 60px;
  }
}
@media (max-width: 500px) {
  .dpt-page .inquiry td,
  .dpt-page .inquiry th {
    display: block;
    width: 100%;
    border-top: none;
    box-sizing: border-box;
  }
  .dpt-page .inquiry tr:first-child th {
    border-top: 1px solid #e0d8d4;
  }
  .dpt-page .inquiry th {
    padding: 10px 14px 6px;
    font-size: .8em;
  }
  .dpt-page .inquiry td {
    padding: 6px 14px 14px;
  }
  .dpt-page .haveto,
  .dpt-page .any {
    display: block;
    width: fit-content;
    margin-left: 0;
    margin-top: 4px;
    font-size: .55em;
  }
}
