@charset "utf-8";


/* ==================================================
   Medical Detail Layout
================================================== */

.medical-detail {
  width: 100%;
  padding: 60px 0;
  background: var(--color-base);
}

.medical-detail__inner {
  display: flex;
  align-items: flex-start;
  gap: 70px;

  width: min(calc(100% - 80px), 1200px);
  margin-inline: auto;
}

.medical-detail__main {
  flex: 1;
  min-width: 0;
}


/* ==================================================
   Medical Sidebar
================================================== */

.medical-sidebar {
  position: sticky;
  top: 92px;

  align-self: flex-start;

  flex: 0 0 210px;
  width: 210px;

  max-height: calc(100vh - 120px);

  overflow-y: auto;
  overscroll-behavior: contain;

  z-index: 20;

  scrollbar-width: thin;
  scrollbar-color: #dddddd transparent;
}

.medical-sidebar::-webkit-scrollbar {
  width: 4px;
}

.medical-sidebar::-webkit-scrollbar-thumb {
  background: #dddddd;
  border-radius: 10px;
}


/* ==================================================
   Sidebar Inner
================================================== */

.medical-sidebar__inner {
  position: relative;
  width: 100%;
  padding-right: 28px;
}

.medical-sidebar__inner::after {
  content: "";

  position: absolute;
  top: 0;
  right: 0;

  width: 3px;
  height: 100%;

  background: #f1f1f1;
}


/* ==================================================
   Sidebar Title
================================================== */

.medical-sidebar__title {
  position: relative;

  margin: 0 0 18px;
  padding: 0 0 10px;

  color: var(--color-accent);

  font-family: var(--font-title);
  font-size: 17px;
  font-weight: 500;

  line-height: 1.5;
  letter-spacing: 0.03em;
}

.medical-sidebar__title::after {
  content: "";

  position: absolute;
  left: 0;
  bottom: 0;

  width: 100%;
  height: 1px;

  background: var(--color-accent);
}


/* ==================================================
   Sidebar Group
================================================== */

.medical-sidebar__group {
  width: 100%;
}

.medical-sidebar__group + .medical-sidebar__group {
  margin-top: 18px;
}


/* ==================================================
   Sidebar Category
================================================== */

.medical-sidebar__category {
  position: relative;

  display: flex;
  align-items: center;
  justify-content: space-between;

  width: 100%;

  margin: 0;
  padding: 0 24px 8px 0;

  color: var(--color-accent);

  font-family: var(--font-base);
  font-size: 12px;
  font-weight: 500;

  line-height: 1.5;
  letter-spacing: 0.02em;

  cursor: pointer;
  user-select: none;

  transition: opacity 0.3s ease;
}

.medical-sidebar__category:hover {
  opacity: 0.65;
}


/* ==================================================
   Category Arrow
================================================== */

.medical-sidebar__category::after {
  content: "";

  position: absolute;
  top: 50%;
  right: 4px;

  width: 7px;
  height: 7px;

  border-right: 1px solid var(--color-accent);
  border-bottom: 1px solid var(--color-accent);

  transform: translateY(-70%) rotate(45deg);

  transition: transform 0.3s ease;
}

.medical-sidebar__group.is-close
.medical-sidebar__category::after {
  transform: translateY(-30%) rotate(-135deg);
}


/* ==================================================
   Sidebar Nav
================================================== */

.medical-sidebar__nav {
  width: 100%;

  max-height: 500px;

  overflow: hidden;

  opacity: 1;

  transition:
    max-height 0.35s ease,
    opacity 0.25s ease;
}

.medical-sidebar__group.is-close
.medical-sidebar__nav {
  max-height: 0 !important;
  opacity: 0;
}


/* ==================================================
   Sidebar List
================================================== */

.medical-sidebar__list {
  display: flex;
  flex-direction: column;
  gap: 6px;

  width: 100%;

  margin: 0;
  padding: 0;

  list-style: none;
}

.medical-sidebar__item {
  width: 100%;
  margin: 0;
  padding: 0;
}


