@charset "utf-8";

/* subpage.css
 * Kidney - v1.0.0
 * Created : 2025-5-15
 * 下層ページ共通
 * **************************************************
 * Root
 * Main
 * Topicpath
 * Content
 * Contents Nav
 * Common
 * 
 * 更新履歴：
 * **************************************************
 */

/* Root
------------------------------------------------------------------ */
:root {
  --width-subpage-head: 1240px;
  --width-contents-nav: 280px;
  --font-size-subpage-h1: 2.0rem;  
  --font-size-subpage-head-p: 1rem;
  --font-size-subpage-h2: 1.75rem;
  --font-size-subpage-h3: 1.375rem;
  --font-size-subpage-h3-m: 1.25rem;
  --font-size-subpage-h4: 1.125rem;
  --font-size-subpage-h4-nt: 1.0625rem;
  --font-size-subpage-contents-nav-li: 0.9375rem;
  --font-size-subpage-contents-nav-sub-li: 0.875rem;
  --font-size-topicpath-li: 0.875rem;
  --font-size-figure-p: 0.875rem;
  --font-size-chart-dt: 0.875rem;
  --font-size-chart-dd: 0.875rem;
  --font-size-subpage-th: 0.9375rem;
  --font-size-subpage-td: 0.9375rem;
  --font-size-quote: 0.875rem;
}

/* Main
------------------------------------------------------------------- */
#subpage .subpage-head {
  background-color: var(--color-main-bg);
}
#subpage .subpage-head__inner {
  margin: 0 auto;
  padding: 50px 0 30px 0;
  max-width: var(--width-subpage-head);
  background: url(../images/common/subpage-h1-bg.svg) center top 60px / 120px auto no-repeat;
  text-align: center;
}
#subpage .subpage-head__inner:not(:has(p)) {
  padding: 58px 0;
}
#subpage .subpage-head h1 {
  margin-top: 30px;
  font-size: var(--font-size-subpage-h1);
  font-family: "Noto Serif JP", serif;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0.1em;
}
#subpage .subpage-head h1 span {
  font-size: 87.5%;
  font-weight: 600;
  letter-spacing: 0.02em;
}
#subpage .subpage-head h1 em {
  display: block;
  margin-top: 10px;
  font-size: 75%;
  font-weight: 600;
  letter-spacing: 0.05em;
}
#subpage .subpage-head p {
  font-size: var(--font-size-subpage-head-p);
  font-family: "Noto Serif JP", serif;
  font-weight: 800;
  letter-spacing: 0.1em;
}
#subpage .subpage-head-path-bottom {
  fill: var(--color-main-bg);
  fill-opacity: 1;
}

/* Topicpath
------------------------------------------------------------------- */
#subpage .topicpath {
  margin: 15px auto 0 auto;
  padding: 0 30px 10px 30px;
  max-width: var(--width-content);
}
#subpage .topicpath ol {
  display: flex;
  column-gap: 12px;
}
#subpage .topicpath li {
  position: relative;
  font-size: var(--font-size-topicpath-li);
}
#subpage .topicpath li:not(:last-child)::after {
  content: "";
  display: inline-block;
  margin-left: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #afa599;
  vertical-align: 2px;
}
#subpage .topicpath a {
  color: var(--color-main);
  text-decoration: none;
}

/* Content
------------------------------------------------------------------- */
#subpage .content {
  display: flex;
  align-items: flex-start;
  column-gap: 60px;
  margin: 60px auto 0 auto;
  padding: 0 30px;
  max-width: var(--width-content);
}
@media screen and (max-width: 1380px) {
  #subpage .content {
    padding: 0 50px;
  }
}

#subpage .content__inner {
  padding: 0 0;
  width: calc(100% - 340px);
}
#subpage .content:not(:has(.contents-nav)) .content__inner {
  width: auto;
}
#subpage .content__inner section:first-child,
#subpage .content__inner section + section {
  padding-bottom: 100px;
}
#subpage:not(.voice) .content__inner section + section:last-child,
#subpage:not(.voice) .content__inner section:last-child {
  padding-bottom: 0;
}
@media screen and (max-width: 980px) {
  #subpage .content {
    display: block;
    align-items: normal;
    column-gap: normal;
  }
  #subpage .content__inner {
    width: auto;
  }
}

