html {
  scroll-behavior: smooth;
}

/* FAQボックス */
.p-answer__head {
  font-size    : 1.35em;
  font-weight  : 600;
  line-height  : 1.45;
  margin-bottom: 0.8em;

  @media (max-width: 767px) {
    font-size: 1.15em;
  }
}

.p-answer__text:not(:last-child) {
  margin-bottom: 0.8em;
}

.p-answer__box {
  background-color: rgb(255, 255, 255);
  padding         : 30px;
  margin-top      : 1.2em;
}

.p-answer__box ul {
  list-style : disc;
  margin-left: 1em;
}

.p-answer__box ul li:not(:last-child) {
  margin-bottom: 0.8em;
}

/* ==============================
   アコーディオン制御 accordion control
================================ */

/* 見出しをクリックできるように */
.page-content__header__inner>div {
  cursor: pointer;
}

/* 本文は初期状態で閉じる */
.page-content__header__inner .c-content {
  max-height : 0;
  overflow   : hidden;
  transition : max-height 0.4s ease, padding 0.3s ease;
  padding-top: 0;
}

/* 開いた状態 */
.page-content__header__inner.is-open .c-content {
  max-height : 2000px;
  /* 十分大きい値 */
  padding-top: 2rem;
}

.p-accordion__title:after {
  content      : "クリックして詳細を開く";
  font-size    : 18px;
  background   : #FFF;
  color        : #4a929e;
  margin-top   : 1rem;
  margin-inline: auto;
  padding      : 4px 14px;
  border-radius: 50px;
  display      : block;
  width        : fit-content;
}

.page-content__header__inner.is-open .p-accordion__title:after {
  content: "クリックして詳細を閉じる";
}

.p-accordion__title {
  background: #4a929e;
  color     : #FFF;
  padding   : 20px;
}

.p-accordion__title h2 {
  color: #FFF !important;
}

.p-accordion__contents {
  background-color: #f9f9f9;
  padding         : 20px 0 0 0;
  margin-top      : 1rem;
  color           : #333;
}

/* ==============================
   リスクリストスタイル
================================ */
.risk-list {
  text-align      : left;
  list-style      : none;
  padding         : 2.5rem;
  margin          : 0;
  background-color: #fafafa;
  border-radius   : 8px;
}

@media only screen and (max-width: 640px) {
  .risk-list {
    padding: 2rem;
  }
}

.risk-list li {
  margin-bottom: 0;
  padding-left : 1.5em;
  text-indent  : -1.5em;
  line-height  : 1.35;
  font-size    : 16.5px;
  color        : #333;
}

.risk-list li:not(:last-child) {
  margin-bottom: 0.8em;
}

.risk-list li::before {
  content     : "・";
  margin-right: 0.5em;
}

/* ==============================
   共通スタイル
================================ */
.thumb-style--left::before,
.thumb-style--right::before {
  z-index: -1;
  height : calc(100% + -5px);
}

.sc__box {
  @media (max-width: 768px) {
    gap: 1.5rem;
  }
}

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

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

section {
  scroll-margin-top: 115px;
  /* PCナビ高さ */

  @media (max-width: 768px) {
    scroll-margin-top: 60px;
    /* SPナビ高さ */
  }
}

.p-buttons {
  margin-top     : 6rem;
  display        : flex;
  flex-wrap      : wrap;
  justify-content: center;
  gap            : 2rem;

  @media screen and (max-width: 768px) {
    gap       : 1.2rem;
    margin-top: 3rem;
  }
}