/* ==================================================
   Sidebar Link
================================================== */

.medical-sidebar__link {
  position: relative;

  display: block;

  width: 100%;

  padding-left: 15px;

  color: var(--color-text);

  font-size: 12px;
  font-weight: 400;

  line-height: 1.6;

  text-decoration: none;

  transition:
    color 0.3s ease,
    transform 0.3s ease;
}

.medical-sidebar__link p {
  margin: 0;

  color: inherit;

  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

.medical-sidebar__link::before {
  content: "";

  position: absolute;
  top: 0.8em;
  left: 0;

  width: 6px;
  height: 1px;

  background: var(--color-accent);
}

.medical-sidebar__link:hover {
  color: var(--color-accent);
  transform: translateX(3px);
}

.medical-sidebar__link.is-current {
  color: var(--color-accent);
  font-weight: 500;
}


/* ==================================================
   Webgene Layout
================================================== */

.webgene-blog,
.webgene-item,
.newsDetail,
.newsDetail-wrap {
  width: 100%;
}

.newsDetail-wrap {
  margin: 0;
  padding: 0;
}


/* ==================================================
   Article Title
================================================== */

.newsDetail-wrap-title {
  position: relative;

  display: block;

  margin: 0 0 70px;
  padding: 0 0 26px;

  border-bottom: 1px solid rgba(161, 139, 30, 0.35);
}

.newsItemText {
  display: flex;
  align-items: center;
  gap: 14px;

  margin-bottom: 12px;
}

.newsDetailTit {
  position: relative;

  margin: 0;
  padding-left: 22px;

  color: var(--color-text);

  font-family: var(--font-title);
  font-size: 32px;
  font-weight: 500;

  line-height: 1.5;
  letter-spacing: 0.05em;
}

.newsDetailTit::before {
  content: "";

  position: absolute;
  top: 50%;
  left: 0;

  width: 6px;
  height: 36px;

  background: var(--color-sub);

  border-radius: 2px;

  transform: translateY(-50%);
}


/* ==================================================
   Article Image
================================================== */

.newsDetailImg {
  width: auto;
  height: auto;
  margin-bottom: 3rem;
}

.newsDetailImg:empty {
  display: none;
}


/* ==================================================
   Medical Detail Content
================================================== */

.newsDetailTxt {
  width: 100%;

  color: var(--color-text);

  font-family: var(--font-base);
  font-size: 15px;
  font-weight: 400;

  line-height: 2;
  letter-spacing: 0.03em;
}


/* ==================================================
   H3
================================================== */

.newsDetailTxt > h3 {
  position: relative;

  margin: 90px 0 32px;
  padding-left: 30px;

  color: var(--color-accent);

  font-family: var(--font-title);
  font-size: 25px;
  font-weight: 500;

  line-height: 1.5;
  letter-spacing: 0.04em;
}

.newsDetailTxt > h3:first-child {
  margin-top: 0;
}

.newsDetailTxt > h3::before {
  content: "";

  position: absolute;
  top: 50%;
  left: 0;

  width: 8px;
  height: 34px;

  background: var(--color-sub);

  border-radius: 2px;

  transform: translateY(-50%);
}

.newsDetailTxt > h3 + br {
  display: none;
}


/* ==================================================
   Paragraph
================================================== */

.newsDetailTxt > p {
  margin: 0 0 22px;

  color: var(--color-text);

  font-size: 14px;
  font-weight: 400;

  line-height: 2;
  letter-spacing: 0.03em;
}




/* ==================================================
   記事本文の比較表・データ表
   すべての表に適用。3列の表だけ参考デザインの列幅にする
================================================== */
.newsDetailTxt table {
  display: table;
  width: 100% !important;
  height: auto !important;
  margin: 0 0 48px;
  border-collapse: collapse;
  table-layout: fixed;
  color: var(--color-text);
  font-family: var(--font-base);
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: .02em;
}
.newsDetailTxt table :is(th, td) {
  box-sizing: border-box;
  width: auto !important; /* HTML 側の固定幅を上書き */
  padding: 20px;
  border: 1px solid #969696;
  background: #FDFCF8;
  color: var(--color-text);
  vertical-align: top;
  overflow-wrap: anywhere;
}
.newsDetailTxt table tr > :first-child {
  font-weight: 600;
  text-align: center;
  vertical-align: middle;
}
.newsDetailTxt table tr:first-child > * {
  padding: 17px 12px;
  background: #FEF2F1;
  font-weight: 600;
  text-align: center;
  vertical-align: middle;
}
.newsDetailTxt table tr:not(:first-child) > :not(:first-child) {
  padding-inline: clamp(22px, 4vw, 56px);
  text-align: center;
}
.newsDetailTxt table tr:nth-last-child(-n+2) > * {
  padding-block: 18px;
  vertical-align: middle;
}
/* 3列の比較表は、項目列を細くして説明列を広く取る */
.newsDetailTxt table:has(tr:first-child > :nth-child(3):last-child) tr > :first-child { width: 19% !important; }
.newsDetailTxt table:has(tr:first-child > :nth-child(3):last-child) tr > :nth-child(2) { width: 46% !important; }
.newsDetailTxt table:has(tr:first-child > :nth-child(3):last-child) tr > :nth-child(3) { width: 35% !important; }

@media screen and (max-width: 767px) {
  .newsDetailTxt table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
  }
  .newsDetailTxt table > :is(thead, tbody, tfoot) {
    display: table;
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
    table-layout: fixed;
  }
  .newsDetailTxt table :is(th, td) { font-size: 12px; }
}

