/* =========================================================
   Contact (v25)
   ========================================================= */

/* ===============================
   Contact grid / layout
   moved from: /profile/css/profile.css
   =============================== */

/* Outer wrapper */
.box_pro_b {
  margin: 20px 0 0 0;
}

/* Head office block */
.box_pro4 {
  margin: 0 0 16px 10px;
}

/* Row wrapper (per group of departments) */
.contact-row {
  width: 100%;
  margin: 0 0 24px 0;
  justify-items: start;
}

/* PC: Row 1 has 4 columns; Rows 2 and 3 have 3 columns */
@media screen and (min-width: 769px) {

  .contact-row1,
  .contact-row2,
  .contact-row3 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px 6px;
    justify-items: start;
  }

}

/* Individual department block */
.contact-dept {
  text-align: center;
}

.contact-dept .box_pro5 {
  margin-bottom: 14px;
}

.contact-dept .box_pro6 {
  font-size: 12.5px;
  line-height: 1.7;
}

/* Department name button */
.kakomi1 {
  margin: 0 auto;
  padding: 8px;
  width: 160px;
  color: #fff;
  background-color: #7b6155;
  border-radius: 3px;
}

/* Section headings in the Contact area */
main h2 {
  font-family: "dnp-shuei-mgothic-std", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 18px;
  line-height: 170%;
  font-feature-settings: 'palt';
  margin: 0;
}

/* Sapporo / Nagoya branches + Japan map */
.contact-branches {
  padding-top: 10px;
}

.box_pro7,
.box_pro8 {
  margin: 0 0 16px 10px;
}

.box_pro8 {
  padding-top: 10px;
}

.cnt-section .box_mds {
  margin-bottom: 8px;
}

/* PC (769px and above): arrange horizontally */
@media screen and (min-width: 769px) {

  .contact-branches {
    display: grid;
    grid-template-columns: 1.7fr 1.3fr;
    column-gap: 14px;
    row-gap: 0;
    margin-top: 20px;
  }

  .contact-branches .box_pro7 {
    margin: 0 0 0 10px;
  }

  .contact-branches .box_pro8 {
    margin: 0;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
  }

  .contact-branches .box_pro8 img {
    width: 120%;
    max-width: none;
    height: auto;
    display: block;
  }

}

/* Contact Page – Mobile Adjustments */
@media screen and (max-width: 768px) {

  .box_pro_b {
    margin: 16px 0 0 0;
  }

  .contact-row1,
  .contact-row2,
  .contact-row3 {
    display: block;
  }

  .contact-dept {
    margin: 0 0 16px 0;
  }

}


/* ===============================
   Sections
   =============================== */

.cnt-section {
  margin-top: 3.2em;
}

.cnt-section:first-of-type {
  margin-top: 0;
}

.cnt-section--compact {
  margin-top: 2.2em;
}

.cnt-subspacer {
  height: 1.8em;
}

.cnt-note {
  margin: 0;
  padding: 0 0 1.2em;
  line-height: 1.8;
}

.cnt-cal-note {
  margin-top: 1.2em;
}

.cnt-hours {
  padding-left: 10px;
}


/* ===============================
   Forms (contact-forms)
   =============================== */

.contact-forms .form-link {
  margin: 0;
  padding-bottom: 4px;
}

.contact-forms .form-link--second {
  padding-top: 16px;
  padding-bottom: 4px;
}

.contact-forms .form-link a {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
}


/* ===============================
   Business day calendar
   =============================== */

.cal_wrap {
  margin: 0 auto;
  width: 740px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

div.cal_wrapper {
  padding: 10px 0;
}

div.cal_wrapper table.cal tr th p {
  float: left;
  padding: 5px;
  margin: 0;
  color: #876d4a;
  font-family: "montserrat", "source-han-sans-japanese", sans-serif;
  font-size: 16px;
}

div.cal_wrapper table.cal tr td {
  border-top: solid 1px #eee;
}

div.cal_wrapper table.cal tr td {
  font-family: "montserrat", "source-han-sans-japanese", sans-serif;
  font-size: 10px;
  text-align: center;
  padding: 2px;
}

div.cal_wrapper table.cal tr.headline td {
  padding: 5px 0;
  color: #666;
}

div.cal_wrapper table.cal tr.headline {
  background-color: #eee;
}

div.cal_wrapper table.cal tr td div {
  position: relative;
  padding: 5px 15px;
  font-family: "montserrat", "source-han-sans-japanese", sans-serif;
  font-size: 11px;
  text-align: center;
  background-color: #fff;
  border-radius: 3px;
}

div.cal_wrapper table.cal tr td div.Sun {
  color: #d53a3e;
  background-color: #fee;
}

div.cal_wrapper table.cal tr td div.Today {
  font-weight: bolder;
}

div.cal_wrapper table.cal tr td div.Holyday {
  font-weight: normal;
  color: #d53a3e;
  background-color: #fee;
}

div.cal_wrapper table.cal tr td div.backward {
  color: #ccc;
  font-weight: normal;
  background-color: #fff;
  border-radius: 3px;
}


/* ===============================
   Calendar – Mobile Adjustments
   =============================== */

@media screen and (max-width: 768px) {

  .cal_wrap {
    width: 100%;
    grid-template-columns: 1fr;
    gap: 12px;
    box-sizing: border-box;
    padding: 0 4px;
  }

  div.cal_wrapper {
    padding: 6px 0;
  }
}