@charset "utf-8";

/* 診療案内系下層ページ共通（医院紹介ページのヒーロー・本文トーンに準拠） */
.subpage-hero {
  position: relative;
  overflow: hidden;
  height: 25rem;
  padding: 120px 0 2rem;
  background-color: #f5f2fb;
  background-image: url("../images/sub/bg_content_title.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
}

.subpage-hero::before{
  content: "";
  width: 20rem;
  aspect-ratio: 1;
  clip-path: polygon(100% 0, 0 0, 0 100%);
  background: #fff;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
}

.subpage-hero > .container {
  position: relative;
  z-index: 1;
}

.subpage-breadcrumb {
  margin: 0 0 5rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 1em;
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--color-brand-navy);
}

.subpage-breadcrumb li::after{
  font-family: FontAwesome;
  content:"\f105";
  margin-left: 1em;
}

.subpage-breadcrumb li:last-child::after{
  content: none;
}

.subpage-breadcrumb a {
  color: var(--color-text-accent);
  text-decoration: none;
}

.subpage-breadcrumb a:hover {
  text-decoration: underline;
}


.subpage-hero__title-block {
  margin-bottom: 0;
}

.subpage-hero__title {
  margin: 0;
  font-size: 2.5rem;
  line-height: 1;
  font-weight: 450;
  color: var(--color-brand-navy);
  letter-spacing: 0.5em;
}

.subpage-hero__title-en {
  display: block;
  margin-top: 0.5em;
  font-family: var(--font-en);
  font-size: 1.125rem;
  color: var(--color-brand-navy);
  letter-spacing: 0.25em;
}

.subpage-main {
  padding-block: clamp(2.5rem, 6vw, 4rem) clamp(3.5rem, 8vw, 5rem);
  background: #ffffff;
  min-height: 500px;
}

.subpage-main strong {
  font-weight: 600;
}

/* ページ内アンカーナビ — 医院紹介 .clinic-inpage-nav.clinic-inpage-nav--philosophy と同型 */
.subpage-inpage-wrap {
  position: relative;
  z-index: 1;
  padding-top: clamp(0.5rem, 1.5vw, 1rem);
  margin-bottom: clamp(2.25rem, 5.5vw, 3.5rem);
}

