@charset "UTF-8";

/* ==========================================================================
   MEDEICAL MENU
   ========================================================================== */
html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

:target {
  scroll-margin-top: 60px;
}

.medical-menu .container {
  max-width: 1440px;
  margin-inline: auto;
  padding: 0 40px;
  display: flex;
  gap: 0;
}

.l-sidebar {
  flex: 0 0 320px;
  position: sticky;
  top: 80px;
  align-self: flex-start;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 12px;

  li + li {
    margin-top: 24px;
  }
}

.btn--sidebar {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #333;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: 0;
  border: none;
  cursor: pointer;
  position: relative;

  &::before {
    content: "";
    display: inline-block;
    width: 30px;
    height: 20px;
    border-radius: 100px;
    background-color: var(--color-primary);
    flex-shrink: 0;
    background-image: url("data:image/svg+xml;utf8, \<svg width='9' height='10' viewBox='0 0 9 10' fill='none' xmlns='http://www.w3.org/2000/svg'>\<path d='M4.49988 10L9 5.6179L8.27888 4.91569L5.04809 8.06175L5.04809 -2.20659e-07L3.95191 -1.72744e-07L3.95191 8.06176L0.721121 4.91569L2.45566e-07 5.6179L4.49988 10Z' fill='white'/>\</svg>");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 50% 50%;
  }
}

.medical-menu__main {
  flex: 1;
  max-width: 1000px;
}

.medical-menu .page-title {
  font-family: "Zen Maru Gothic", sans-serif;
  font-size: 42px;
  font-weight: 500;
  color: var(--color-primary);
  line-height: 1.7;
  position: relative;
  padding-bottom: 16px;
  margin-bottom: 50px;

  &::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 20px;
    height: 3px;
    background: var(--color-primary);
    border-radius: 100px;
  }

  &::after {
    content: "";
    position: absolute;
    left: 27px;
    bottom: 0;
    width: calc(100% - 27px);
    height: 3px;
    background: #D6E0E9;
    border-radius: 100px;
  }
}

@media (max-width: 1024px) {
  .medical-menu .container {
    flex-direction: column;
    padding: 0 4%;
  }

  .l-sidebar {
    flex: none;
    width: 100%;
    position: static;
    top: auto;
    align-self: auto;
    padding-top: 0;

    li + li {
      margin-top: 0;
    }
  }

  .l-side-nav ul {
    display: flex;
    gap: 20px;
    padding-bottom: 40px;
  }

  .btn--sidebar {
    gap: 8px;
    font-size: 14px;

    &::before {
      width: 24px;
      height: 16px;
    }
  }

  .medical-menu__main {
    max-width: none;
    width: 100%;
  }

  .medical-menu .page-title {
    font-size: 34px;
    padding-bottom: 10px;
    margin-bottom: 40px;
  }
}

@media (max-width: 640px) {
  .l-side-nav ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 40px;
  }

  .medical-menu .page-title {
    font-size: 28px;
  }
}

.medical-menu-flow__flex {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  counter-reset: step;
  padding-top: 10px;
}

.medical-menu-flow__item {
  background: var(--color-white);
  border-radius: 30px;
  border: 1px solid var(--color-primary);
  padding: 40px clamp(10px, 4vw, 30px);
  width: calc(100% - 60px);
}

.medical-menu-flow__term-number {
  position: relative;
  counter-increment: step;
  padding-right: 80px;

  &::before {
    content: counter(step, decimal-leading-zero);
    font-family: "Zen Maru Gothic", sans-serif;
    font-size: 22px;
    font-weight: 500;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: #eff3f7;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    border-radius: 50%;
    display: grid;
    place-items: center;
  }
}

.medical-menu-flow__dl {
  display: flex;
  flex-direction: row;
  align-items: center;
  margin: 0;
}

.medical-menu-flow__term {
  width: 300px;
  flex-shrink: 0;
  text-align: left;
  font-family: "Zen Maru Gothic", sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-primary);
}

.medical-menu-flow__desc {
  margin: 0;
  flex: 1;
  border-left: 1px dotted var(--color-primary-light);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  padding-left: 50px;
}