/* ==================================================
   Box
================================================== */

.newsDetailTxt > ul,
.newsDetailTxt > div {
  width: 100%;

  margin: 0 0 3rem 0;
  padding: 28px 34px;

  background: var(--color-switch);

  border-radius: 12px;
}


/* ==================================================
   Numbered List
================================================== */

.newsDetailTxt > ul {
  counter-reset: medical-list;

  display: flex;
  flex-direction: column;
  gap: 12px;

  width: 100%;

  padding: 28px 34px;

  background: var(--color-switch);
  border-radius: 12px;

  list-style: none;
}


/* ==================================================
   List Item
================================================== */

.newsDetailTxt > ul > li {
  counter-increment: medical-list;

  position: relative;

  display: flex;
  align-items: center;

  gap: 12px;

  margin: 0;
  padding: 0;

  color: var(--color-text);

  font-size: 14px;
  font-weight: 400;

  line-height: 1.7;
  letter-spacing: 0.03em;
}


/* ==================================================
   Number Circle
================================================== */

.newsDetailTxt > ul > li::before {
  content: counter(medical-list);

  display: flex;
  align-items: center;
  justify-content: center;

  flex: 0 0 18px;

  width: 18px;
  height: 18px;

  color: #ffffff;
  background: var(--color-sub);

  border-radius: 50%;

  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}


/* 以前のafterは削除 */
.newsDetailTxt > ul > li::after {
  display: none;
}


/* ==================================================
   H4
================================================== */

.newsDetailTxt > h4 {
  position: relative;

  margin: 28px 0 12px;
  padding-bottom: 10px;

  color: var(--color-accent);

  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 500;

  line-height: 1.6;
  letter-spacing: 0.03em;

  border-bottom: 1px solid var(--color-accent);
}

.newsDetailTxt > h3 + h4,
.newsDetailTxt > h3 + br + h4 {
  margin-top: 0;
}

.newsDetailTxt > h4 + p {
  margin-bottom: 28px;
}

/* ==================================================
   H5
================================================== */

.newsDetailTxt > h5 {
  position: relative;

  margin: 12px 0;
  padding-bottom: 10px;

  color: var(--color-accent);

  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 500;

  line-height: 1.6;
  letter-spacing: 0.03em;
}


/* ==================================================
   Box Inner
================================================== */

