@charset "UTF-8";

/* ---- 会社情報（固有のみ） ---- */

#company,
#message {
  --section-color: var(--medix-blue-deep);
  --line-color: var(--medix-blue-deep);
}

/* サブタイトル（代表挨拶・経営体系）と最初の見出しの間隔 */
#message .sub_title_box {
  padding-bottom: 4.75em;
}

@media screen and (max-width: 768px) {
  #message .sub_title_box {
    padding-bottom: 3.75em;
  }
}

#company .hero_img {
  margin: 0 0 1.5em;
}

#company .hero_img img,
#company .map_box img {
  display: block;
  width: 100%;
  height: auto;
}

#message #greeting .text_box {
  margin: 0;
  line-height: 2;
}

#message #system .preface {
  margin: 0 0 3.5em;
  line-height: 2;
}

#message #greeting .greeting_title {
  margin: 0;
  text-align: center;
}

#message #greeting .greeting_title img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 6em auto;
}

#message #greeting .text_box .sign {
  margin: 1.6em 0 0;
  padding-top: 0;
  text-align: right;
}

#message #greeting .text_box .sign img {
  display: inline-block;
  width: auto;
  max-width: 14em;
  height: auto;
  vertical-align: bottom;
}

#message #greeting .greeting_title img.sp,
#message #greeting .text_box .sign img.sp {
  display: none;
}

#company .outline_list a {
  color: var(--accent);
  text-decoration: underline;
}

#company .outline_list .def_row {
  border-bottom-color: #8094dd;
  border-bottom-color: var(--medix-blue-deep);
}

#company .outline_list .def_row:first-child {
  border-top: 1px dotted #8094dd;
  border-top: 1px dotted var(--medix-blue-deep);
}

#company .outline_list .def_row.is_hq>dd {
  min-width: 0;
}

#company .hq_text:not(:last-child),
#company .office_block .hq_text:not(:last-child) {
  margin: 0 0 1em;
}

#company .map_embed {
  position: relative;
  width: 100%;
  margin: 0 0 1em;
  overflow: hidden;
  background: #eef1f6;
  aspect-ratio: 16 / 9;
}

#company .map_embed iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

#company .office_block .map_embed {
  margin: 1.15em 0 1em;
}

#company .map_box {
  margin: 0 0 2em;
}

#company .map_box .img_placeholder {
  max-width: none;
}

#company .office_block {
  margin: 0 0 2em;
}

#company .office_head {
  gap: 1em;
  margin-bottom: 0.35em;
}

#company .office_name {
  display: inline-block;
  color: var(--medix-footer-accent);
  font-size: 1.55em;
  font-weight: 700;
  line-height: 1.35;
  padding-bottom: 0.2em;
  border-bottom: 2px solid var(--medix-footer-accent);
}

#company button.btn_accent {
  border: none;
  cursor: pointer;
  font-family: inherit;
}

/* ---- 営業所詳細ポップアップ（body 直下・最前面） ---- */
#medix_office_modal.office_modal {
  position: fixed;
  inset: 0;
  z-index: 2147483646;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  padding: 1.5em;
}

#medix_office_modal.office_modal[hidden] {
  display: none;
}

#medix_office_modal .office_modal_backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

#medix_office_modal .office_modal_dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 720px;
  max-height: 85vh;
  overflow: auto;
  padding: 2em 1.75em 1.75em;
  background: #fff;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

#medix_office_modal .office_modal_x {
  position: absolute;
  top: 0.65em;
  right: 0.75em;
  background: transparent;
  border: none;
  color: var(--medix-blue-deep);
  cursor: pointer;
  font-size: 1.5em;
  line-height: 1;
}

#medix_office_modal .office_modal_title {
  margin: 0 1.5em 0.85em 0;
  color: var(--medix-footer-accent);
  font-size: 1.35em;
  font-weight: 700;
  line-height: 1.4;
}

#medix_office_modal .office_modal_message {
  margin: 0 0 1.25em;
  color: #333;
  line-height: 1.9;
}

#medix_office_modal .office_modal_def {
  margin: 0 0 1.25em;
}