.p-buttons .btn.btn-readmore.btn-readmore--primary {
  width          : calc(50% - 1rem);
  display        : inline-flex;
  align-items    : center;
  justify-content: center;

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

.p-bg--blue {
  background-color: #ebf3f4;
}

h3.box-style__header__title {
  font-size  : 2rem;
  font-weight: bold;
  color      : var(--primary);
  margin-top : 3rem;

  @media (max-width: 576px) {
    font-size : 1.5rem;
    margin-top: 0;
  }
}

.p-center {
  text-align: center;
}

.benefits-box {
  width        : 100% !important;
  max-width    : fit-content !important;
  margin-left  : auto !important;
  margin-right : auto !important;
  background   : linear-gradient(135deg, rgba(56, 135, 149, 0.08) 0%, rgba(56, 135, 149, 0.03) 100%) !important;
  border-radius: 12px !important;
  padding      : 2.5rem !important;

  @media (max-width: 576px) {
    padding: 1rem !important;
  }
}

.benefits-box ol {
  font-size  : 18px;
  line-height: 34px;

  @media (max-width: 576px) {
    font-size   : 16px;
    line-height : 28px;
    padding-left: 1.5rem;
  }
}

.benefits-box ol li:not(:last-child) {
  margin-bottom: 8px;
}

table.price_waku {
  font-size: 16px;
  width    : fit-content;
  margin   : 1rem 0 0;
  width    : 100%;

  @media (max-width: 576px) {
    font-size: 14px;
    width    : 100%;
  }
}

table.price_waku th,
table.price_waku td {
  padding-block: 10px;
  line-height  : 1.6;
}

#sec-last .apo-notes {
  width        : fit-content;
  margin-inline: auto;
}

#sec-last .apo-notes .box-info__phone {
  font-size: 38px;

  @media (max-width: 576px) {
    font-size: 30px;
  }
}

.flow-step {
  display              : grid;
  grid-template-columns: 1fr;
  gap                  : 1.5rem;
  align-items          : center;
}

.flow-image {
  width: 100%;
}

.flow-image img {
  width        : 100%;
  height       : auto;
  border-radius: 8px;
  display      : block;
}

.flow-step-label {
  display         : inline-block;
  font-size       : 0.875rem;
  color           : #fff;
  background-color: var(--primary);
  font-weight     : bold;
  margin-bottom   : 0.5rem;
  padding         : 0.25rem 0.75rem;
  border-radius   : 4px;
}

.flow-content h3 {
  font-size    : 1.25rem;
  color        : var(--primary);
  margin-bottom: 0.75rem;
  font-weight  : bold;
}

.flow-content p {
  font-size  : 16px;
  line-height: 1.8;
  color      : #333;
}

@media (min-width: 992px) {
  .flow-step {
    grid-template-columns: 1fr 1fr;
    gap                  : 2.5rem;
  }

  .flow-step:nth-child(even) {
    direction: rtl;
  }

  .flow-step:nth-child(even) .flow-content {
    direction: ltr;
  }
}

.symptom-buttons {
  display       : flex;
  flex-direction: column;
  gap           : 15px;
  white-space   : pre-wrap;
  word-break    : keep-all;
}

.symptom-btn {
  background     : #fff;
  border         : 2px solid var(--primary);
  border-radius  : 8px;
  padding        : 16px 24px;
  text-align     : center;
  color          : var(--font-body-color);
  transition     : all 0.3s ease;
  text-decoration: none;
  cursor         : pointer;
}

.symptom-btn {
  display        : flex;
  justify-content: flex-start;
  align-items    : center;
  gap            : 3cqw;
  text-align     : left;
}

.symptom-btn::before {
  content     : "";
  display     : block;
  width       : 7cqw;
  aspect-ratio: 1/1;
  background  : url(../images/oralsurgery_implant/icon1.png) center / cover no-repeat;
}

.symptom-btn:nth-of-type(2)::before {
  background: url(../images/oralsurgery_implant/icon2.png) center / cover no-repeat;
}

.symptom-btn:nth-of-type(3)::before {
  background: url(../images/oralsurgery_implant/icon3.png) center / cover no-repeat;
}

.symptom-btn:nth-of-type(4)::before {
  background: url(../images/oralsurgery_implant/icon4.png) center / cover no-repeat;
}

.symptom-btn:nth-of-type(5)::before {
  background: url(../images/oralsurgery_implant/icon5.png) center / cover no-repeat;
}

.symptom-btn:hover {
  background: rgba(var(--primary-rgb), 0.1);
}

.symptom-btn strong {
  color: var(--primary);
}

@media only screen and (min-width: 769px) {
  .symptom-buttons {
    display              : grid;
    grid-template-columns: repeat(2, 1fr);
    gap                  : 20px;
  }
}

@media only screen and (min-width: 1024px) {
  .symptom-buttons {
    display              : grid;
    grid-template-columns: repeat(3, 1fr);
    gap                  : 20px;
  }
}

.symptom-details {
  display       : flex;
  flex-direction: column;
  gap           : 20px;
}

.symptom-detail-box {
  background   : #fff;
  padding      : 25px 30px;
  filter       : drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
  border-radius: 8px;
}