/* Contents Nav
------------------------------------------------------------------- */
#subpage .contents-nav {
  position: sticky;
  top: 0;
  width: var(--width-contents-nav);
  padding: 30px 0 35px 0;
  background-color: #fff;
  box-shadow: rgba(90, 55, 23, 0.1) 0px 10px 20px 0px;
  border-radius: 10px;
}
@media screen and (max-width: 980px) {
  #subpage .contents-nav {
    padding: 20px 0 30px 0;
    width: auto;
  }
}
/* Heading nav */
#subpage .contents-nav > ul {
  position: relative;
  margin-left: 40px;
}
#subpage .contents-nav > ul::before {
  position: absolute;
  top: 17px;
  bottom: 8px;
  left: -14px;
  content: "";
  width: 2px;
  background: #afa599;
  border-radius: 0 0 5px 5px;
}
#subpage .contents-nav > ul > li {
  position: relative;
  padding: 0 20px 0 0;
}
#subpage .contents-nav > ul > li:before {
  position: absolute;
  content: "";
  top: 9px;
  left: -18px;
  width: 9px;
  height: 9px;
  background: #fff;
  border: 1px solid #afa599;
  border-radius: 50%;
}
#subpage .contents-nav > ul > li + * {
  margin-top: 25px;
}
#subpage .contents-nav > ul > li > a {
  display: block;
  padding-left: 10px;
  font-size: var(--font-size-subpage-contents-nav-li);
  color: var(--color-main);
  line-height: 1.6;
}
#subpage .contents-nav  > ul > li:has(.is-current):before {
  height: 9px;
  background: #86b71b;
  border: 1px solid #86b71b;
}
/* Subheading nav */
#subpage .contents-nav .sub {
  margin: 15px 0 0 1.5em;
}
#subpage .contents-nav .sub li + * {
  margin-top: 12px;
}
#subpage .contents-nav .sub a {
  display: block;
  padding-left: 10px;
  font-size: var(--font-size-subpage-contents-nav-sub-li);
  color: var(--color-main);
  line-height: 1.6;
}
/* 字下げ：慢性腎臓病(CKD)について */
/* 慢性腎臓病(chronic kidney disease: CKD)について */
/* 透腎臓の構造と働き */
/* 透析阻止を目指した慢性腎臓病の治療 */
/* 腎代替療法の選択とSDM */
/* 腎疾患に対する話題の新薬 */
#subpage.ckd.st-fun .contents-nav > ul > li > a,
#subpage.ckd.ckd-ab .contents-nav > ul > li > a,
#subpage.ckd.di-inh .contents-nav > ul > li > a,
#subpage.alternative-therapy .contents-nav > ul > li > a,
#subpage.new-drug .contents-nav > ul > li > a {
  margin-left: 1.5em;
  text-indent: -1.5em;
}
#subpage .contents-nav .sub a {
  margin-left: 2.5em;
  text-indent: -2.5em;
}

/* Common
------------------------------------------------------------------- */
/* Heading */
#subpage:not(.voice, .staff) .content h2 {
  position: relative;
  font-size: var(--font-size-subpage-h2);
  font-family: "Noto Serif JP", serif;
  font-weight: 800;
  line-height: 1.6;
}
/* はじめに */
#subpage .preface h2 {
  text-align: center;
}
#subpage:not(.voice, .staff) section h2 + * {
  margin-top: 2.0rem;
}
#subpage .preface h2 + * {
  margin-top: 3.0rem;
}
#subpage .preface h2::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -5px;
  display: inline-block;
  width: 60px;
  height: 1px;
  transform: translateX(-50%);
  background-color: var(--color-main);
}
#subpage:not(.voice) section:not(.preface) > h2::before {
  position: absolute;
  top: calc(50% - 1px);
  left: calc(-50vw - 10px);
  width: 50vw;
  content: '';
  height: 1px;
  background: #ada59a;
}
#subpage:not(.voice) .content h2 span {
  font-size: 87.5%;
}

#subpage .content h3 + *:not(.figure-wrp) {
  margin-top: 0.5rem;
}

/* Paragraph */
#subpage .content p {
  line-height: 2.2;
  text-align: justify;
}
#subpage .content p + p,
#subpage .content p + table {
  margin-top: 2.0rem;
}
#subpage .content p strong {
  background: linear-gradient(transparent 80%, #fcee00 0%);
  font-weight: 600;
}
/* director */
#subpage .content .dept-med-director {
  text-align: right;
  line-height: 1.6;
}
#subpage .content .dept-med-director .sgd {
  font-size: 93.75%;
}