#medix_office_modal .def_row {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  gap: 1.25em;
  padding: 1.05em 0;
  border-bottom: 1px dotted #8094dd;
  border-bottom: 1px dotted var(--medix-blue-deep);
  -webkit-align-items: flex-start;
  align-items: flex-start;
}

#medix_office_modal .def_row>dt {
  width: 9.5em;
  max-width: 34%;
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
  color: #555;
  font-weight: 600;
}

#medix_office_modal .def_row>dd {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
  flex: 1;
  min-width: 0;
  color: #333;
  line-height: 1.75;
}

#medix_office_modal .office_modal_map {
  margin: 0 0 1em;
  aspect-ratio: 16 / 9;
  background: #eee;
}

#medix_office_modal .office_modal_map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

#medix_office_modal .office_modal_pdf {
  margin: 0;
}

#medix_office_modal .accent_link {
  color: var(--accent);
  text-decoration: underline;
}

body.office_modal_open {
  overflow: hidden;
}

#company .sports_list {
  --num: 3;
  --gap: 1.5em;
  gap: var(--gap);
  margin: 0 0 0.5em;
}

#company .sports_list .sports_card {
  width: calc((100% - var(--gap) * (var(--num) - 1)) / var(--num));
  min-width: 0;
}

#company .sports_card {
  display: block;
  overflow: hidden;
  background: #fff;
  border: 1px solid #ddd;
  color: inherit;
  -webkit-transition: -webkit-transform 0.25s ease;
  transition: transform 0.25s ease;
}

#company a.sports_card:hover,
#company a.sports_card:focus-visible {
  color: inherit;
  -webkit-transform: translateY(-2px);
  transform: translateY(-2px);
}

#company .sports_note {
  margin: 1em 0 0;
  font-size: 0.9em;
  line-height: 1.7;
  color: #556;
}

#company .sports_logo_box {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  min-height: 160px;
  padding: 1em;
  background: #f7f7f7;
  color: var(--medix-blue-deep);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

#company .sports_logo_box img {
  display: block;
  width: auto;
  height: auto;
  max-width: 86%;
  max-height: 120px;
  object-fit: contain;
}

#company .sports_caption {
  display: block;
  padding: 0.85em 1em;
  background: var(--medix-blue-deep);
  color: #fff;
  text-align: center;
  font-size: 0.95em;
}

#company .guideline_item:not(:last-child) {
  margin: 0 0 1.75em;
}

#company .guideline_item .title {
  margin: 0;
  font-weight: 700;
  line-height: 1.6;
}

#company .guideline_item .text {
  margin: 0.75em 0 0;
  line-height: 1.9;
}

#company .guideline_item .text strong,
#company .guideline_item .text b {
  font-weight: 700;
}

#company .guideline_item .cta_wrap {
  margin-top: 0.85em;
}

#company .recruit_box {
  padding: 2em 1.5em;
  background: #e86162;
  background: -webkit-linear-gradient(top, #f08a8b, var(--medix-footer-accent));
  background: linear-gradient(180deg, #f08a8b, var(--medix-footer-accent));
  color: #fff;
  text-align: center;
}

#company .recruit_box .recruit_title {
  margin: 0 0 0.75em;
  font-size: 1.25em;
  font-weight: 700;
}

#company .recruit_box .btn_accent {
  background: #fff;
  color: var(--medix-footer-accent);
}

@media screen and (max-width: 768px) {
  #message #system .preface {
    margin-bottom: 2.5em;
  }

  #message #greeting .greeting_title img.pc,
  #message #greeting .text_box .sign img.pc {
    display: none;
  }

  #message #greeting .greeting_title {
    text-align: left;
  }

  #message #greeting .greeting_title img,
  #message #greeting .greeting_title img.sp {
    display: block;
    margin: 6em 0;
  }

  #message #greeting .text_box .sign img.sp {
    display: inline-block;
  }

  #company .office_head {
    -webkit-align-items: flex-start;
    align-items: flex-start;
    -webkit-flex-direction: column;
    flex-direction: column;
  }

  #company .sports_list {
    --num: 2;
    --gap: 1.25em;
  }
}

@media screen and (max-width: 480px) {
  #company .sports_list {
    --num: 1;
  }
}
