@charset "utf-8";

:root {

  /* 専門外来 */
  --guidecolor-1: 32, 176, 113;
  /* 専門治療 */
  --guidecolor-2: 22, 188, 213;
  /* 専門検査 */
  --guidecolor-3: 244, 77, 116;

}

/** ***************************************************************************
 * 当院専門医療のご案内
 * ************************************************************************* */

/** ***************************************************************************
 * アンカーナビ
 */

#guide div.anchor-nav ul.list {
  counter-reset: number;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 10px;
}

#guide div.anchor-nav ul.list li {
  counter-increment: number;
}

#guide div.anchor-nav ul.list a {
  padding: 5px 15px;
  color: #fff;
  line-height: 1.4;
  font-family: var(--font-maru-sans);
  font-weight: 500;
  text-decoration: none;
  border-radius: 6px;
  border: 2px solid rgb(var(--guidecolor-1));
  display: block;
  transition: background-color 0.3s ease-in-out 0.0s;
  background-color: rgb(var(--guidecolor-1));
}

#guide div.anchor-nav ul.list a:hover {
  background-color: rgba(var(--guidecolor-1), 0.85);
}

@media screen and (min-width:768px) {

  #guide div.anchor-nav ul.list {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 15px;
  }

  #guide div.anchor-nav ul.list li {
    width: calc(100% / 3 - 10px);
  }

  #guide div.anchor-nav ul.list a {
    height: 100%;
    padding: 15px;
  }

}

/* 専門外来 */

#guide div.anchor-nav ul.list :nth-child(1) a {
  border-color: rgb(var(--guidecolor-1));
  background-color: rgb(var(--guidecolor-1));
}

#guide div.anchor-nav ul.list :nth-child(1) a:hover {
  background-color: rgba(var(--guidecolor-1), 0.85);
}

/* 専門治療 */

#guide div.anchor-nav ul.list :nth-child(2) a {
  border-color: rgb(var(--guidecolor-2));
  background-color: rgb(var(--guidecolor-2));
}

#guide div.anchor-nav ul.list :nth-child(2) a:hover {
  background-color: rgba(var(--guidecolor-2), 0.85);
}

/* 専門検査 */

#guide div.anchor-nav ul.list :nth-child(3) a {
  border-color: rgb(var(--guidecolor-3));
  background-color: rgb(var(--guidecolor-3));
}

#guide div.anchor-nav ul.list :nth-child(3) a:hover {
  background-color: rgba(var(--guidecolor-3), 0.85);
}

/**
 * タイトル
 */

#guide div.anchor-nav ul.list div.title {
  letter-spacing: 2px;
  line-height: 1;
  font-size: 1.5em;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.25em;
}

#guide div.anchor-nav ul.list div.title::before {
  content: counter(number, decimal-leading-zero) '.';
  font-family: var(--font-number);
  font-size: 1.75em;
}

#guide div.anchor-nav ul.list div.title::after {
  content: '';
  width: 1em;
  height: 1em;
  margin-left: 0.25em;
  background: url("../_image/_common/icon-arrow-3.png") 0 0 / 100% 100% no-repeat;
  filter: brightness(0) invert(1);
  transform: rotate(90deg);
  flex-shrink: 0;
}

/**
 * テキスト
 */

#guide div.anchor-nav ul.list div.text {
  line-height: 1.5;
  font-size: 0.875em;
}

@media screen and (min-width:768px) {

  #guide div.anchor-nav ul.list div.text {
    font-size: 0.8125em;
  }

}

/** ***************************************************************************
 * 専門医療
 */

#guide section.guide-contents {
  padding: 15px 15px 20px;
  counter-increment: number;
  border-radius: 10px;
  background-color: #fff;
  position: relative;
  z-index: 0;
}

#guide section.guide-contents::before {
  content: '';
  width: calc(100% - 30px);
  border-bottom: 3px solid rgb(var(--accentcolor-1));
  position: absolute;
  z-index: 1;
  top: 0;
  left: 15px;
}

/* 専門外来 */

#guide section.guide-contents:nth-of-type(1)::before {
  border-color: rgb(var(--guidecolor-1));
}

/* 専門治療 */

#guide section.guide-contents:nth-of-type(2)::before {
  border-color: rgb(var(--guidecolor-2));
}

/* 専門検査 */

#guide section.guide-contents:nth-of-type(3)::before {
  border-color: rgb(var(--guidecolor-3));
}

@media screen and (min-width:768px) {

  #guide section.guide-contents {
    padding: 20px 30px 30px;
  }

  #guide section.guide-contents::before {
    width: calc(100% - 60px);
    left: 30px;
  }

}

/**
 * タイトル
 */

#guide section.guide-contents .column-title {
  margin-bottom: 15px;
  color: rgb(var(--accentcolor-1));
  letter-spacing: 2px;
  line-height: 1.4;
  font-family: var(--font-maru-sans);
  font-size: 1.625em;
  font-weight: 500;
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 0.25em;
}