.subpage-inpage-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.subpage-inpage-nav a {
  font-size: 1.125rem;
  line-height: 1;
  color: var(--color-text-muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.875rem;
}

.subpage-inpage-nav a::before {
  content: "";
  display: inline-block;
  width: 1rem;
  aspect-ratio: 1;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center center;
  background-image: url(../images/icon_arrow_black.png);
}

.subpage-inpage-nav a:hover,
.subpage-inpage-nav a:focus-visible {
  color: var(--color-teal);
}

.subpage-prose {
   margin: 0 auto;
   line-height: 1.8;
  color: var(--color-text);
}

.subpage-prose > section {
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
  scroll-margin-top: 7rem;
}

.subpage-prose > section:last-child {
  margin-bottom: 0;
}

/* 本文内のネスト section（産後ケアなど）の区切り */
.subpage-prose > section > section {
  margin-top: 1.35rem;
  padding-top: 1.25rem;
  border-top: 1px solid #f0f0f5;
}

.subpage-prose > section > section:first-of-type {
  margin-top: 1rem;
  padding-top: 0;
  border-top: 0;
}

.subpage-prose h2 {
  margin: 0 0 2rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e0e2ea;
  font-size: 1.625rem;
  line-height: 1.45;
  font-weight: 700;
  color: #32504a;
  scroll-margin-top: 7rem;
}

.subpage-prose h3 {
  margin: 1.5rem 0 0.75rem;
  font-size: 18.4px;
  line-height: 1.5;
  font-weight: 700;
  color: #32504a;
}

.subpage-prose p {
  margin: 0 0 1em;
}

.subpage-prose p:last-child {
  margin-bottom: 0;
}

.subpage-prose ul {
  margin: 0.85em 0 1.1em;
  padding-left: 1.25em;
}

.subpage-prose li {
  margin-bottom: 0.45em;
  padding-left: 1em;
  position: relative;
}

.subpage-prose li::before {
  content: "";
  display: inline-block;
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 0.35em;
  aspect-ratio: 1;
  background-color: #32504a;
  border-radius: 50%;
}

/* 補足・制度などを軽く区切る（装飾は最小限） */
.subpage-callout {
  margin: 1.25rem 0 1.5rem;
  padding: 1rem 1.2rem;
  background: #faf9fd;
  border-left: 4px solid #32504a;
  border-radius: 0 10px 10px 0;
}

.subpage-callout > :first-child {
  margin-top: 0;
}

.subpage-callout > :last-child {
  margin-bottom: 0;
}

.subpage-callout h3,
.subpage-callout h4 {
  margin-top: 0;
  margin-bottom: 0.65rem;
  font-size: 17px;
  color: #32504a;
}

.subpage-lead {
  font-size: 17px;
  line-height: 1.75;
  color: #4e505d;
}

.subpage-prose strong {
  font-weight: 700;
  color: #1a1a1a;
}

.subpage-prose .subpage-note {
  margin-top: 1rem;
  padding: 1rem 1.15rem;
  background: #f3faf7;
  border-radius: 8px;
  font-size: 15px;
  line-height: 1.65;
  color: #4e505d;
}

.subpage-table-wrap {
  margin: 1rem 0 1.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.subpage-prose table {
  width: 100%;
  min-width: 280px;
  border-collapse: collapse;
  font-size: 15px;
}

.subpage-prose th,
.subpage-prose td {
  padding: 0.65rem 1rem;
  border: 1px solid #e0e2ea;
  text-align: left;
  vertical-align: top;
}

.subpage-prose thead th {
  background: #f3faf7;
  color: #32504a;
  font-weight: 600;
}

.subpage-prose tbody th {
  font-weight: 500;
  color: #4e505d;
  background: #fafbfc;
}

/* 準備中ページ */
.subpage-placeholder-msg {
  max-width: 36rem;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) 1rem;
  text-align: center;
  font-size: 17px;
  line-height: 1.8;
  color: #4e505d;
}

.subpage-placeholder-msg p {
  margin: 0 0 1.25em;
}

.subpage-placeholder-msg p:last-child {
  margin-bottom: 0;
}

.subpage-placeholder-msg a {
  color: var(--color-brand-navy);
  text-decoration: underline;
}

.subpage-placeholder-msg a:hover {
  color: #32504a;
}

.subpage-prose .news__list{
  margin: 0;
  padding: 0;
}

.subpage-prose .news__list > li{
  margin: 0;
  padding: 0;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

.subpage-prose .news__list > li::before{
  content: none;
}

.subpage-prose .news__list > li .news_link,
.subpage-prose .news__list > li .nolink,
.subpage-prose .news__list > li .news_direct{
  display: flex;
  gap: 2rem;
  text-decoration: none;
  padding: 1em;
  transition: .3s all ease;
}

.subpage-prose .news__list > li .news_link:hover,
.subpage-prose .news__list > li .news_direct:has(a):hover{
  background-color: var(--color-access-lavender);
}

.subpage-prose .news__list > li .news_direct:has(a){
  cursor: pointer;
}

.subpage-prose .news__list > li time{
  flex-shrink: 0;
  color: var(--color-text-muted);
  font-size: 0.9em;
}

.subpage-prose .news__list > li .entry_title{
  font-weight: 500;
}

.entry_body_direct{
  margin-top: 0.5em;
}

  .entry_body_direct p{
    margin: 0 0 0.5em 0;
  }

  .entry_body_direct p a{
    color: var(--color-brand-navy);
    text-decoration: underline;
  }

  .entry_body_direct p a:hover{
    opacity: 0.8;
  }

.news-single-header{
  margin-bottom: 2rem;  
}

  .news-single-header time{
   display: block;
   color: var(--color-text-muted);
   font-size: 0.9em; margin-bottom: 0.5rem; 
  }

  .subpage-prose .news-single-header h2{
    font-size: 1.75rem;
    line-height: 1.4;
    color: var(--color-brand-navy);
    margin-top: 0;
    border-bottom: none;
    padding-bottom: 0;
  }

  .subpage-prose .news-single-content a{
    color: var(--color-brand-navy);
    text-decoration: underline;
  }

  .subpage-prose .news-single-content a:hover{
    opacity: 0.8;
  }

.news-single-footer{
  margin-top: 4rem;
  display: flex;
  justify-content: center;
}

  .news-single-footer a{
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-text-muted);
    text-decoration: none;
    transition: .3s all ease;
  }

  .news-single-footer a::before{
    content: "";
    display: inline-block;
    width: 1rem;
    aspect-ratio: 1;
    background-image: url(../images/icon_arrow_purple.png);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    transform: rotate(180deg);
    transition: .3s all ease; 
  }

  .news-single-footer a:hover{
    color: var(--color-brand-navy);
  }

    .news-single-footer a:hover::before{
      transform: rotate(180deg) translateX(0.25rem);
    }

/*まめチャット*/
.chat_list{
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 0 2rem;
}

  .chat_list > dl{
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
  }

    .chat_list > dl dt{
      display: flex;
      flex-direction: column;
      align-items: center;
      font-size: 0.9em;
    }

      .chat_list > dl dt img{
        width: 6rem;
      }

    .chat_list > dl dd{
      flex: 1;
      background: #fafafa;
      padding: 1.5rem;
      border-radius: 0.5rem;
      position: relative;
      font-size: 1.08em;
    }

    .chat_list > dl dd::before{
      content: "";
      position: absolute;
      top: 2rem;
      display: inline-block;
      width: 1rem;
      aspect-ratio: 1;
    }

    .chat_list > dl dd p{
      margin-bottom: 1em;
    }

    .chat_list > dl dd p:last-child{
      margin-bottom: 0;
    }

  /*まめ吉*/
  .chat_list > dl.r_mame dd,
  .chat_list > dl.r_mame dd::before{
    background: #f9f2f2;
  }

  .chat_list > dl.r_mame dd{
    margin-right: 12.5rem;
  }

  .chat_list > dl.r_mame dd::before{
    left: -1rem;
    clip-path: polygon(100% 0, 0 0, 100% 100%);
  }

  /*Bun先生*/
  .chat_list > dl.r_bun{
    flex-direction: row-reverse;
  }

  .chat_list > dl.r_bun dd{
    margin-left: 12.5rem;
  }

  .chat_list > dl.r_bun dd,
  .chat_list > dl.r_bun dd::before{
    background: #ecf5f9;
  }

  .chat_list > dl.r_bun dd::before{
    right: -1rem;
    clip-path: polygon(0 0, 100% 0, 0 100%);
  }



/*1280px以下*/
@media screen and (min-width:1px) and (max-width:1280px){

}


/*1180px以下*/
@media screen and (min-width:1px) and (max-width:1180px){

    
}

/*1080px以下*/
@media screen and (min-width:1px) and (max-width:1080px){

}

/*ipad*/
@media screen and (min-width:1px) and (max-width:1024px){
  .subpage-hero{
    padding-top: 7rem;
  }

}

/* ##########SP########## */
@media screen and (min-width:1px) and (max-width:575px) {
  .subpage-hero{
    padding-top: 18vw;
    height: 50vw;
  }

  .subpage-hero::before{
    width: 40vw;
  }

  .subpage-hero > .container{
    padding-inline: 5vw;
  }

  .subpage-breadcrumb{
    gap: 0.5em;
    font-size: 0.75rem;
    margin-bottom: 2rem;
  }

  .subpage-hero__title{
    font-size: 1.8rem;
    letter-spacing: 0.1em;
  }

  .subpage-hero__title-en{
    font-size: 1rem;
    margin-top: 0;
  }

  .subpage-main{
    min-height: 80vh;
  }

  .subpage-main > .container{
    padding: 0 6vw;
  }

  .subpage-inpage-nav{
    gap: 0 1rem;
  }

    .subpage-inpage-nav > li{
      width: calc((100% - 1rem) / 2);
    }
  .subpage-prose h2 {
    font-size: 1.4rem;
  }

  .subpage-prose .news-single-header h2{
    font-size: 1.4rem;
  }

  .subpage-prose .news__list > li .news_link,
  .subpage-prose .news__list > li .nolink,
  .subpage-prose .news__list > li .news_direct{
    gap: 0;
    flex-direction: column;
    line-height: 1.5;
  }

  /*まめチャット*/
  .chat_list{
    padding: 0;
  }

  .chat_list > dl dt img{
    width: 4rem;
  }

  .chat_list > dl dd{
    line-height: 1.6;
    padding: 1rem;
  }

  .chat_list > dl.r_mame dd{
    margin-right: 0;
  }

  .chat_list > dl.r_bun dd{
    margin-left: 0;
  }

}