.medical-menu-flow__desc-list-item {
  position: relative;
  padding-left: 18px;

  &::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 12px;
    height: 12px;
    background: #FFE18D;
    border-radius: 50%;
  }
}

.arrow {
  position: relative;
  width: 18px;
  height: 20px;
  margin: 0 auto;

  &::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background-color: #1a3a8a;
  }

  &::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 9px;
    height: 9px;
    border-bottom: 2px solid #1a3a8a;
    border-right: 2px solid #1a3a8a;
    transform: translateX(-50%) rotate(45deg);
  }
}

@media (max-width: 1024px) {
  .medical-menu-flow__term-number {
    padding-right: 50px;

    &::before {
      font-size: 18px;
      width: 40px;
      height: 40px;
    }
  }

  .medical-menu-flow__term {
    width: 260px;
    font-size: 16px;
  }

  .medical-menu-flow__desc {
    padding-left: 30px;
  }

  .medical-menu-flow__desc-list-item {
    padding-left: 16px;

    &::before {
      top: 0.6em;
      width: 9px;
      height: 9px;
    }
  }
}

@media (max-width: 640px) {
  .medical-menu-flow__item {
    width: strech;
  }

  .medical-menu-flow__term-number {
    padding-right: 40px;

    &::before {
      font-size: 18px;
      width: 30px;
      height: 30px;
    }
  }

  .medical-menu-flow__dl {
    flex-direction: column;
    gap: 40px 0;
  }

  .medical-menu-flow__term {
    width: 100%;
    font-size: 14px;
  }

  .medical-menu-flow__desc {
    font-size: 13px;
    border-left: none;
    border-top: 1px dotted var(--color-primary-light);
    padding: 40px 0 0;
  }

  .medical-menu-flow__desc-list-item {
    padding-left: 16px;
  }
}

.medical-menu__item {
  padding: 100px 0 145px;
}

.medical-menu__itemFlex {
  padding-bottom: 30px;
  display: flex;
  align-items: flex-start;
  gap: 80px;
  padding-top: 10px;
}

.medical-menu__textbox {
  flex: 1;
}

.medical-menu__text {
  font-size: 16px;
  line-height: 2;
}

.medical-menu__img {
  width: 260px;
  flex-shrink: 0;
}

.medical-menu__img-img {
  width: 100%;
  height: auto;
  display: block;
}

.medical-menu__itemCard {
  padding-bottom: 50px;
}

.medical-menu-card__header {
  padding: 20px 40px 0;
  width: calc(100% - 80px);
  position: relative;
  background: linear-gradient(to top, var(--color-primary) 50%, transparent 50%);
  z-index: 0;

  &::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--color-primary);
    border-radius: 30px 30px 0 0;
    width: 50%;
    z-index: -1;
  }

  &::after {
    content: "";
    inset: 0;
    position: absolute;
    background: #F5F8FA;
    border-bottom-left-radius: 30px;
    width: 50%;
    left: 50%;
    z-index: -1;

  }
}

.bg--white .medical-menu-card__header::after {
background: var(--color-white);
}
.medical-menu__itemCardText {
	font-size: 22px;
  font-weight: 700;
  line-height: 1.7;
  color: var(--color-white);
  width: calc(50% - 20px);
  display: inline-flex;
  align-items: center;
  text-box: trim-both cap alphabetic;

  &::before {
    content: "";
    display: inline-block;
    width: 1.86em;
    height: 1.86em;
    background-image: url('../img/medical-menu/card__header_ico.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-right: 22px;
  }
}

.medical-menu-card__body {
  background: var(--color-primary);
  border-radius: 0 30px 30px 30px;
}

.medical-menu__itemCardList {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px 40px;
  padding: 50px 40px;
  list-style: none;
}

.medical-menu__itemCardItem {
  font-size: 16px;
  font-weight: 600;
  line-height: 2;
	padding-bottom: 0.5em;
  color: var(--color-white);
  border-bottom: 1px dotted var(--color-white);
  display: inline-flex;
  align-items: center;

  &::before {
    content: "";
    display: inline-block;
    width: 1.5em;
    height: 1.5em;
    background-image: url('data:image/svg+xml;charset=utf8, <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><rect width="24" height="24" rx="3" fill="%23FFF4D7"/><path d="M7 11.5 11 15.5 17.5 9" stroke="%233A5596" stroke-width="3" fill="none" stroke-linecap="round" stroke-linejoin="round"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-right: 20px;
  }
}

.medical-menu .page-subtitle {
  font-family: "Zen Maru Gothic", sans-serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.7;
  position: relative;
  padding: 5px 0 12px 16px;
  border-bottom: 1px dotted var(--color-primary);

  &::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 4px;
    height: 28px;
    background-color: var(--color-primary);
    border-radius: 100px;
  }
}

.medical-menu__itemNoteText {
  padding: 30px 0;
  font-size: 16px;
  line-height: 2;
}

.medical-menu__itemPanel {
  background: #FCFAF3;
  border-radius: 30px;
  padding: 40px clamp(20px, 4vw, 60px);
}

.medical-menu__itemPanelItem {
  font-size: 16px;
  line-height: 2;
  position: relative;
  padding-left: 18px;
  margin-bottom: 6px;

  &::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.8em;
    width: 9px;
    height: 9px;
    background: #FFE18D;
    border-radius: 50%;
  }
}