.symptom-detail-box p.box-title {
  text-align   : center;
  font-size    : 1.3rem;
  color        : var(--primary);
  margin-bottom: 15px;
  font-weight  : bold;
}

.symptom-detail-box[id] {
  scroll-margin-top: 120px;
}

@media only screen and (min-width: 769px) {
  .symptom-details {
    display              : grid;
    grid-template-columns: repeat(2, 1fr);
    gap                  : 25px;
  }
}

.credentials-list {
  list-style  : none;
  padding-left: 1em;
}

.credentials-list li {
  text-indent : -1em;
  padding-left: 0;
}

.credentials-list li span {
  margin-right: 5px;
}

.treatment-comparison {
  display       : flex;
  flex-direction: column;
  gap           : 20px;
}

.treatment-box {
  background   : #fff;
  padding      : 25px 30px;
  filter       : drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
  border-radius: 8px;
}

.treatment-box h3 {
  font-size     : 1.25rem;
  color         : var(--primary);
  margin-top    : 5px;
  margin-bottom : 20px;
  font-weight   : bold;
  text-align    : center;
  padding-bottom: 15px;
  border-bottom : 2px solid var(--primary);
}

.treatment-box img {
  width        : 100%;
  height       : auto;
  border-radius: 8px;
  margin-bottom: 5px;
}

.treatment-section {
  margin-bottom: 15px;
}

.treatment-section:last-child {
  margin-bottom: 0;
}

.treatment-section h4 {
  font-size    : 1rem;
  color        : var(--primary);
  margin-bottom: 8px;
  font-weight  : bold;
}

.treatment-section p {
  font-size  : 0.9375rem;
  line-height: 1.7;
}

@media only screen and (min-width: 769px) {
  .treatment-comparison {
    display              : grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows   : auto auto auto auto auto;
    gap                  : 25px;
  }

  .treatment-box {
    display           : grid;
    grid-template-rows: subgrid;
    grid-row          : span 5;
  }
}

.straumann-section {
  display    : grid;
  gap        : 1em;
  align-items: center;
}

.straumann-text p {
  line-height: 1.8;
}

.straumann-image img {
  width : 100%;
  height: auto;
}

@media only screen and (min-width: 769px) {
  .straumann-section {
    grid-template-columns: 1fr 25%;
  }
}

.sedation-subtitle {
  font-size    : 1.5rem;
  font-weight  : bold;
  color        : var(--primary);
  text-align   : center;
  margin-bottom: 20px;
}

.sedation-features {
  list-style: none;
  padding   : 0;
  margin    : 0;
  text-align: center;
}

.sedation-features li {
  font-size    : 1rem;
  font-weight  : bold;
  color        : var(--primary);
  margin-bottom: 10px;
  white-space  : pre-wrap;
  word-break   : keep-all;
}

.sedation-features li:last-child {
  margin-bottom: 0;
}

.sedation-box {
  background   : linear-gradient(135deg, #e8f4f6 0%, #f0f8fa 100%);
  padding      : 48px;
  border-radius: 10px;
  filter       : drop-shadow(0 4px 12px rgba(56, 135, 149, 0.15));
  width        : 100%;
  margin       : 0 auto;
}

.price-table {
  width          : 100%;
  border-collapse: collapse;
}

.price-table th,
.price-table td {
  border    : 1px solid #ddd;
  padding   : 15px 20px;
  text-align: left;
}

.price-table th {
  background : rgba(var(--primary-rgb), 0.1);
  color      : var(--primary);
  font-weight: bold;
  width      : 40%;
}

.price-table td {
  background: #fff;
}

.price-notes {
  list-style: none;
  padding   : 0;
  margin    : 0;
}

.price-notes li {
  font-size    : 0.9375rem;
  line-height  : 1.8;
  margin-bottom: 5px;
}

.page-content__header .c2-header {
  margin-bottom: 0;
}


@media only screen and (min-width: 576px) {
  .direction-column {
    flex-direction: column !important;
    gap           : 1em;
  }
}

*:has(> wbr) {
  white-space: pre-wrap;
  word-break : keep-all;
}

.page-content__header .c2-header {
  margin-bottom: 0;
}

.page-content__header__inner {
  padding-top: 0;
}


@media only screen and (max-width: 768px) {
  body#p-services .griding:not(:first-of-type) {
    margin-top: 2em;
  }
}