/* 図 */
/* 1列・2列以上 */
#subpage .figure-wrp {
  margin-top: 1.5rem;
}
#subpage .figure-wrp + * {
  margin-top: 2.0rem;
}
#subpage .figure-wrp figure {
  margin: 0 auto;
  width: calc(min(100%, 580px));
}
#subpage .figure-wrp img {
  border: 1px solid var(--color-border);
  width: 100%;
  height: auto;
}
#subpage .figure-wrp figcaption {
  margin-top: 0.2rem;
  font-size: var(--font-size-figure-p);
  line-height: 1.6;
}

/* 図：2つ目がある親要素（figure-wrp） */
#subpage .figure-wrp:has(> figure:nth-child(2)) {
  display: flex;
  column-gap: 30px;
}
#subpage .figure-wrp:has(> figure:nth-child(2)) figure {
  margin: 0 auto;
  width: calc(min(50%, 580px));
}

/* 図：4つ目がある親要素（figure-wrp） */
#subpage .figure-wrp:has(> figure:nth-child(4)) {
  display: flex;
  column-gap: 20px;
}

/* 図：2つ目がある親要素（figure） */
#subpage .figure-wrp figure:has(> img:nth-child(2)) {
  display: flex;
  align-items: start;
  justify-content: center;
  gap: 0.2rem 20px;
  flex-wrap: wrap;
  margin: 0 auto;
  width: calc(min(100%, 820px));
}
#subpage .figure-wrp figure:has(> img:nth-child(2)) img {
  width: calc(50% - 10px);
  height: auto;
}

#subpage .fgc-p {
  margin-top: 1.0rem;
  font-size: var(--font-size-figure-p);
  line-height: 1.6;
}

#subpage .figure-wrp dt {
  font-size: var(--font-size-chart-dt);
}
#subpage .figure-wrp dd {
  margin-left: 2.0rem;
  font-size: var(--font-size-chart-dd);
  line-height: 1.8;
}
/* 画像 */
#subpage .figure-wrp.im-br img {
  border-radius: 10px;
}

/* 画像 */
#subpage .img-wrp {
  margin: 4.0rem auto 2.0rem auto;
  width: 90%;
}
#subpage .img-wrp img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}
/* 私の体験 */
#subpage.voice .img-wrp {
  margin: 4.0rem auto 3.0rem auto;
  width: 80%;
}
#subpage .img-wrp figure {
  position: relative;
}
#subpage .img-wrp figcaption {
  margin-top: 0.2rem;
  font-size: var(--font-size-figure-p);
  line-height: 1.6;
}
#subpage .img-wrp figcaption {
  z-index: 1;
  position: absolute;
  bottom: 0;
  right: 0;
  padding: 15px 30px;
  max-width: calc(100% - 60px);
  border-top-left-radius: 10px;
  background-color: #fff;
}
#subpage .img-wrp figcaption::before {
  position: absolute;
  right: 0;
  bottom: 100%;
  content: "";
  width: 2.0rem;
  height: 2.0rem;
  box-shadow: 0.4rem 0.4rem 0 0.4rem #fff;
  border-bottom-right-radius: 10px;
}
#subpage .img-wrp figcaption::after {
  position: absolute;
  right: 100%;
  bottom: 0.5rem;
  content: "";
  width: 2.0rem;
  height: 2.0rem;
  box-shadow: 0.4rem 0.4rem 0 0.4rem #fff;
  border-bottom-right-radius: 10px;
}

#subpage .img-wrp > P {
  margin-top: 0.5rem;
  font-size: 94%;
  line-height: 1.6;
}

/* Table */
#subpage .content .common-tbl {
  width: 100%;
  border: 1px solid var(--color-sub-elem);
  background-color: #fff;
}
#subpage .content .common-tbl caption {
  font-size: 125%;
  font-family: "Noto Serif JP", serif;
  font-weight: 800;
}
#subpage .content .common-tbl thead th {
  border-bottom: 1px solid var(--color-sub-elem);
  background-color: #f1e5d5;
  font-size: var(--font-size-subpage-th);
  font-weight: 700;
  text-align: center;
}
#subpage .content .common-tbl tbody th {
  border-bottom: 1px solid var(--color-sub-elem);
  background-color: #faf7f1;
  font-size: var(--font-size-subpage-th);
  font-weight: 700;
  text-align: center;
}
#subpage .content .common-tbl th,
#subpage .content .common-tbl td {
  padding: 5px 5px;
  border-left: 1px solid var(--color-sub-elem);
}
#subpage .content .common-tbl td {
  border-bottom: 1px solid var(--color-sub-elem);
  font-size: var(--font-size-subpage-td);
  line-height: 1.7;
}