#guide section.guide-contents .column-title::before {
  content: counter(number, decimal-leading-zero) '.';
  line-height: 1;
  font-family: var(--font-number);
  font-size: 1.75em;
}

/* 専門外来 */

#guide section.guide-contents:nth-of-type(1) .column-title {
  color: rgb(var(--guidecolor-1));
}

/* 専門治療 */

#guide section.guide-contents:nth-of-type(2) .column-title {
  color: rgb(var(--guidecolor-2));
}

/* 専門検査 */

#guide section.guide-contents:nth-of-type(3) .column-title {
  color: rgb(var(--guidecolor-3));
}

@media screen and (min-width:768px) {

  #guide section.guide-contents .column-title {
    font-size: 2em;
  }

}

/**
 * 専門医療
 */

#guide section.guide-contents div.type dl.list {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 20px;
}

#guide section.guide-contents div.type dl.list div.item {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 10px;
}

@media screen and (min-width:768px) {

  #guide section.guide-contents div.type dl.list {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 20px;
  }

  #guide section.guide-contents div.type dl.list div.item {
    width: calc(100% / 2 - 10px);
    min-width: 410px;
    display: grid;
    grid-template-columns: 0.4fr 0.6fr;
    grid-template-rows: auto 1fr;
    gap: 15px 20px;
  }

}

/* タイトル */

#guide section.guide-contents div.type dl.list dt {
  width: 100%;
  color: rgb(var(--accentcolor-1));
  line-height: 1.5;
  font-weight: 500;
}

#guide section.guide-contents div.type dl.list dt small {
  font-size: 0.875em;
}

#guide section.guide-contents div.type dl.list dt a {
  padding: 0.5em 2.5em 0.5em 0.75em;
  color: #fff;
  letter-spacing: 1px;
  line-height: 1.2;
  font-family: var(--font-maru-sans);
  font-size: 1.125em;
  font-weight: 500;
  text-decoration: none;
  border-radius: 6px;
  border: 2px solid rgb(var(--accentcolor-1));
  display: block;
  position: relative;
  z-index: 0;
  transition: background-color 0.3s ease-in-out 0.0s;
  background-color: rgb(var(--accentcolor-1));
}

#guide section.guide-contents div.type dl.list dt a:hover {
  background-color: rgba(var(--accentcolor-1), 0.85);
}

#guide section.guide-contents div.type dl.list dt a::after {
  content: '';
  width: 1.25em;
  height: 1.25em;
  background: url("../_image/_common/icon-arrow-3.png") 0 0 / 100% 100% no-repeat;
  filter: brightness(0) invert(1);
  position: absolute;
  z-index: 1;
  top: calc(50% - 0.625em);
  right: 0.75em;
}

/* 専門外来 */

#guide section.guide-contents:nth-of-type(1) div.type dl.list dt a {
  border-color: rgb(var(--guidecolor-1));
  background-color: rgb(var(--guidecolor-1));
}

#guide section.guide-contents:nth-of-type(1) div.type dl.list dt a:hover {
  background-color: rgba(var(--guidecolor-1), 0.85);
}

/* 専門治療 */

#guide section.guide-contents:nth-of-type(2) div.type dl.list dt a {
  border-color: rgb(var(--guidecolor-2));
  background-color: rgb(var(--guidecolor-2));
}

#guide section.guide-contents:nth-of-type(2) div.type dl.list dt a:hover {
  background-color: rgba(var(--guidecolor-2), 0.85);
}

/* 専門検査 */

#guide section.guide-contents:nth-of-type(3) div.type dl.list dt a {
  border-color: rgb(var(--guidecolor-3));
  background-color: rgb(var(--guidecolor-3));
}

#guide section.guide-contents:nth-of-type(3) div.type dl.list dt a:hover {
  background-color: rgba(var(--guidecolor-3), 0.85);
}

@media screen and (min-width:768px) {

  #guide section.guide-contents div.type dl.list dt {
    width: unset;
    grid-area: 1 / 2 / 2 / 3;
  }

}

/* 画像 */

#guide section.guide-contents div.type dl.list dd.image {
  width: 30%;
}

@media screen and (min-width:768px) {

  #guide section.guide-contents div.type dl.list dd.image {
    width: unset;
    grid-area: 1 / 1 / 3 / 2;
  }

}

/* テキスト */

#guide section.guide-contents div.type dl.list dd.text {
  width: calc(70% - 10px);
  line-height: 1.5;
  font-size: 0.875em;
}

#guide section.guide-contents div.type dl.list dd.text ul.list li:not(:first-child) {
  margin-top: 0.25em;
}

@media screen and (min-width:768px) {

  #guide section.guide-contents div.type dl.list dd.text {
    width: unset;
    grid-area: 2 / 2 / 3 / 3;
  }

}