.newsDetailTxt > div > h4 {
  margin: 0 0 7px;

  color: var(--color-text);

  font-family: var(--font-base);
  font-size: 15px;
  font-weight: 600;

  line-height: 1.7;
  letter-spacing: 0.03em;

  border: 0;
}

.newsDetailTxt > div > h4:not(:first-child) {
  margin-top: 22px;
}

.newsDetailTxt > div > p {
  margin: 0;

  color: var(--color-text);

  font-family: var(--font-base);
  font-size: 13px;
  font-weight: 400;

  line-height: 1.9;
  letter-spacing: 0.03em;
}


/* ==================================================
   Strong
================================================== */

.newsDetailTxt strong {
  font-weight: 600;
}

.newsDetailTxt strong span{
  font-weight: 600;
  color: #FF0000;
}


/* ==================================================
   Links
================================================== */

.newsDetailTxt a {
  color: var(--color-accent);

  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.newsDetailTxt a:hover {
  opacity: 0.65;
}


/* ==================================================
   Images
================================================== */

.newsDetailTxt img {
  display: block;
  width: auto;
  max-width: 300px!important;
  height: auto;

  margin: 35px 0;

  border-radius: 10px;
}

/* 大きく見せたい記事画像だけに付けるクラス */
.newsDetailTxt img.blog-image--wide {
  width: min(50vw, 100%) !important;
  max-width: min(50vw, 100%) !important;
  height: auto;
}


/* ==================================================
   PDF
================================================== */

.pdfLink[href=""],
.pdfLink[href="%item.pdf%"] {
  display: none;
}


/* ==================================================
   Tablet
================================================== */

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

  .medical-detail {
    padding: 3rem 0;
  }

  .medical-detail__inner {
    gap: 45px;
    width: min(calc(100% - 60px), 1100px);
  }

  .medical-sidebar {
    flex-basis: 180px;
    width: 180px;
  }

  .medical-sidebar__inner {
    padding-right: 24px;
  }

  .newsDetailTxt > h3 {
    margin-top: 70px;
    font-size: 23px;
  }

}


/* ==================================================
   SP
================================================== */

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

  .medical-detail {
    padding: 2rem 0;
  }

  .medical-detail__inner {
    display: block;
    width: calc(100% - 40px);
  }

  .medical-sidebar {
    position: relative;
    top: auto;

    width: 100%;
    max-height: none;

    margin-bottom: 60px;

    overflow: visible;
  }

  .medical-sidebar__inner {
    padding-right: 0;
  }

  .medical-sidebar__inner::after {
    display: none;
  }

  .medical-detail__main {
    width: 100%;
  }

  .newsDetailTxt {
    font-size: 14px;
    line-height: 1.9;
  }

  .newsDetailTxt > h3 {
    margin: 60px 0 24px;
    padding-left: 22px;

    font-size: 21px;
  }

  .newsDetailTxt > h3::before {
    width: 6px;
    height: 28px;
  }

  .newsDetailTxt > ul,
  .newsDetailTxt > div {
    padding: 24px 20px;
    border-radius: 10px;
  }

  .newsDetailTxt > ul {
    gap: 10px;
  }

  .newsDetailTxt > ul > li {
    padding-left: 24px;
    font-size: 14px;
  }

  .newsDetailTxt > h4 {
    margin-top: 25px;
    font-size: 17px;
  }

  .newsDetailTxt > p {
    font-size: 14px;
    line-height: 1.9;
  }

  .newsDetailTxt > div > h4 {
    font-size: 15px;
  }

  .newsDetailTxt > div > p {
    font-size: 13px;
  }

}



/* ==================================================
   Content Box
================================================== */

.newsDetailTxt .content-box {
  width: 100%;

  margin: 30px 0;
  padding: 30px 34px;

  background: var(--color-switch);

  border-radius: 12px;
}


/* ベージュ */
.newsDetailTxt .content-box--beige {
  background: #F8F3E7;
}


/* ピンク */
.newsDetailTxt .content-box--pink {
  background: #FBEDEE;
}