/* Table Scroll */
#subpage .content .common-tbl-scroll {
  overflow-x: auto;
}
#subpage .content .common-tbl-scroll table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
}

/* List */
/* Common */
#subpage .content .list-disc li {
  position: relative;
  padding-left: 20px;
}
#subpage .content .list-disc li::before {
  content: "";
  position: absolute;
  top: 0.5em;
  left: 0;
  display: inline-block;
  width: 12px;
  height: 12px;
  background-color: var(--color-marker);
  border-radius: 50%;
}
/* 注意 */
#subpage .content .note {
  margin-top: 0.8rem;
}
#subpage .content .note li {
  margin-left: 1em;
  font-size: var(--font-size-common-note-li);
  text-indent: -1em;
}
/* 脚注 */
#subpage .content .footnote {
  margin-top: 0.8rem;
}
#subpage .content .footnote + * {
  margin-top: 1.5rem;
}
#subpage .content .footnote li {
  margin-left: 2.25em;
  font-size: var(--font-size-common-footnote-li);
  text-indent: -2.25em;
}
/* Movie */
#subpage .content .movie {
  margin: 0 auto;
  width: 70%;
}
#subpage .content .movie__inner {
  position: relative;
  margin: 0 auto;
  padding: 20px;
  background-color: #efedeb;
  border-radius: 6px;
  width: 100%;
  padding-top: 56.25%;
}
#subpage .content .movie__inner iframe {
  position: absolute;
  top: 20px;
  right: 20px;
  width: calc(100% - 40px);
  height: calc(100% - 40px);
}

/* 上付き文字 */
#subpage .content sup {
  vertical-align: text-top;
  vertical-align: super;
  font-size: smaller;
}

/* 引用 */
#subpage .content .quote {
  margin-top: 0.8rem;
  text-align: right;
}