.medical-menu__itemNote.medical-menu__drive{
	padding-top: 80px
}
.bg--white {
  position: relative;

  &::before {
    content: "";
    position: absolute;
    top: 0;
    left: calc(calc(100vw - 100%) * -1 - 40px);
    right: calc(calc(100vw - 100%) * -1 - 40px);
    height: 100%;
    background: var(--color-white);
    z-index: -1;
  }
}

@media (max-width: 1400px) {
.bg--white::before {
    left: -360px;
    right: -40px;
  }
}
@media (max-width: 1024px) {
  .medical-menu__item {
    padding: 60px 0 80px;
  }

  .medical-menu__itemFlex {
    gap: 40px;
  }

  .medical-menu__itemCard {
    padding-bottom: 40px;
  }

  .medical-menu-card__header {
    padding: 20px 20px 0;
max-width: 1024px;
width: 92%;
  }

  .medical-menu__itemCardText {
    font-size: 18px;

    &::before {
      margin-right: 18px;
    }
  }

  .medical-menu-card__body {
    background: var(--color-primary);
    border-radius: 0 30px 30px 30px;
  }

  .medical-menu__itemCardList {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 20px 20px 50px;
    list-style: none;
  }

  .medical-menu__itemCardItem::before {
    margin-right: 16px;
  }

  .medical-menu .page-subtitle {
    font-size: 18px;
  }

  .medical-menu__itemNoteText {
    padding: 40px 0;
    font-size: 16px;
    line-height: 2;
  }

  .medical-menu__itemPanelItem {
    padding-left: 16px;
  }
	
	.medical-menu__itemNote.medical-menu__drive{
	padding-top: 60px
}
	

  .bg--white {
    position: static;
    background: var(--color-white);
    margin: 0 -4%;
    padding-left: 4%;
    padding-right: 4%;

    &::before {
    content: none;
  }
}
}

@media (max-width: 640px) {
  .medical-menu__itemFlex {
    flex-direction: column;
  }

  .medical-menu__text {
    font-size: 13px;
  }

  .medical-menu__img {
    width: 50%;
    margin-inline: auto;
  }

  .medical-menu-card__header::before {
    width: 70%;
  }

  .medical-menu-card__header::after {
    width: 30%;
    left: 70%;
  }

  .medical-menu__itemCardText {
    font-size: 15px;
    width: calc(70% - 20px);

    &::before {
      margin-right: 10px;
    }
  }

  .medical-menu__itemCardList {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    grid-auto-flow: row;
    gap: 20px;
    padding: 20px 20px 50px;
    list-style: none;
  }

  .medical-menu__itemCardItem {
    font-size: 13px;
    line-height: 2;

    &::before {
      width: 1em;
      height: 1em;
      margin-right: 10px;
    }
  }

  .medical-menu .page-subtitle {
    font-size: 16px;
  }

  .medical-menu__itemNoteText {
    font-size: 13px;
  }

  .medical-menu__itemPanelItem {
    font-size: 13px;
  }
}