/* ブルー */
.newsDetailTxt .content-box--blue {
  background: #EEF3FA;
}


/* 白＋枠 */
.newsDetailTxt .content-box--border {
  background: transparent;

  border: 1px solid var(--color-accent);
}


/* ==================================================
   Box Heading
================================================== */

.newsDetailTxt .content-box__title {
  margin: 0 0 16px;

  color: var(--color-accent);

  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 500;

  line-height: 1.6;
}


/* ピンクタイトル */
.newsDetailTxt .content-box__title--pink {
  color: var(--color-sub);
}


/* 黒タイトル */
.newsDetailTxt .content-box__title--black {
  color: var(--color-text);
}


/* ==================================================
   Box Text
================================================== */

.newsDetailTxt .content-box p {
  margin: 0 0 14px;

  font-size: 14px;
  line-height: 1.9;
}

.newsDetailTxt .content-box p:last-child {
  margin-bottom: 0;
}

/* ==================================================
   FAQ — 質問と回答を一組として区切る
================================================== */
.newsDetailTxt .faq-list {
  box-sizing: border-box;
  width: 100%;
  margin: 30px 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.newsDetailTxt .faq-item {
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
}

.newsDetailTxt .faq-item + .faq-item,
.newsDetailTxt .faq-item__answer + .faq-item {
  margin-top: 22px;
}

.newsDetailTxt .faq-item__question {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 10px;
  padding: 0;
  border: 0;
  color: var(--color-text);
  font-family: var(--font-base);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.7;
}

.newsDetailTxt .faq-item__mark {
  flex-shrink: 0;
  color: var(--color-accent);
  font-family: var(--font-en);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
}

/* 罫線は質問ではなく回答の下に置く */
.newsDetailTxt .faq-item__answer {
  margin: 0;
  padding: 0 0 20px;
  border-bottom: 1px solid var(--color-accent);
  color: var(--color-text);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.9;
  letter-spacing: 0.02em;
}

/* ==================================================
   Content Button — 下線と矢印のホバーアニメーション
================================================== */
.newsDetailTxt .content-btn {
  position: relative;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  min-width: 220px;
  max-width: 100%;
  margin: 28px 0;
  padding: 13px 72px 13px 26px;
  color: var(--color-accent) !important;
  border: 1px solid var(--color-accent);
  border-radius: 999px;
  background: #fff;
  font-family: var(--font-base);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.8;
  text-decoration: none !important;
  opacity: 1;
}

/* 文字の下を左から右へ伸びる線 */
.newsDetailTxt .content-btn::before {
  content: "";
  position: absolute;
  right: 72px;
  bottom: 13px;
  left: 26px;
  height: 1px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .35s ease;
}

/* 円は右端に固定。矢印の形を中央に配置 */
.newsDetailTxt .content-btn::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 18px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--color-accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='m4 2 4 4-4 4' fill='none' stroke='white' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px 12px;
  transform: translateY(-50%);
  transition: width .35s ease, height .35s ease;
}

.newsDetailTxt .content-btn:hover,
.newsDetailTxt .content-btn:focus-visible {
  color: var(--color-accent) !important;
  background-color: #fff;
  opacity: 1;
}

.newsDetailTxt .content-btn:hover::before,
.newsDetailTxt .content-btn:focus-visible::before {
  transform: scaleX(1);
}

.newsDetailTxt .content-btn:hover::after,
.newsDetailTxt .content-btn:focus-visible::after {
  width: 36px;
  height: 36px;
}

@media (prefers-reduced-motion: reduce) {
  .newsDetailTxt .content-btn::before,
  .newsDetailTxt .content-btn::after { transition: none; }
}

/* ==================================================
   Normal Text Link
================================================== */

.newsDetailTxt a:not(.content-btn) {
  color: #4AAFE8;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;

  transition:
    color 0.3s ease,
    opacity 0.3s ease;
}

.newsDetailTxt a:not(.content-btn):hover {
  color: #2F8FC7;
  opacity: 0.8;
}