@media screen and (max-width: 980px) {
  /* Root
  ------------------------------------------------------------------ */
  :root {
    --width-subpage-head: auto;
    --width-contents-nav: auto;
    --font-size-subpage-h1: 1.625rem;
    --font-size-subpage-head-p: 0.9375rem;
    --font-size-subpage-h2: 1.5rem;
    --font-size-subpage-h3: 1.25rem;
    --font-size-subpage-h3-m: 1.125rem;
    --font-size-subpage-h4: 1.0625rem;
    --font-size-subpage-h4-nt: 1rem;
    --font-size-subpage-contents-nav-li: 0.9375rem;
    --font-size-subpage-contents-nav-sub-li: 0.875rem;
    --font-size-topicpath-li: 0.75rem;
    --font-size-figure-p: 0.875rem;
    --font-size-chart-dt: 0.875rem;
    --font-size-chart-dd: 0.875rem;
    --font-size-subpage-th: 0.875rem;
    --font-size-subpage-td: 0.875rem;
    --font-size-quote: 0.875rem;
  }

  /* Main
  ------------------------------------------------------------------- */
  #subpage .subpage-head__inner {
    padding: 40px 0;
    max-width: var(--width-subpage-head);
    background: url(../images/common/subpage-h1-bg.svg) center top 50px / 100px auto no-repeat;
  }
  #subpage .subpage-head__inner:not(:has(p)) {
    padding: 56px 0;
  }
  #subpage .subpage-head h1 {
    margin-top: 20px;
    font-size: var(--font-size-subpage-h1);
    letter-spacing: 0.06em;
  }
  #subpage .subpage-head h1 em {
    font-size: 65%;
    letter-spacing: 0.04em;
  }
  #subpage .subpage-head p {
    font-size: var(--font-size-subpage-head-p);
    letter-spacing: 0.06em;
  }

  /* Topicpath
  ------------------------------------------------------------------- */
  #subpage .topicpath {
    overflow-x: scroll;
    margin: 10px auto 0 auto;
    padding: 0 20px 10px 20px;
    max-width: none;
    width: 100vw;
  }
  #subpage .topicpath ol {
    column-gap: 10px;
    white-space: nowrap;
  }
  #subpage .topicpath li:not(:last-child)::after {
    margin-left: 10px;
  }

  /* Content
  ------------------------------------------------------------------- */
  #subpage .content {
    display: block;
    align-items: normal;
    column-gap: normal;
    margin: 30px 0 0 0;
    padding: 0 20px;
    max-width: none;
  }
  #subpage .content__inner {
    width: auto;
  }
  #subpage .content__inner section:first-child,
  #subpage .content__inner section + section {
    padding-bottom: 60px;
  }

  /* Contents Nav
  ------------------------------------------------------------------- */
  #subpage .contents-nav {
    margin-top: 50px;
    padding: 15px 0 25px 0;
    width: auto;
    border-radius: 8px;
  }
  /* Heading nav */
  #subpage .contents-nav > ul {
    margin-left: 35px;
  }
  #subpage .contents-nav > ul > li > a {
    font-size: var(--font-size-subpage-contents-nav-li);
  }
  /* Subheading nav */
  #subpage .contents-nav .sub a {
    font-size: var(--font-size-subpage-contents-nav-sub-li);
  }

  /* Common
  ------------------------------------------------------------------- */
  /* Heading */
  #subpage:not(.voice, .staff) .content h2 {
    font-size: var(--font-size-subpage-h2);
  }

  /* Paragraph */
  #subpage .content p {
    font-size: 93.75%;
    text-align: left;
  }

  #subpage .content p + p,
  #subpage .content p + table {
    margin-top: 1.5rem;
  }

  /* 図 */
  /* 1列・2列以上 */
  #subpage .figure-wrp figure {
    margin: 0 auto;
    width: auto;
  }
  #subpage .figure-wrp figcaption {
    font-size: var(--font-size-figure-p);
  }

  /* 図：2つ目がある親要素（figure-wrp） */
  #subpage .figure-wrp:has(> figure:nth-child(2)) {
    display: block;
    column-gap: normal;
  }
  #subpage .figure-wrp:has(> figure:nth-child(2)) figure {
    width: auto;
  }

  /* 図：4つ目がある親要素（figure-wrp） */
  #subpage .figure-wrp:has(> figure:nth-child(4)) {
    display: block;
    column-gap: normal;
  }

  /* 図：2つ目がある親要素（figure） */
  #subpage .figure-wrp figure:has(> img:nth-child(2)) {
    display: block;
    align-items: normal;
    justify-content: normal;
    gap: normal;
    flex-wrap: normal;
    margin: 0 auto;
    width: auto;
  }
  #subpage .figure-wrp figure:has(> img:nth-child(2)) img {
    width: calc(100% - 10px);
    height: auto;
  }

  #subpage .fgc-p {
    font-size: var(--font-size-figure-p);
  }

  #subpage .figure-wrp dt {
    font-size: var(--font-size-chart-dt);
  }
  #subpage .figure-wrp dd {
    font-size: var(--font-size-chart-dd);
  }

  /* 画像 */
  #subpage .img-wrp {
    margin: 2.5rem auto 1.0rem auto;
    width: 100%;
  }
  #subpage .img-wrp figcaption {
  padding: 12px 25px;
    font-size: var(--font-size-figure-p);
  }
  /* 私の体験 */
  #subpage.voice .img-wrp {
    margin: 2.0rem auto;
    width: 100%;
  }

  /* Table */
  /* Table Scroll */
  #subpage .content .common-tbl-scroll table {
    min-width: 980px;
  }

  /* List */
  /* Common */
  #subpage .content .list-disc li {
    padding-left: 18px;
  }
  #subpage .content .list-disc li::before {
    top: 0.6em;
    left: 0;
    width: 10px;
    height: 10px;
  }
  /* 注意 */
  #subpage .content .note li {
    font-size: var(--font-size-common-note-li);
  }
  /* 脚注 */
  #subpage .content .footnote li {
    font-size: var(--font-size-common-footnote-li);
  }
  /* Movie */
  #subpage .content .movie {
    width: 100%;
  }
  #subpage .content .movie__inner {
    padding: 10px;
    border-radius: 4px;
    padding-top: 56.25%;
  }
  #subpage .content .movie__inner iframe {
    top: 10px;
    right: 10px;
    width: calc(100% - 20px);
    height: calc(100% - 20px);
  }








}