:root {
  --bg-color: #f0f0f0;
  --border-color: #edc8d8;
}

@media (min-width: 769px) {
  .is-sp {
    display: none;
  }
}

@media (max-width: 768px) {
  .is-pc {
    display: none;
  }
}

.p-text--sub {
  font-size: 0.9em;
}

.p-indent1 {
  display: inline-block;
  padding-left: 1em;
  text-indent: -1em;
}

/* 横並びボタン */
.p-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3rem;

  @media screen and (max-width: 768px) {
    gap: 1rem;
  }
}

.p-text--bold {
  font-weight: bold;
}

.p-text--small {
  font-size: 0.9em;
}

.p-text--large {
  font-size: 1.25em;
}

/* margin-top */
.mt_0 {
  margin-top: 0 !important;
}

.mt_10 {
  margin-top: 10px !important;
}

.mt_20 {
  margin-top: 20px !important;
}

.mt_30 {
  margin-top: 30px !important;
}

.mt_40 {
  margin-top: 40px !important;
}

.mt_50 {
  margin-top: 50px !important;
}

.mt_60 {
  margin-top: 60px !important;

  @media screen and (max-width: 768px) {
    margin-top: 30px !important;
  }
}

.mt_90 {
  margin-top: 90px !important;

  @media screen and (max-width: 768px) {
    margin-top: 45px !important;
  }
}

/* margin-bottom */
.mb_0 {
  margin-bottom: 0 !important;
}

.mb_10 {
  margin-bottom: 10px !important;
}

.mb_20 {
  margin-bottom: 20px !important;
}

.mb_30 {
  margin-bottom: 30px !important;
}

.mb_40 {
  margin-bottom: 40px !important;
}

.mb_50 {
  margin-bottom: 50px !important;
}

.mb_60 {
  margin-bottom: 60px !important;

  @media screen and (max-width: 768px) {
    margin-bottom: 30px !important;
  }
}

.mb_90 {
  margin-bottom: 90px !important;

  @media screen and (max-width: 768px) {
    margin-bottom: 45px !important;
  }
}

.p-text-link {
  color: #007bff;
  text-decoration: underline;
}

.p-center {
  width: fit-content;
  margin-inline: auto;

  @media screen and (max-width: 768px) {
    width: 100%;
  }
}

.p-right {
  margin-inline: auto 0;

  @media screen and (max-width: 768px) {
    margin-inline: auto;
  }
}

.p-left {
  width: fit-content;
  margin-right: auto;

  @media screen and (max-width: 768px) {
    margin-inline: auto;
  }
}

/* 色付きボックス */
.p-box-color,
.p-box-color--white,
.p-box-border {
  padding: 2em;
  border-radius: 5px;

  @media screen and (max-width: 768px) {
    padding: 1em;
  }
}

.p-box-color {
  background-color: var(--bg-color);
}

.p-box-color--white {
  background-color: #fff;
}

.p-box-border {
  border: 1px solid var(--border-color);
}

/* 番号付きリスト */
ul.p-pattern__list__number {
  list-style: none;
  counter-reset: number;
}

ul.p-pattern__list__number li {
  position: relative;
  padding-left: 2em;
  margin-bottom: 1.2em;
  line-height: 1.3em;
}

ul.p-pattern__list__number li::before {
  content: counter(number);
  counter-increment: number;
  position: absolute;
  left: 0;
  top: 0;
  width: 1.5em;
  height: 1.5em;
  line-height: 1.5em;
  border-radius: 50%;
  background: #9bb4e0;
  color: #fff;
  text-align: center;
}

/* The shared main.css now supplies Refine patterns, grid, typography and buttons.
   Only this page's image proportions and content spacing need adjustments. */
#periodontal-content .pattern__cont__text p + p {
  margin-top: 1em;
}
#periodontal-content .pattern__block__wrap + .pattern__block__wrap {
  margin-top: 60px;
}
#periodontal-content .pattern__nav ul li {
  flex-basis: 24.333333%;
}
#periodontal-content .pattern__nav .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
}
#periodontal-content .pattern__pic .dnfix__thumb {
  padding-top: 0;
}
#periodontal-content .pattern__pic .dnfix__thumb img {
  position: relative;
  height: auto;
  object-fit: contain;
}
#periodontal-content .pattern__heading {
  line-height: 1.5;
  font-weight: 400;
}
#periodontal-content .pattern__cont__title {
  line-height: 1.5;
  font-weight: 400;
  border-color: var(--primary);
}
#periodontal-content section[id] {
  scroll-margin-top: 120px;
}
@media (max-width: 767px) {
  #periodontal-content .pattern__nav ul li {
    flex-basis: 100%;
    padding: 10px;
  }
}

/* 透過画像には画像背面の装飾背景を表示しない。 */
#periodontal-content .thumb-style--transparent.thumb-style--left::before,
#periodontal-content .thumb-style--transparent.thumb-style--right::before {
  content: none;
}

/* 本文セクションを交互に色分けし、見出しボタン群を中央に配置する。 */
#periodontal-content .page-content > .pattern__block:nth-of-type(even) {
  background-color: #f9f8f3;
}
#periodontal-content .pattern__nav ul {
  justify-content: center;
}