@media only screen and (min-width: 769px) {
  body#p-services .griding {
    display      : grid !important;
    grid-template: auto auto / 1fr 1fr;
  }

  body#p-services .griding>div.col-lg-6 {
    display           : grid;
    grid-template-rows: subgrid;
    grid-row          : span 2;
    width             : 100% !important;
  }
}

body#p-services .staff-greeting .sc__thumb {
  width: 100%;
}

body#p-services h2.box-style__header__title.borders,
body#p-services p.borders {
  padding         : 24px;
  background      : white;
  box-shadow      : 0 0 5px #ccc;
  background      : white;
  position        : relative;
  background-image: linear-gradient(0deg, #fafafa, #ffffff 56%);
  text-align      : center;
  color           : #a32e26;
  white-space     : pre-wrap;
  word-break      : keep-all;
  font-weight     : bold;
  border          : 2px solid #a32e26;
  border-radius   : 8px;
}

body#p-services p.borders {
  font-size: 120%;
}

body#p-services h2.box-style__header__title.borders::before,
body#p-services p.borders::before {
  content       : "";
  display       : block;
  width         : calc(100% - 12px);
  height        : calc(100% - 12px);
  inset         : 6px;
  border        : 1px solid #a32e26;
  pointer-events: none;
  z-index       : 2;
  position      : absolute;
  border-radius : 8px;
}


body#p-services .c-content.about {
  display      : grid;
  grid-template: auto / auto;
  gap          : 2em;
}

@media only screen and (min-width: 769px) {
  body#p-services .c-content.about {
    grid-template: auto / 1fr 35%;
    place-items  : start center;
  }

  body#p-services .c-content.about .bg--white:first-of-type {
    grid-row   : 1 / 2;
    grid-column: 2 / 3;
  }

  body#p-services .c-content.about .bg--white:last-of-type {
    grid-row   : 1 / 2;
    grid-column: 1 / 2;
  }
}

body#p-services .c-content.about .bg--white:last-of-type {
  padding              : 2em;
  background           : #f9f9f9 !important;
  border-radius        : 8px;
  border               : 3px solid rgba(var(--secondary-rgb), 0.9);
  font-feature-settings: "palt"1;
  text-align           : justify;
}

body#p-services .c-content.about .bg--white:last-of-type strong,
body#p-services strong.green {
  color    : rgba(var(--secondary-rgb), 0.9);
  font-size: 108%;
}

.symptom-detail-box h3 {
  display        : flex;
  justify-content: center;
  align-items    : center;
  flex-direction : column;
  gap            : 16px;
  text-align     : center;
}

.symptom-detail-box img {
  width : 80%;
  margin: 1em 10%;
}

.symptom-detail-box h3 span *:is(span, small) {
  display: inline-block;
}

.symptom-detail-box {
  display           : grid;
  grid-template-rows: subgrid;
  grid-row          : span 3;
}

p.straumann {
  text-align   : center;
  margin-bottom: 1em;
}

p.straumann img {
  width     : min(80%, 280px);
  margin    : auto;
  border    : 1px solid #ccc;
  box-sizing: border-box;
}

span.asterisk {
  display        : inline-flex;
  justify-content: flex-start;
  align-items    : flex-start;
}

span.asterisk::before {
  content    : "※";
  width      : 1em;
  flex-shrink: 0;
  display    : inline-block;
}

section.movie {
  margin    : 1em auto;
  text-align: center;
}

section.movie video {
  width       : min(90%, 1080px);
  box-sizing  : border-box;
  aspect-ratio: 16/9;
  font-size   : 0;
  line-height : 0;
  border      : 1px solid #ccc;
}

.three-wrap {
  margin-top: 3rem;
}

.three-wrap>p {
  display        : flex;
  justify-content: center;
  align-items    : center;
}

.three-wrap p img {
  width : min(100%, 360px);
  margin: auto;
}

@media only screen and (max-width: 480px) {
  .three-wrap p img {
    width : min(100%, 300px);
    margin: auto;
  }
}

.three-wrap {
  display      : grid;
  grid-template: auto auto auto / 100%;
  gap          : 1.5em;
}

@media only screen and (min-width: 921px) {
  .three-wrap {
    grid-template: auto / .8fr 2fr .8fr;
  }
}