@charset "UTF-8";
/*
Theme Name: ハートクリニック飯田橋
Description: 医療法人社団 喜生会 ハートクリニック飯田橋 オリジナルテーマ（wordpress baseテーマを元に作成）
Version: 1.0
Tags: html5 css3(scss) javascript php mysql
*/
.fontSerif {
  font-family: "Noto Sans JP", sans-serif;
}

.pc {
  display: block !important;
}

.sp {
  display: none !important;
}

@media screen and (max-width: 767px) {
  .pc {
    display: none !important;
  }
  .sp {
    display: block !important;
  }
}
/* ----------------------------------- */
/* clearfix
/* ----------------------------------- */
.clearfix:before, .clearfix:after {
  content: " ";
  display: table;
}

.clearfix:after {
  clear: both;
}

/* ----------------------------------- */
/* フォントサイズ・余白 */
/* ----------------------------------- */
.fs12 {
  font-size: 12px !important;
}

.fs14 {
  font-size: 14px !important;
}

.fs16 {
  font-size: 16px !important;
}

.fs18 {
  font-size: 18px !important;
}

.fs20 {
  font-size: 20px !important;
}

.fs22 {
  font-size: 22px !important;
}

.fs24 {
  font-size: 24px !important;
}

.mt0 {
  margin-top: 0 !important;
}

.mt5 {
  margin-top: 5px !important;
}

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

.mt15 {
  margin-top: 15px !important;
}

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

.mt25 {
  margin-top: 25px !important;
}

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

.mt35 {
  margin-top: 35px !important;
}

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

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

.mt60 {
  margin-top: 60px !important;
}

.mt70 {
  margin-top: 70px !important;
}

.mt80 {
  margin-top: 80px !important;
}

@media screen and (max-width: 767px) {
  .spmt0 {
    margin-top: 0 !important;
  }
  .spmt5 {
    margin-top: 5px !important;
  }
  .spmt10 {
    margin-top: 10px !important;
  }
  .spmt15 {
    margin-top: 15px !important;
  }
  .spmt20 {
    margin-top: 20px !important;
  }
  .spmt25 {
    margin-top: 25px !important;
  }
  .spmt30 {
    margin-top: 30px !important;
  }
  .spmt35 {
    margin-top: 35px !important;
  }
  .spmt40 {
    margin-top: 40px !important;
  }
  .spmt50 {
    margin-top: 50px !important;
  }
  .spmt60 {
    margin-top: 60px !important;
  }
  .spmt70 {
    margin-top: 70px !important;
  }
  .spmt80 {
    margin-top: 80px !important;
  }
}
.mb0 {
  margin-bottom: 0 !important;
}

.mb5 {
  margin-bottom: 5px !important;
}

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

.mb15 {
  margin-bottom: 15px !important;
}

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

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

.mb35 {
  margin-bottom: 35px !important;
}

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

.mb48 {
  margin-bottom: 48px !important;
}

.mb45 {
  margin-bottom: 45px !important;
}

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

.mb55 {
  margin-bottom: 55px !important;
}

.mb60 {
  margin-bottom: 60px !important;
}

.mb65 {
  margin-bottom: 65px !important;
}

.mb70 {
  margin-bottom: 70px !important;
}

.mb75 {
  margin-bottom: 75px !important;
}

.mb80 {
  margin-bottom: 80px !important;
}

.mb85 {
  margin-bottom: 85px !important;
}

.mb90 {
  margin-bottom: 90px !important;
}

.mb95 {
  margin-bottom: 95px !important;
}

.mb100 {
  margin-bottom: 100px !important;
}

.mb120 {
  margin-bottom: 120px !important;
}

@media screen and (max-width: 767px) {
  .spmb0 {
    margin-bottom: 0 !important;
  }
  .spmb5 {
    margin-bottom: 5px !important;
  }
  .spmb10 {
    margin-bottom: 10px !important;
  }
  .spmb15 {
    margin-bottom: 15px !important;
  }
  .spmb20 {
    margin-bottom: 20px !important;
  }
  .spmb30 {
    margin-bottom: 30px !important;
  }
  .spmb32 {
    margin-bottom: 32px !important;
  }
  .spmb35 {
    margin-bottom: 35px !important;
  }
  .spmb40 {
    margin-bottom: 40px !important;
  }
  .spmb48 {
    margin-bottom: 48px !important;
  }
  .spmb45 {
    margin-bottom: 45px !important;
  }
  .spmb50 {
    margin-bottom: 50px !important;
  }
  .spmb55 {
    margin-bottom: 55px !important;
  }
  .spmb60 {
    margin-bottom: 60px !important;
  }
  .spmb65 {
    margin-bottom: 65px !important;
  }
  .spmb70 {
    margin-bottom: 70px !important;
  }
  .spmb75 {
    margin-bottom: 75px !important;
  }
  .spmb80 {
    margin-bottom: 80px !important;
  }
  .spmb85 {
    margin-bottom: 85px !important;
  }
  .spmb90 {
    margin-bottom: 90px !important;
  }
  .spmb95 {
    margin-bottom: 95px !important;
  }
  .spmb100 {
    margin-bottom: 100px !important;
  }
  .spmb120 {
    margin-bottom: 120px !important;
  }
}
.w10p {
  width: 10% !important;
}

.w20p {
  width: 20% !important;
}

.w30p {
  width: 30% !important;
}

.w40p {
  width: 40% !important;
}

.w50p {
  width: 50% !important;
}

.w60p {
  width: 60% !important;
}

.w70p {
  width: 70% !important;
}

.w80p {
  width: 80% !important;
}

.w90p {
  width: 90% !important;
}

.w100p {
  width: 100% !important;
}

/* ----------------------------------- */
/* 配置 */
/* ----------------------------------- */
.alignnone {
  max-width: 100%;
}

.alignleft {
  display: inline;
  float: left;
}

.alignright {
  display: inline;
  float: right;
}

.aligncenter {
  display: block;
  margin-right: auto;
  margin-left: auto;
}

blockquote.alignleft,
img.alignleft {
  margin: 0 20px 20px 0;
}
blockquote.alignright,
img.alignright {
  margin: 0 0 20px 20px;
}
blockquote.aligncenter,
img.aligncenter {
  clear: both;
  margin-left: auto;
  margin-right: auto;
}

.wp-caption.alignleft,
.wp-caption.alignright,
.wp-caption.aligncenter {
  margin-bottom: 20px;
}

/* ----------------------------------- */
/* イメージ */
/* ----------------------------------- */
img {
  vertical-align: bottom;
  max-width: 100%;
}
#postCnt img {
  height: auto;
  flex-shrink: 0;
}
img[class*=align], img[class*=wp-image-], img[class*=attachment-] {
  height: auto;
}
img.alignleft, img.alignright, img.aligncenter {
  margin-bottom: 30px;
}
img.alignleft {
  display: inline;
  float: left;
  margin-right: 20px;
}
img.alignright {
  display: inline;
  float: right;
  margin-left: 20px;
}
img.aligncenter {
  clear: both;
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 30px !important;
}

/* ----------------------------------- */
/* ギャラリー */
/* ----------------------------------- */
.gallery {
  margin: 30px 0;
}
.gallery .gallery-item {
  display: inline-block;
  padding: 0 1.79104477%;
  text-align: center;
  vertical-align: top;
  width: 100%;
  margin: 0 0 15px;
}
.gallery .gallery-item .gallery-icon img {
  margin: 0 auto;
  width: 100%;
  height: auto;
  border: none !important;
}
.gallery .gallery-item .gallery-caption {
  color: #707070;
  display: block;
  text-align: left;
  font-size: 14px;
  line-height: 1.5;
  padding: 0.5em 0 0;
  margin: 0;
}
.gallery.gallery-columns-2 .gallery-item {
  max-width: 50%;
}
.gallery.gallery-columns-3 .gallery-item {
  max-width: 33.33%;
}
.gallery.gallery-columns-4 .gallery-item {
  max-width: 25%;
}
.gallery.gallery-columns-5 .gallery-item {
  max-width: 20%;
}
.gallery.gallery-columns-6 .gallery-item {
  max-width: 16.66%;
}
.gallery.gallery-columns-7 .gallery-item {
  max-width: 14.28%;
}
.gallery.gallery-columns-8 .gallery-item {
  max-width: 12.5%;
}
.gallery.gallery-columns-9 .gallery-item {
  max-width: 11.11%;
}
/* キャプション */
/* ----------------------------------- */
.wp-caption {
  max-width: 100%;
  margin: 0;
}
.wp-caption img {
  border-color: none;
}

/* ----------------------------------- */
/* カラム */
/* ----------------------------------- */
.column2Wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 55px;
}
.column2Wrap .columnBox {
  flex-basis: calc((100% - 40px * (2 - 1)) / 2);
  max-width: calc((100% - 40px * (2 - 1)) / 2);
}
.column2Wrap .columnBox p:last-of-type {
  margin-bottom: 0;
}
.column2Wrap .columnBox:nth-of-type(n + 3) {
  margin-top: 20px;
}
.column2Wrap.sp3_7 .columnBox:nth-of-type(odd) {
  flex-basis: 300px;
  max-width: 300px;
}
.column2Wrap.sp3_7 .columnBox:nth-of-type(even) {
  flex-basis: calc(100% - 340px);
  max-width: calc(100% - 340px);
}
.column2Wrap.sp7_3 .columnBox:nth-of-type(odd) {
  flex-basis: calc(100% - 340px);
  max-width: calc(100% - 340px);
}
.column2Wrap.sp7_3 .columnBox:nth-of-type(even) {
  flex-basis: 300px;
  max-width: 300px;
}
.column2Wrap.sp140 .columnBox:nth-of-type(-n + 2) {
  margin-top: 0;
}
.column2Wrap.sp140 .columnBox:nth-of-type(odd) {
  flex-basis: 140px;
  max-width: 140px;
}
.column2Wrap.sp140 .columnBox:nth-of-type(even) {
  flex-basis: calc(100% - 160px);
  max-width: calc(100% - 160px);
}
.column2Wrap.sp250 .columnBox:nth-of-type(odd) {
  flex-basis: 250px;
  max-width: 250px;
}
.column2Wrap.sp250 .columnBox:nth-of-type(even) {
  flex-basis: calc(100% - 270px);
  max-width: calc(100% - 270px);
}
.column2Wrap .column2Wrap .columnBox {
  flex-basis: calc((100% - 30px * (2 - 1)) / 2);
  max-width: calc((100% - 30px * (2 - 1)) / 2);
}

.column3Wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 40px;
}
.column3Wrap:after {
  content: "";
  display: block;
  width: calc((100% - 30px * (3 - 1)) / 3);
}
.column3Wrap .columnBox {
  flex-basis: calc((100% - 30px * (3 - 1)) / 3);
  max-width: calc((100% - 30px * (3 - 1)) / 3);
}
.column3Wrap .columnBox img {
  width: 100%;
  max-width: 100%;
}
.column3Wrap .columnBox p:last-child {
  margin-bottom: 0;
}
.column3Wrap .columnBox:nth-of-type(-n + 3) {
  margin-top: 0;
}

.column4Wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 40px;
  position: relative;
}
.column4Wrap .columnBox p:last-child {
  margin-bottom: 0;
}
.column4Wrap .columnBox img {
  max-width: 100%;
  width: 100%;
}

.column6Wrap {
  display: flex;
  flex-wrap: wrap;
}
.column6Wrap .columnBox {
  flex-basis: calc((100% - 50px) / 6);
  max-width: calc((100% - 50px) / 6);
  margin-right: 10px;
}
.column6Wrap .columnBox img {
  max-width: 100%;
  width: 100%;
}
.column6Wrap .columnBox:last-of-type {
  margin-right: 0;
}
.column6Wrap .columnBox:nth-of-type(n + 7) {
  margin-top: 20px;
}

.columnBox img {
  align-self: baseline;
  max-width: 100%;
}
.columnBox p:last-of-type {
  margin: 0;
}

.borderBox .columnBox {
  padding: 15px 20px;
  border: 1px solid #eee;
  overflow: visible;
}
.borderBox .columnBox + .borderNone {
  border: none;
}

@media screen and (min-width: 1025px) {
  .column2Wrap.lp3_7 .columnBox:first-of-type {
    flex-basis: calc((100% - 60px) / 3);
    max-width: calc((100% - 60px) / 3);
  }
  .column2Wrap.lp3_7 .columnBox:last-of-type {
    flex-basis: calc((100% - 60px) / 3 * 2 + 30px);
    max-width: calc((100% - 60px) / 3 * 2 + 30px);
  }
  .column2Wrap.lp7_3 .columnBox:first-of-type {
    flex-basis: calc((100% - 60px) / 3 * 2 + 30px);
    max-width: calc((100% - 60px) / 3 * 2 + 30px);
  }
  .column2Wrap.lp7_3 .columnBox:last-of-type {
    flex-basis: calc((100% - 60px) / 3);
    max-width: calc((100% - 60px) / 3);
  }
  .column3Wrap:after {
    content: "";
    display: block;
    width: calc((100% - 30px * (3 - 1)) / 3);
  }
  .column3Wrap .columnBox:nth-of-type(n + 4) {
    margin-top: 20px;
  }
  .column4Wrap:after {
    width: calc((100% - 30px * (4 - 1)) / 4);
    content: "";
    display: block;
  }
  .column4Wrap:before {
    width: calc((100% - 30px * (4 - 1)) / 4);
    content: "";
    display: block;
    order: 1;
  }
  .column4Wrap .columnBox {
    flex-basis: calc((100% - 30px * (4 - 1)) / 4);
    max-width: calc((100% - 30px * (4 - 1)) / 4);
  }
  .column4Wrap .columnBox:nth-of-type(n + 5) {
    margin-top: 20px;
  }
}
@media screen and (min-width: 768px) and (max-width: 1024px) {
  .column3Wrap .columnBox {
    flex-basis: calc((100% - 30px * (2 - 1)) / 2);
    max-width: calc((100% - 30px * (2 - 1)) / 2);
  }
  .column3Wrap .columnBox:nth-of-type(n + 3) {
    margin-top: 20px;
  }
  .column4Wrap .columnBox {
    flex-basis: calc((100% - 30px * (2 - 1)) / 2);
    max-width: calc((100% - 30px * (2 - 1)) / 2);
  }
  .column4Wrap .columnBox:nth-of-type(n + 3) {
    margin-top: 20px;
  }
}
@media screen and (max-width: 767px) {
  .column2Wrap .columnBox {
    flex-basis: 100%;
    max-width: 100%;
  }
  .column2Wrap .columnBox:nth-of-type(n + 3) {
    margin-top: 0;
  }
  .column2Wrap .columnBox:nth-of-type(n + 2) {
    margin-top: 20px;
  }
  .column2Wrap.sp3_7 .columnBox:nth-of-type(odd) {
    flex-basis: 100%;
    max-width: 100%;
  }
  .column2Wrap.sp3_7 .columnBox:nth-of-type(even) {
    flex-basis: 100%;
    max-width: 100%;
  }
  .column2Wrap.sp7_3 .columnBox:nth-of-type(odd) {
    flex-basis: 100%;
    max-width: 100%;
  }
  .column2Wrap.sp7_3 .columnBox:nth-of-type(even) {
    flex-basis: 100%;
    max-width: 100%;
  }
  .column2Wrap {
    /* &.lp3_7 {
        .columnBox {
            &:nth-of-type(odd) {
                flex-basis: 100%;
                max-width: 100%;
            }
            &:nth-of-type(even) {
                flex-basis: 100%;
                max-width: 100%;
            }
        }
    }
    &.lp7_3 {
        .columnBox {
            &:nth-of-type(odd) {
                flex-basis: 100%;
                max-width: 100%;
            }
            &:nth-of-type(even) {
                flex-basis: 100%;
                max-width: 100%;
            }
        }
    } */
  }
  .column2Wrap.sp140 .columnBox:nth-of-type(odd) {
    flex-basis: 100%;
    max-width: 100%;
  }
  .column2Wrap.sp140 .columnBox:nth-of-type(even) {
    flex-basis: 100%;
    max-width: 100%;
  }
  .column2Wrap.sp140 .columnBox:nth-of-type(n + 2) {
    margin-top: 20px;
  }
  .column2Wrap.sp250 .columnBox:nth-of-type(odd) {
    flex-basis: 100%;
    max-width: 100%;
  }
  .column2Wrap.sp250 .columnBox:nth-of-type(even) {
    flex-basis: 100%;
    max-width: 100%;
  }
  .column2Wrap.sp250 .columnBox:nth-of-type(n + 2) {
    margin-top: 20px;
  }
  .column3Wrap .columnBox {
    flex-basis: 100%;
    max-width: 100%;
  }
  .column3Wrap .columnBox:nth-of-type(n + 2) {
    margin-top: 20px;
  }
  .column4Wrap .columnBox {
    flex-basis: 100%;
  }
  .column4Wrap .columnBox:nth-of-type(n + 2) {
    margin-top: 20px;
  }
  .column6Wrap {
    justify-content: space-between;
  }
  .column6Wrap .columnBox {
    flex-basis: calc(50% - 5px);
    max-width: calc(50% - 5px);
  }
  .column6Wrap .columnBox:nth-of-type(n + 4) {
    margin-top: 0;
  }
  .column6Wrap .columnBox:nth-of-type(n + 7) {
    margin-top: 0;
  }
  .column6Wrap .columnBox:nth-of-type(n + 3) {
    margin-top: 20px;
  }
}
/* ---------------------------------------------------------------- */
/* サイドバー  */
/* ---------------------------------------------------------------- */
#sidebar .widget-area {
  display: none;
}
#sidebar .widget img {
  max-width: 100%;
}

/* ---------------------------------------------------------------- */
/* ページナビ */
/* ---------------------------------------------------------------- */
.wp-pagenavi {
  position: relative;
  text-align: center;
  padding: 0 0;
  margin: 30px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 40px;
}
.wp-pagenavi a, .wp-pagenavi span {
  color: #244b70;
  width: 32px;
  height: 32px;
  padding: 3px 0 0 0;
  text-decoration: none;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 100%;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 5px;
}
.wp-pagenavi a:hover,
.wp-pagenavi a:focus {
  color: #fff;
  background: #244b70;
  border: 1px solid #244b70;
}
.wp-pagenavi span.current {
  color: #fff;
  background: #244b70;
  font-weight: 400;
  border: 1px solid #244b70;
}
.wp-pagenavi .nextpostslink,
.wp-pagenavi .previouspostslink {
  font-size: 20px;
  color: #244b70;
  background: none;
  border: none;
}
.wp-pagenavi .nextpostslink:hover, .wp-pagenavi .nextpostslink:focus,
.wp-pagenavi .previouspostslink:hover,
.wp-pagenavi .previouspostslink:focus {
  color: #9ba7b9;
  background: none;
  border: none;
}

/* ---------------------------- */
/* ニュースリストベース */
/* ---------------------------- */
#newsCatList .postListWrap {
  margin-top: 50px;
}

.news-postListWrap .postBox {
  display: flex;
  margin-bottom: 10px;
  transition: ease-in 0.3s;
  justify-content: space-between;
  flex-wrap: wrap;
  border-bottom: #CECECE solid 1px;
  padding: 20px 0;
}
.news-postListWrap .postBox .newsbox {
  max-width: 280px;
  flex-basis: 280px;
  display: flex;
}
.news-postListWrap .postBox .newsbox .newstime_box {
  margin-right: 21px;
}
.news-postListWrap .postBox .newsbox .newstime_box time {
  line-height: 1;
  font-size: 14px;
  width: 100px;
  align-self: center;
}
.news-postListWrap .postBox .newsbox .newscategory_box .category-name {
  margin: 0;
  border: #1D976C solid 1px;
  color: #1D976C;
  font-size: 14px;
  font-weight: 400;
  padding: 2px 30px;
  text-decoration: none;
}
.news-postListWrap .postBox .permaLinkWrap {
  max-width: calc(100% - 310px);
  flex-basis: calc(100% - 310px);
}
.news-postListWrap .postBox .permaLinkWrap a {
  min-width: 0;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  display: block;
  font-size: 16px;
  color: #333333;
  text-decoration: none;
}
.news-postListWrap .postBox:hover i, .news-postListWrap .postBox:hover a, .news-postListWrap .postBox:focus i, .news-postListWrap .postBox:focus a {
  opacity: 0.7;
  text-decoration: none;
}
@media screen and (max-width: 767px) {
  .news-postListWrap .postBox {
    flex-wrap: wrap;
  }
  .news-postListWrap .postBox .newsbox {
    flex-basis: 100%;
    max-width: 100%;
  }
  .news-postListWrap .postBox .permaLinkWrap {
    flex-basis: 100%;
    max-width: 100%;
    margin: 10px 0 0;
  }
  .news-postListWrap .postBox .permaLinkWrap a {
    text-overflow: clip;
    overflow: visible;
    white-space: normal;
    display: inline;
  }
}

/* ---------------------------- */
/* ブログリスト */
/* ---------------------------- */
.blog-postListWrap {
  display: grid;
  gap: 20px;
}
.blog-postListWrap .thumbnail {
  flex-basis: 100%;
  max-width: 100%;
  margin-bottom: 17px;
  overflow: hidden;
}
.blog-postListWrap .thumbnail a {
  width: 100%;
  overflow: hidden;
  display: block;
}
.blog-postListWrap .category_txtbox {
  display: block;
}
.blog-postListWrap .category_txtbox .category_wrap {
  display: flex;
}
.blog-postListWrap .category_txtbox .category_wrap .category_wrap_time time {
  margin-bottom: 10px;
  flex-basis: 100%;
  max-width: 100%;
  display: block;
  font-size: 16px;
  font-weight: 400;
}
.blog-postListWrap .category_txtbox .category_wrap .category_wrap_time time::after {
  content: "|";
  padding-left: 20px;
}
.blog-postListWrap .category_txtbox .category_wrap .category-name a {
  text-decoration: none;
  margin-left: 20px;
  font-size: 16px;
  color: #223a5e;
}
.blog-postListWrap .category_txtbox .permalinkWrap a {
  text-decoration: none;
  color: #223a5e;
}
@media screen and (min-width: 1025px) {
  .blog-postListWrap {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------------------------- */
/* ページヘッダー */
/* ---------------------------- */
#caseCatList #cnts, #medicalCatList #cnts, #singlePage #cnts, .page-id-35 #cnts {
  margin-bottom: 120px;
}

@media screen and (max-width: 767px) {
  #caseCatList #cnts, #medicalCatList #cnts, #singlePage #cnts, .page-id-35 #cnts {
    margin-bottom: 90px;
  }
}
/* 診療内容一覧・詳細は最後のセクションが背景付きの帯なので余白なし（診療内容カテゴリーは上の余白のまま） */
.post-type-archive-medical #medicalCatList #cnts,
.single-medical #singlePage #cnts {
  margin-bottom: 0;
}
/* ---------------------------------------------------------------- */
/* パンくず */
/* ---------------------------------------------------------------- */
.pcm-breadcrumbs {
  margin-bottom: 80px;
}
.pcm-breadcrumbs__list {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  margin: 0 auto;
  font-size: 14px;
  line-height: 120%;
  font-weight: 600;
  letter-spacing: 0;
  list-style: none;
  padding-left: 0 !important;
}
.pcm-breadcrumbs__item::marker {
  display: none !important;
}
.pcm-breadcrumbs__item:not(:last-child)::after {
  content: ">";
  padding: 0 6px;
}
.pcm-breadcrumbs__link {
  color: #244b70 !important;
  text-decoration: none !important;
}
.pcm-breadcrumbs__link:hover {
  color: #244b70 !important;
  text-decoration: underline !important;
}
@media screen and (min-width: 1025px) {
  .pcm-breadcrumbs {
    max-width: 1200px;
  }
}
@media screen and (min-width: 768px) and (max-width: 1024px) {
  .pcm-breadcrumbs {
    max-width: 970px;
    padding-left: 5%;
    padding-right: 5%;
  }
}
@media screen and (max-width: 767px) {
  .pcm-breadcrumbs {
    max-width: 750px;
    margin-bottom: 60px;
  }
}

/* ---------------------------------------------------------------- */
/* 詳細ページ */
/* ---------------------------------------------------------------- */
.postPage #postCnt {
  margin: 20px 0 0;
  min-height: 300px;
}
.postPage h1, .postPage h2, .postPage h3, .postPage h4, .postPage h5, .postPage h6 {
  line-height: 1.2;
}
.postPage .titleh2,
.postPage .titleh3,
.postPage .titleh4,
.postPage .titleh5,
.postPage .titleh6 {
  font-family: var(--font-family-base);
  font-weight: 700;
  line-height: 1.6;
}
.postPage .titleh2 {
  font-size: 32px;
  color: var(--color-primary);
  margin: 0 0 40px;
}
.postPage .titleh2._center {
  text-align: center;
}
.postPage .titleh3 {
  font-size: 28px;
  color: var(--color-secondary);
  margin: 0 0 24px;
}
.postPage .titleh4 {
  position: relative;
  padding-left: 20px;
  font-size: 24px;
  color: var(--color-primary);
  margin: 0 0 24px;
}
.postPage .titleh4::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.25em;
  width: 6px;
  height: 1.1em;
  background: linear-gradient(to bottom, var(--color-primary) 50%, var(--color-secondary) 50%);
}
.postPage .titleh5 {
  position: relative;
  padding-left: 30px;
  font-size: 20px;
  color: var(--color-primary);
  margin: 0 0 24px;
}
.postPage .titleh5::before {
  content: "";
  position: absolute;
  left: 0;
  top: calc(0.8em - 1px);
  width: 20px;
  height: 2px;
  background-color: var(--color-secondary);
}
.postPage .titleh6 {
  font-size: 18px;
  color: var(--color-secondary);
  margin: 0 0 24px;
}
@media (min-width: 768px) {
  .postPage .titleh2 {
    font-size: 48px;
  }
  .postPage .titleh3 {
    font-size: 40px;
  }
  .postPage .titleh4 {
    padding-left: 24px;
    font-size: 32px;
  }
  .postPage .titleh4::before {
    width: 8px;
    height: 40px;
    top: calc((1.6em - 40px) / 2);
  }
  .postPage .titleh5 {
    padding-left: 32px;
    font-size: 24px;
  }
  .postPage .titleh6 {
    font-size: 20px;
  }
}
.postPage .box:nth-of-type(n + 2) {
  margin-top: 60px;
}
.postPage p {
  margin: 0 0 20px;
  text-align: justify;
  text-align: inter-ideograph;
}
.postPage p img {
  max-width: 100%;
  margin-bottom: 0;
}
.postPage p.tableAtt {
  margin: -20px 0 20px;
}
.postPage .bold {
  font-weight: bold;
}
.postPage .coming {
  text-align: center;
  margin: 50px 0;
  font-size: 16px;
}
.postPage .small {
  font-size: 14px;
}
.postPage .linkWrap {
  display: flex;
  flex-wrap: wrap;
  margin: 15px 0 0;
  align-items: flex-start;
}
.postPage .imgWrap + .imgWrap {
  margin-top: 20px;
}
.postPage .textLeft {
  text-align: left;
}
.postPage .textCenter {
  text-align: center;
}
.postPage .textRight {
  text-align: right;
}
.postPage code {
  font-family: "Noto Sans JP", sans-serif;
}
.postPage pre {
  overflow: auto;
  background: #efefef;
  padding: 15px;
  border-radius: 8px;
  font-family: "Noto Sans JP", sans-serif;
}
.postPage a {
  position: relative;
}
.postPage a:hover, .postPage a:focus {
  text-decoration: none;
  color: #50b9d0;
}
.postPage a.textBlank {
  position: relative;
  margin-right: 30px;
  display: inline-block;
}
.postPage a.textBlank:before {
  content: "\f08e";
  position: absolute;
  display: block;
  font: 14px/1 FontAwesome;
  right: -25px;
  top: 5px;
}
.postPage a.textArrow {
  text-decoration: none;
  color: #244b70;
}
.postPage a.textArrow:hover {
  color: #244b70;
  text-decoration: underline;
}
.postPage a.textArrow:after {
  display: inline-block;
  content: "\f0a9";
  font: 16px/1 FontAwesome;
  margin-left: 10px;
  text-decoration: none;
}
.postPage a.textArrowR {
  text-decoration: none;
  color: #244b70;
}
.postPage a.textArrowR:hover, .postPage a.textArrowR:focus {
  color: #244b70;
  text-decoration: underline;
}
.postPage a.textArrowR:after {
  display: inline-block;
  content: "\f0a9";
  font: 16px/1 FontAwesome;
  margin-left: 10px;
  text-decoration: none;
}
.postPage table {
  margin: 0 0 30px;
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #fff;
  background-color: var(--color-text-inverse);
}
.postPage table caption {
  font-size: 18px;
  font-weight: bold;
  text-align: left;
  margin: 0;
}
.postPage table tr {
  border-bottom: #E8E8E8 solid 1px;
}
.postPage table tr th, .postPage table tr td {
  padding: 0.6em 0.8em;
  width: auto;
  line-height: 1.4;
}
.postPage table tr th {
  background-color: #244b70;
  font-weight: bold;
  vertical-align: top;
  min-width: 190px;
  text-align: center;
  width: auto;
  color: var(--color-text-inverse);
}
.postPage table tr th.w200 {
  width: 200px;
}
.postPage table tr th.thLeft {
  text-align: left;
}
.postPage table tr td {
  border-left: none;
}
.postPage table tr td.tdCenter {
  text-align: center;
}
.postPage table tr .tw15p {
  width: 15%;
}
.postPage table tr .tw30p {
  width: 30%;
}
.postPage table tr .tw33p {
  width: 33.333%;
  min-width: inherit;
}
.postPage table tr .tw50p {
  width: 50%;
  min-width: inherit;
}
.postPage table tr .tw70p {
  width: 70%;
}
.postPage table tr .tw200 {
  width: 200px;
}
.postPage table tr .tw210 {
  width: 210px;
}
.postPage table.type2 tr {
  border-bottom: 1px solid #fff;
}
.postPage table.type2 tr:nth-child(odd) {
  background-color: inherit;
}
.postPage table.type2 tr th, .postPage table.type2 tr td {
  border-collapse: collapse;
}
.postPage table.type2 tr th {
  background: #fff;
  text-align: center;
  vertical-align: middle;
}
.postPage table.type2 tr th + th {
  border-left: 1px solid #999999;
}
.postPage table.type2 tr td + td {
  border-left: 1px solid #999999;
}
.postPage table.type2 tr td:nth-of-type(1) {
  border-left: none;
}
.postPage .tableSc {
  overflow: inherit;
  white-space: normal;
  width: 100%;
}
.postPage .tableSc table {
  width: 100%;
}
.postPage .tableSc table tr {
  border-bottom: 1px solid #fff;
}
.postPage .tableSc table tr:nth-of-type(odd) {
  background: none;
}
.postPage .tableSc table tr th, .postPage .tableSc table tr td {
  display: table-cell;
  border-collapse: collapse;
  width: inherit;
}
.postPage .tableSc table tr th {
  background: #fff;
  text-align: center;
  vertical-align: middle;
  min-width: inherit;
}
.postPage .tableSc table tr th + th {
  border-left: 1px solid #333;
}
.postPage .tableSc table tr td + td {
  border-left: 1px solid #333;
}
.postPage .tableSc table tr td:nth-of-type(1) {
  border-left: none;
}
.postPage blockquote {
  margin: 0 0 16px;
  padding: 20px 24px;
  border-radius: var(--radius-sm);
  background-color: var(--color-bg-base);
  color: var(--color-primary);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.8;
}
.postPage blockquote.blue {
  background-color: #deedf1;
}
.postPage blockquote p {
  margin: 0 0 4px;
}
.postPage blockquote p:last-child {
  margin-bottom: 0;
}
.postPage blockquote cite {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  font-style: normal;
}
.postPage dl {
  margin: 0 0 30px;
}
.postPage dl dt {
  font-weight: bold;
}
.postPage dl dd {
  margin: 0;
  margin-bottom: 15px;
}
.postPage ul {
  margin: 0 0 20px 5px;
  padding: 0;
}
.postPage ul li {
  list-style: none;
  position: relative;
  padding: 0;
  line-height: 1.1;
  margin-bottom: 15px;
}
.postPage ul li ul {
  padding: 0 0 10px;
  margin: 10px 0 0 1em;
}
.postPage ul li ul li::marker {
  color: #244b70;
}
.postPage ul.iconList li {
  padding: 0 0 0 16px;
  margin-bottom: 8px;
  line-height: 1.4;
  color: var(--color-primary);
}
.postPage ul.iconList li:before {
  position: absolute;
  left: 0;
  top: calc(0.7em - 4px);
  content: "";
  width: 8px;
  height: 8px;
  background: var(--color-secondary);
  border-radius: 50%;
}
.postPage ul.iconList.check li {
  padding-left: 32px;
  margin-bottom: 8px;
}
.postPage ul.iconList.check li:before {
  top: calc(0.7em - 12px);
  width: 24px;
  height: 24px;
  border-radius: 0;
  background: url(images/icons/list-item__check-wrap.svg) no-repeat center/contain;
}
.postPage ol {
  margin: 0 0 20px;
  padding: 0 0 0 1.6em;
}
.postPage ol li {
  margin: 0;
  padding: 0;
  line-height: 1.1;
  margin-bottom: 15px;
}
.postPage ol li:last-child {
  margin: 0 0 10px;
}
.postPage ol li ol {
  margin: 10px 0;
  padding: 0 0 0 1em;
}
.postPage address {
  font-style: normal;
}
.postPage hr.red {
  border-bottom: 1px solid #C65871 !important;
  margin-bottom: 50px;
}
@media screen and (max-width: 767px) {
  .postPage table tr th, .postPage table tr td {
    display: block;
    width: 100%;
  }
  .postPage table tr th + td, .postPage table tr td + td {
    border-left: 0;
  }
  .postPage table tr th {
    min-width: 1px;
    color: #244b70;
    text-align: left;
    background-color: #fff;
  }
  .postPage table tr th.w200 {
    width: 100%;
  }
  .postPage table tr .tw15p {
    width: 100%;
  }
  .postPage table tr .tw30p {
    width: 100%;
  }
  .postPage table tr .tw33p {
    width: 100%;
  }
  .postPage table tr .tw50p {
    width: 100%;
  }
  .postPage table tr .tw70p {
    width: 100%;
  }
  .postPage table tr .tw200 {
    width: 100%;
  }
  .postPage table tr .tw210 {
    width: 100%;
  }
  .postPage table.type2 tr th, .postPage table.type2 tr td {
    display: table-cell;
    width: auto;
  }
  .postPage table.type2 tr th {
    min-width: 1px;
  }
  .postPage .tableSc {
    overflow: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }
}

.gmapWrap {
  position: relative;
  width: 100%;
  height: 0;
  padding-top: 56.25%;
  overflow: hidden;
}
.gmapWrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.youtubeWrap {
  position: relative;
  width: 100%;
  height: 0;
  padding-top: 56.25%;
  overflow: hidden;
}
.youtubeWrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* ---------------------------------------------------------------- */
/* フォーム設定（Snow Monkey Forms） */
/* ※色・角丸はサイト共通の :root 変数（scss/_site.scss）を使用 */
/* ※プラグイン標準CSSより優先させるため .snow-monkey-form から書いている */
/* ---------------------------------------------------------------- */
.snow-monkey-form {
  max-width: 960px;
  margin: 0 auto;
  color: var(--color-text-primary);
  font-size: var(--font-size-base);
  /* ステップ表示（入力 → 確認 → 完了） */
  /* ---------------------------- */
}
.snow-monkey-form .smf-progress-tracker {
  display: flex;
  gap: var(--space-8);
  margin: 0 0 var(--space-40);
  padding: 0;
  list-style: none;
}
.snow-monkey-form .smf-progress-tracker__item {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  margin: 0;
  padding: var(--space-12) var(--space-8);
  background: var(--color-bg-base);
  color: var(--color-border-default);
  border-radius: var(--radius-sm);
  font-weight: 700;
}
.snow-monkey-form .smf-progress-tracker__item:last-child {
  margin-bottom: 0;
}
.snow-monkey-form .smf-progress-tracker__item::before, .snow-monkey-form .smf-progress-tracker__item::after {
  display: none;
}
.snow-monkey-form .smf-progress-tracker__item[aria-current=true] {
  background: var(--color-secondary);
  color: var(--color-text-inverse);
}
.snow-monkey-form .smf-progress-tracker__item[aria-current=true] .smf-progress-tracker__item__text {
  color: var(--color-text-inverse);
}
.snow-monkey-form .smf-progress-tracker__item[aria-current=true] .smf-progress-tracker__item__number {
  background-color: var(--color-text-primary);
}
.snow-monkey-form .smf-progress-tracker__item__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin: 0;
  border-radius: 50%;
  background: var(--color-text-inverse);
  color: inherit;
  font-family: var(--font-family-number);
  font-size: var(--font-size-sm);
  line-height: 1;
}
.snow-monkey-form .smf-progress-tracker__item[aria-current=true] .smf-progress-tracker__item__number {
  color: var(--color-text-inverse);
}
.snow-monkey-form {
  /* 項目（ラベル 3 : 入力欄 7） */
  /* ---------------------------- */
}
.snow-monkey-form .smf-form {
  border-top: 1px solid var(--color-border-default);
}
.snow-monkey-form .smf-item {
  display: grid;
  grid-template-columns: 3fr 7fr;
  gap: var(--space-32);
  align-items: start;
  margin: 0;
  padding: var(--space-24) 0;
  border-bottom: 1px solid var(--color-border-default);
}
.snow-monkey-form .smf-item__col {
  flex: none;
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
}
.snow-monkey-form .smf-item__col--controls:only-child {
  grid-column: 1/-1;
}
.snow-monkey-form .smf-item__label {
  margin: 0;
  padding-top: var(--space-12);
  font-weight: 700;
  line-height: 1.6;
  display: flex;
  gap: 20px;
}
.snow-monkey-form .smf-item__label__text {
  margin: 0;
}
.snow-monkey-form .smf-item__description {
  margin: var(--space-8) 0 0;
  color: var(--color-border-default);
  font-size: var(--font-size-sm);
}
.snow-monkey-form .smf-item__controls {
  margin: 0;
}
.snow-monkey-form .att {
  width: 72px;
  height: 28px;
  border: #DF1F1C solid 1px;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 500;
  color: #DF1F1C;
  display: flex;
  justify-content: center;
  align-items: center;
}
.snow-monkey-form {
  /* 入力欄 */
  /* ---------------------------- */
}
.snow-monkey-form .smf-text-control__control,
.snow-monkey-form .smf-textarea-control__control,
.snow-monkey-form .smf-select-control__control {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: var(--space-12) var(--space-16);
  background: #fff;
  border: 1px solid var(--color-border-default);
  border-radius: var(--radius-sm);
  box-shadow: none;
  color: var(--color-text-primary);
  font-family: inherit;
  font-size: var(--font-size-base);
  line-height: 1.6;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.snow-monkey-form .smf-text-control__control::-moz-placeholder, .snow-monkey-form .smf-textarea-control__control::-moz-placeholder, .snow-monkey-form .smf-select-control__control::-moz-placeholder {
  color: var(--color-placeholder);
}
.snow-monkey-form .smf-text-control__control::placeholder,
.snow-monkey-form .smf-textarea-control__control::placeholder,
.snow-monkey-form .smf-select-control__control::placeholder {
  color: var(--color-placeholder);
}
.snow-monkey-form .smf-text-control__control:hover,
.snow-monkey-form .smf-textarea-control__control:hover,
.snow-monkey-form .smf-select-control__control:hover {
  border-color: var(--color-secondary);
}
.snow-monkey-form .smf-text-control__control:focus,
.snow-monkey-form .smf-textarea-control__control:focus,
.snow-monkey-form .smf-select-control__control:focus {
  outline: none;
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px rgba(80, 185, 208, 0.25);
}
.snow-monkey-form .smf-text-control__control[aria-invalid=true],
.snow-monkey-form .smf-textarea-control__control[aria-invalid=true],
.snow-monkey-form .smf-select-control__control[aria-invalid=true] {
  border-color: #d0453c;
}
.snow-monkey-form .smf-textarea-control__control {
  min-height: 200px;
  resize: vertical;
}
.snow-monkey-form .smf-select-control {
  width: 100%;
}
.snow-monkey-form .smf-checkboxes-control__control,
.snow-monkey-form .smf-radio-buttons-control__control {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-12) var(--space-24);
  padding-top: var(--space-12);
}
.snow-monkey-form .smf-checkbox-control,
.snow-monkey-form .smf-radio-button-control {
  display: inline-flex;
  align-items: center;
  gap: var(--space-8);
  margin: 0;
  cursor: pointer;
}
.snow-monkey-form .smf-checkbox-control__control,
.snow-monkey-form .smf-radio-button-control__control {
  flex-shrink: 0;
  margin: 0;
  accent-color: var(--color-primary);
}
.snow-monkey-form .smf-error-messages {
  margin: var(--space-8) 0 0;
  color: #d0453c;
  font-size: var(--font-size-sm);
}
.snow-monkey-form {
  /* 確認画面：入力内容をラベルの高さに揃える */
  /* ---------------------------- */
}
.snow-monkey-form[data-screen=confirm] .smf-item__controls {
  padding-top: var(--space-12);
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-all;
}
.snow-monkey-form {
  /* ボタン（サイト共通 .btn-primary に合わせる） */
  /* ---------------------------- */
}
.snow-monkey-form .smf-action {
  display: flex;
  flex-direction: row-reverse;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-16);
  margin: var(--space-48) 0 0;
}
.snow-monkey-form .smf-button-control {
  flex: 0 1 320px;
  margin: 0;
}
.snow-monkey-form .smf-button-control__control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 64px;
  margin: 0;
  padding: var(--space-20) var(--space-24);
  background: var(--color-primary);
  background-image: none;
  border: none;
  border-radius: var(--radius-sm);
  box-shadow: none;
  color: var(--color-text-inverse);
  font-family: inherit;
  font-size: var(--font-size-base);
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  transition: all ease 0.3s;
}
.snow-monkey-form .smf-button-control__control:hover, .snow-monkey-form .smf-button-control__control:focus-visible {
  background: var(--color-text-inverse);
  color: var(--color-primary);
  box-shadow: inset 0 0 0 1px var(--color-primary);
}
.snow-monkey-form .smf-button-control__control:focus-visible {
  outline: 3px solid var(--color-secondary);
  outline-offset: 2px;
}
.snow-monkey-form .smf-button-control__control:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.snow-monkey-form .smf-button-control__control[data-action=back] {
  background: var(--color-text-inverse);
  color: var(--color-primary);
  box-shadow: inset 0 0 0 1px var(--color-primary);
}
.snow-monkey-form .smf-button-control__control[data-action=back]:hover, .snow-monkey-form .smf-button-control__control[data-action=back]:focus-visible {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}
.snow-monkey-form {
  /* 送信完了・エラー画面 */
  /* ---------------------------- */
}
.snow-monkey-form .smf-complete-content,
.snow-monkey-form .smf-system-error-content {
  padding: var(--space-40) var(--space-24);
  background: var(--color-bg-base);
  border-radius: var(--radius-base);
  text-align: center;
  line-height: 1.8;
}
/* 送信完了画面の TOPへ戻るボタン（inc/top-button.php） */
.snow-monkey-form .smf-complete-content .top-back-btn {
  display: flex;
  justify-content: center;
  margin-top: var(--space-32);
}
.snow-monkey-form {
  /* スマートフォン：ラベルと入力欄を縦積み */
  /* ---------------------------- */
}
@media screen and (max-width: 767px) {
  .snow-monkey-form .smf-progress-tracker {
    margin-bottom: var(--space-24);
  }
  .snow-monkey-form .smf-progress-tracker__item {
    flex-direction: column;
    gap: var(--space-4);
    font-size: var(--font-size-sm);
  }
  .snow-monkey-form .smf-item {
    grid-template-columns: 1fr;
    gap: var(--space-8);
    padding: var(--space-20) 0;
  }
  .snow-monkey-form .smf-item__label {
    padding-top: 0;
  }
  .snow-monkey-form[data-screen=confirm] .smf-item__controls {
    padding-top: 0;
  }
  .snow-monkey-form .smf-action {
    margin-top: var(--space-32);
  }
  .snow-monkey-form .smf-button-control {
    flex-basis: 100%;
  }
}

/* ---------------------------------------------------------------- */
/* effectFade */
/* ---------------------------------------------------------------- */
.effectFade.effectFadeUp {
  opacity: 0;
  transform: translateY(50px);
  transition: all 1.2s ease;
}
.effectFade.effectFirst {
  opacity: 0;
  transition: opacity 2s linear, transform 5s linear;
}
.effectFade.effectFadeDown {
  opacity: 0;
  transform: translateY(-50px);
  transition: all 1.2s ease;
  transition: opacity 2s linear, transform 5s linear;
}
.effectFade.effectActive {
  opacity: 1;
  transform: translate(0, 0);
}
.effectFade.td1 {
  transition-delay: 0.1s;
}
.effectFade.td2 {
  transition-delay: 0.2s;
}
.effectFade.td3 {
  transition-delay: 0.3s;
}
.effectFade.td4 {
  transition-delay: 0.4s;
}
.effectFade.effectShow {
  opacity: 1;
  transition-delay: 0s;
  transition: 0.3s ease-in;
}

/* ================================================================
   本文パーツ（固定ページ・投稿の本文 / カスタムHTMLブロックで使用）
   フロー図1（.flow-card）／フロー図2（.flow-step）／画像カード（.image-card）／沿革（.history）／よくある質問（.faq）
   HTML見本：parts-sample.html
   ※ .postPage の ul / p / h の指定に負けないよう .postPage の中に書いている
   ================================================================ */
.postPage {
  /* ---------- フロー図1：カード横並び（step 01〜 は自動で番号） ---------- */
}
.postPage .flow-card {
  position: relative;
  z-index: 0;
  display: flex;
  flex-direction: column;
  gap: 48px;
  margin: 0 0 40px;
  padding: 30px 0 0;
  list-style: none;
  counter-reset: flow-card;
}
.postPage .flow-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 30px;
  bottom: 0;
  width: 40px;
  transform: translateX(-50%);
  background-color: var(--color-bg-base);
}
.postPage .flow-card__item {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin: 0;
  padding: 48px 16px 32px;
  background-color: var(--color-text-inverse);
  box-shadow: 0 2px 10px rgba(36, 75, 112, 0.12);
  line-height: 1.6;
  counter-increment: flow-card;
}
.postPage .flow-card__item::before {
  content: "step";
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  box-sizing: border-box;
  width: 60px;
  height: 60px;
  padding-top: 10px;
  border-radius: 50%;
  background-color: var(--color-primary);
  color: var(--color-text-inverse);
  font-family: var(--font-family-number);
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  text-align: center;
}
.postPage .flow-card__item::after {
  content: counter(flow-card, decimal-leading-zero);
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--color-text-inverse);
  font-family: var(--font-family-number);
  font-size: 24px;
  font-weight: 500;
  line-height: 1;
}
.postPage .flow-card > .flow-card__item:last-child,
.postPage .flow-step > .flow-step__item:last-child {
  margin: 0;
}
.postPage .flow-step > .flow-step__item:last-child {
  min-height: 0;
  background: none;
}
.postPage .flow-card__icon {
  display: block;
  width: 90px;
  height: 90px;
  -o-object-fit: contain;
     object-fit: contain;
  margin: 0;
}
.postPage .flow-card__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0;
  text-align: center;
}
.postPage .flow-card__text {
  margin: 0;
  color: var(--color-primary);
  font-size: 16px;
  font-weight: 500;
  text-align: center;
}
@media (min-width: 768px) {
  .postPage .flow-card {
    flex-direction: row;
  }
  .postPage .flow-card::before {
    left: 0;
    right: 0;
    top: calc(50% + 15px);
    bottom: auto;
    width: auto;
    height: 40px;
    transform: translateY(-50%);
  }
}
.postPage {
  /* ---------- フロー図2：STEP ＋ 番号 ／ 内容（番号は自動） ---------- */
}
.postPage .flow-step {
  margin: 0 0 40px;
  padding: 0;
  list-style: none;
  counter-reset: flow-step;
}
.postPage .flow-step__item {
  display: grid;
  grid-template-columns: 80px 1fr;
  grid-template-rows: auto auto 1fr;
  gap: 0 24px;
  margin: 0;
  min-height: 149px;
  padding: 0;
  line-height: 1.6;
  counter-increment: flow-step;
  background: linear-gradient(#7ccbdc, #7ccbdc) no-repeat 40px 93px/1px 48px;
}
.postPage .flow-step__item::before {
  content: "STEP";
  grid-column: 1;
  grid-row: 1;
  color: #b6e2eb;
  font-family: var(--font-family-number);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
}
.postPage .flow-step__item::after {
  content: counter(flow-step, decimal-leading-zero);
  grid-column: 1;
  grid-row: 2;
  color: #b6e2eb;
  font-family: var(--font-family-number);
  font-size: 48px;
  font-weight: 600;
  line-height: 1.1;
  text-align: center;
}
.postPage .flow-step__body {
  grid-column: 2;
  grid-row: 1/span 3;
  min-width: 0;
}
.postPage .flow-step__title {
  margin: 0 0 12px;
  color: var(--color-secondary);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.6;
}
.postPage .flow-step__text {
  margin: 0 0 16px;
  color: var(--color-primary);
  font-size: 14px;
  line-height: 2;
}
@media (min-width: 768px) {
  .postPage .flow-step__item {
    grid-template-columns: 120px 1fr;
    gap: 0 40px;
    min-height: 214px;
    background-position: 60px 135px;
    background-size: 1px 71px;
  }
  .postPage .flow-step__item::before {
    font-size: 32px;
  }
  .postPage .flow-step__item::after {
    font-size: 72px;
  }
  .postPage .flow-step__title {
    font-size: 32px;
  }
  .postPage .flow-step__text {
    font-size: 16px;
  }
}
.postPage {
  /* ---------- 内容カード：アイコン（丸背景）＋見出し＋本文＋詳しく見る ---------- */
}
.postPage .content-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
  margin: 0 0 40px;
}
.postPage .content-cards .content-card {
  max-width: none;
  margin: 0;
}
.postPage .content-cards--3 {
  grid-template-columns: 1fr;
  -moz-column-gap: 30px;
       column-gap: 30px;
}
@media (min-width: 768px) {
  .postPage .content-cards--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 768px) {
  .postPage .content-cards--center {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px 30px;
  }
  .postPage .content-cards--center .content-card {
    flex: 0 0 calc((100% - 60px) / 3);
  }
}
.postPage .content-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 280px;
  margin: 0 0 40px;
  padding: 16px 16px 24px;
  background-color: var(--color-text-inverse);
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.12);
  color: var(--color-primary);
  text-align: center;
  text-decoration: none !important;
  transition: box-shadow 0.3s ease;
}
.postPage a.content-card:hover {
  box-shadow: 2px 2px 16px rgba(36, 75, 112, 0.2);
}
.postPage .content-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 90px;
  height: 90px;
  background-color: var(--color-bg-base);
  border-radius: 50%;
  margin: 0 0 16px;
}
.postPage .content-card__icon img {
  display: block;
  width: 50px;
  height: 50px;
  margin: 0;
  -o-object-fit: contain;
     object-fit: contain;
}
.postPage .content-card__title {
  margin: 0 0 8px;
  color: var(--color-secondary);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.6;
}
.postPage .content-card__text {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.8;
}
.postPage .content-card__more {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  color: var(--color-primary);
  font-size: 12px;
  font-weight: 500;
}
.postPage .content-card__more::after {
  content: "";
  width: 6px;
  height: 6px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.3s ease-in;
}
.postPage a.content-card:hover .content-card__more, .postPage a.content-card:focus .content-card__more {
  color: var(--color-success);
}
.postPage a.content-card:hover .content-card__more::after {
  transform: translateX(3px) rotate(45deg);
}
.postPage {
  /* ---------- 画像カード：見出し＋画像＋リスト（2カラム） ----------
     <div class="image-cards">
       <div class="image-card">
         <h3 class="image-card__title">タイトル</h3>
         <div class="image-card__img"><img src="…" alt=""></div>
         <ul class="iconList image-card__list"><li>…</li></ul>
       </div>
     </div>
     PC（768px〜）：2列 ／ SP：1列 */
}
.postPage .image-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin: 0 0 40px;
}
@media (min-width: 768px) {
  .postPage .image-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}
.postPage .image-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
  padding: 24px;
  background-color: var(--color-text-inverse);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.postPage .image-card__title {
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  color: var(--color-secondary);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}
.postPage .image-card__title::before, .postPage .image-card__title::after {
  display: none;
}
.postPage .image-card__img {
  margin: 0;
  background-color: #ccc;
}
.postPage .image-card__img img {
  display: block;
  width: 100%;
  aspect-ratio: 5/3;
  -o-object-fit: cover;
     object-fit: cover;
  margin: 0;
}
.postPage ul.image-card__list {
  margin: 4px 0 0;
}
.postPage ul.image-card__list li {
  margin-bottom: 4px;
  font-size: 14px;
  line-height: 1.5;
}
.postPage ul.image-card__list li:last-child {
  margin-bottom: 0;
}
@media (min-width: 768px) {
  .postPage .image-card__title {
    font-size: 32px;
  }
  .postPage ul.image-card__list li {
    font-size: 18px;
  }
}
.postPage {
  /* ---------- 沿革：年月 ● 本文（●を縦線でつなぐ） ---------- */
}
.postPage .history {
  margin: 0 0 40px;
}
.postPage .history__item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 0;
  padding: 0 0 40px 40px;
}
.postPage .history__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--color-primary);
}
.postPage .history__item:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 20px;
  bottom: -20px;
  width: 1px;
  background-color: var(--color-primary);
}
.postPage .history__item:last-child {
  padding-bottom: 0;
}
.postPage .history__date {
  margin: 0;
  color: #b6e2eb;
  font-family: var(--font-family-number);
  font-size: 32px;
  font-weight: 600;
  line-height: 1.2;
}
.postPage .history__text {
  margin: 0;
  color: var(--color-primary);
  font-size: 14px;
  line-height: 2;
}
.postPage .history__text p {
  margin: 0;
}
@media (min-width: 768px) {
  .postPage .history__item {
    grid-template-columns: 240px 1fr;
    gap: 0 80px;
    padding: 0 0 56px;
  }
  .postPage .history__item::before {
    left: 270px;
    top: 14px;
  }
  .postPage .history__item:not(:last-child)::after {
    left: 280px;
    top: 24px;
    bottom: -24px;
  }
  .postPage .history__date {
    font-size: 48px;
  }
  .postPage .history__text {
    font-size: 16px;
  }
}
.postPage {
  /* ---------- よくある質問：クリックで開閉（details / summary） ---------- */
}
.postPage .faq {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0 0 40px;
}
.postPage .faq__item {
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-lg);
  background-color: var(--color-text-inverse);
}
.postPage .faq__q {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 56px 16px 20px;
  cursor: pointer;
  list-style: none;
  color: var(--color-primary);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
}
.postPage .faq__q::-webkit-details-marker {
  display: none;
}
.postPage .faq__q::before, .postPage .faq__q::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 50%;
  width: 24px;
  height: 2px;
  margin-top: -1px;
  background-color: #b6e2eb;
  transition: transform 0.3s ease;
}
.postPage .faq__q::after {
  transform: rotate(90deg);
}
.postPage .faq__item[open] .faq__q::after {
  transform: rotate(0deg);
}
.postPage .faq__mark {
  flex-shrink: 0;
  width: 1.2em;
  color: var(--color-secondary);
  font-family: var(--font-family-number);
  font-size: 28px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
}
.postPage .faq__mark--a {
  color: var(--color-primary);
}
.postPage .faq__a {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin: 0 20px;
  padding: 20px 0;
  border-top: 1px solid var(--color-border-default);
  color: var(--color-primary);
  font-size: 14px;
  line-height: 2;
}
.postPage .faq__a p {
  margin: 0;
}
.postPage .faq__a-text {
  min-width: 0;
  padding-top: 0.2em;
}
@media (min-width: 768px) {
  .postPage .faq__q {
    gap: 24px;
    padding: 20px 72px 20px 24px;
    font-size: 16px;
  }
  .postPage .faq__q::before, .postPage .faq__q::after {
    right: 24px;
    width: 28px;
  }
  .postPage .faq__mark {
    font-size: 32px;
  }
  .postPage .faq__a {
    gap: 24px;
    margin: 0 24px;
    padding: 24px 0;
  }
}
.postPage {
  /* ==========================================================================
     本文のセクション（固定ページ・投稿の本文 / .postPage 内）
     <section class="post-section"> … </section>
     背景グレー（TOPと同じ --color-bg-light）：<section class="post-section bg-gray">
     ※背景は画面幅いっぱいまで伸びる（横スクロールは出ない）
     ========================================================================== */
}
.postPage .post-section {
  padding: var(--space-64) 0;
}
.postPage .post-section > :last-child {
  margin-bottom: 0;
}
.postPage .post-section:first-child {
  padding-top: 0;
}
.postPage .post-section.bg-gray {
  background-color: var(--color-bg-light);
  box-shadow: 0 0 0 100vmax var(--color-bg-light);
  clip-path: inset(0 -100vmax);
}
.postPage .post-section.bg-gray:first-child {
  padding-top: var(--space-64);
}
@media (min-width: 768px) {
  .postPage .post-section {
    padding: var(--space-120) 0;
  }
  .postPage .post-section.bg-gray:first-child {
    padding-top: var(--space-120);
  }
}
.postPage {
  /* ---------- ボタン2：テキストリンク＋矢印アイコン ----------
     <p><a class="btn2" href="…">院長プロフィール詳細</a></p>
     中央寄せ：<p class="textCenter"><a class="btn2" …> */
}
.postPage a.btn2 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 0 4px;
  border-bottom: 1px solid currentColor;
  color: var(--color-primary);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
  text-decoration: none;
  transition: color 0.3s ease, gap 0.3s ease;
}
.postPage a.btn2::after {
  content: "";
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  background-color: currentColor;
  -webkit-mask: url(images/icons/icon-chevron-right-sm.svg) no-repeat center/contain;
  mask: url(images/icons/icon-chevron-right-sm.svg) no-repeat center/contain;
}
.postPage a.btn2:hover, .postPage a.btn2:focus {
  color: var(--color-secondary);
  gap: 12px;
}
.postPage {
  /* ---------- 画像＋テキストの2カラム（院長メッセージ・医師紹介など） ----------
     <div class="media-col">
       <div class="media-col__img"><img src="…" alt=""></div>
       <div class="media-col__body"> 見出し・本文・リスト </div>
     </div>
     PC：画像 240px ＋ 本文、横の間隔 40px ／ SP：縦並び（画像が上・中央） */
}
.postPage .media-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin: 0 0 40px;
}
.postPage .media-col.doctors {
  grid-template-columns: 1fr;
  gap: 24px;
}
.postPage .media-col__img {
  max-width: 240px;
  margin-inline: auto;
}
.postPage .media-col__img img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
}
.postPage .media-col__body {
  min-width: 0;
}
.postPage .media-col__body > :last-child {
  margin-bottom: 0;
}
.postPage .media-col__body .media-col__body-subtitle {
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-primary);
  margin-bottom: 0;
}
.postPage .media-col + .media-col {
  margin-top: 60px;
  padding-top: 60px;
  border-top: 1px solid #e5e5e5;
}
.postPage .media-col-name span {
  font-size: 20px;
}
@media (min-width: 768px) {
  .postPage .media-col {
    grid-template-columns: 350px 1fr;
    gap: 40px;
    align-items: start;
  }
  .postPage .media-col.doctors {
    grid-template-columns: 260px 1fr;
    gap: 30px;
  }
  .postPage .media-col__img {
    max-width: none;
    margin: 0;
  }
  .postPage .media-col-name span {
    font-size: 24px;
  }
}
.postPage .order1 {
  order: 1;
}
.postPage .order2 {
  order: 2;
}
@media (min-width: 768px) {
  .postPage .order1 {
    order: 2;
  }
  .postPage .order2 {
    order: 1;
  }
}
.postPage {
  /* ---------- 幅を狭めて中央寄せ（800px）：<div class="post-narrow"> … </div> ---------- */
}
@media (min-width: 768px) {
  .postPage .post-narrow {
    max-width: 880px;
    margin-inline: auto;
  }
}
.postPage {
  /* ---------- 診療時間・担当医の表：<div class="schedule-table-wrap"><table class="schedule-table"> ----------
     ※ベースの table スタイルを上書き。SPは表だけ横スクロール */
}
.postPage .schedule-table-wrap {
  margin: 0 0 40px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}
.postPage table.schedule-table {
  min-width: 640px;
  margin: 0;
  border: none;
  border-collapse: collapse;
  background-color: var(--color-text-inverse);
}
.postPage table.schedule-table tr {
  border: none;
}
.postPage table.schedule-table tr th,
.postPage table.schedule-table tr td {
  display: table-cell;
  width: auto;
  padding: 16px;
  border: none;
  font-size: 15px;
  line-height: 1.6;
  text-align: left;
  vertical-align: middle;
}
.postPage table.schedule-table thead tr th {
  width: 50%;
  min-width: 0;
  background-color: var(--color-text-primary);
  color: var(--color-text-inverse);
  font-weight: 700;
  text-align: center;
}
.postPage table.schedule-table thead tr th:first-child {
  width: 75px;
  white-space: nowrap;
}
.postPage table.schedule-table tbody tr th {
  width: 75px;
  min-width: 0;
  white-space: nowrap;
  background-color: var(--color-bg-base);
  color: var(--color-primary);
  font-weight: 700;
  text-align: center;
}
.postPage table.schedule-table tbody tr td {
  color: var(--color-primary);
}
.postPage table.schedule-table tbody tr td.off {
  color: #999;
}
.postPage {
  /* ---------- 写真ギャラリー（施設案内など）：PC 3列／SP 2列 ----------
     <div class="photo-grid">
       <figure class="photo-grid__item"><img src="…" alt=""><figcaption>受付</figcaption></figure>
     </div> */
}
.postPage .photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 16px;
  margin: 0 0 40px;
}
.postPage .photo-grid__item {
  margin: 0;
}
.postPage .photo-grid__item img {
  display: block;
  width: 100%;
  aspect-ratio: 4/3;
  height: auto;
  margin: 0;
  border-radius: 8px;
  -o-object-fit: cover;
     object-fit: cover;
}
.postPage .photo-grid__item figcaption {
  margin-top: 10px;
  color: var(--color-primary);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}
@media (min-width: 768px) {
  .postPage .photo-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px 24px;
  }
  .postPage .photo-grid__item figcaption {
    font-size: 16px;
  }
}
.postPage {
  /* ---------- 2カラム：<div class="cols"> <div>左</div> <div>右</div> </div> ----------
     比率 6:4 にする場合：<div class="cols cols--6-4">（SPはどちらも縦並び） */
}
.postPage .cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin: 0 0 40px;
}
.postPage .cols > * {
  min-width: 0;
}
.postPage .cols > * > :last-child {
  margin-bottom: 0;
}
@media (min-width: 768px) {
  .postPage .cols {
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
  }
  .postPage .cols--6-4 {
    grid-template-columns: 6fr 4fr;
    gap: 40px;
  }
}
.postPage {
  /* ---------- 医院情報（ラベル＋内容） ----------
     <dl class="info-list"><dt>所在地</dt><dd class="info-list__addr">〒…</dd></dl>
     dd に付けるクラス：info-list__name（医院名・大）／info-list__addr（ピン）／info-list__tel（電話・大） */
}
.postPage .info-list {
  margin: 0 0 24px;
}
.postPage .info-list dt {
  margin: 0 0 6px;
  color: #6b7280;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}
.postPage .info-list dd {
  margin: 0 0 24px;
  color: var(--color-primary);
  font-size: 15px;
  line-height: 1.7;
}
.postPage .info-list dd:last-child {
  margin-bottom: 0;
}
.postPage .info-list__name {
  font-size: 24px !important;
  font-weight: 700;
  line-height: 1.5 !important;
}
.postPage .info-list__addr,
.postPage .info-list__tel {
  display: flex;
  align-items: center;
  gap: 8px;
}
.postPage .info-list__addr::before,
.postPage .info-list__tel::before {
  content: "";
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  background-color: var(--color-secondary);
}
.postPage .info-list__addr::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0Z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E") no-repeat center/contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0Z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E") no-repeat center/contain;
}
.postPage .info-list__tel {
  font-family: var(--font-family-number);
  font-size: 24px !important;
  font-weight: 700;
  line-height: 1.4 !important;
}
.postPage .info-list__tel::before {
  width: 22px;
  height: 22px;
  -webkit-mask: url(images/icons/icon-phone.svg) no-repeat center/contain;
  mask: url(images/icons/icon-phone.svg) no-repeat center/contain;
}
.postPage .info-list__tel a {
  color: inherit;
  text-decoration: none;
}
.postPage {
  /* ---------- 表のコンパクト版（2カラムの中など）：<table class="schedule-table schedule-table--compact"> ---------- */
}
.postPage table.schedule-table.schedule-table--compact {
  min-width: 480px;
  width: 100%;
  table-layout: fixed;
}
.postPage table.schedule-table.schedule-table--compact tr th,
.postPage table.schedule-table.schedule-table--compact tr td {
  padding: 12px 20px;
  font-size: 14px;
  text-align: center;
  white-space: nowrap;
}
.postPage table.schedule-table.schedule-table--compact tr td {
  border-right: var(--color-bg-base) solid 1px;
}
.postPage table.schedule-table.schedule-table--compact tr td:last-child {
  border-right: none;
}
.postPage table.schedule-table.schedule-table--compact thead tr th {
  width: 32%;
}
.postPage table.schedule-table.schedule-table--compact thead tr th:first-child,
.postPage table.schedule-table.schedule-table--compact tbody tr th {
  width: 36%;
  text-align: left;
}
.postPage {
  /* ---------- 駅リスト：<ul class="station-list"><li><span>JR中央・総武線</span><strong>飯田橋駅</strong> 徒歩<em>7</em>分</li></ul> ---------- */
}
.postPage ul.station-list {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}
.postPage ul.station-list li {
  position: relative;
  margin: 0 0 16px;
  padding: 0 0 0 28px;
  color: var(--color-primary);
  font-size: 14px;
  line-height: 1.6;
}
.postPage ul.station-list li::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 0;
  width: 16px;
  height: 16px;
  border: 4px solid var(--color-secondary);
  border-radius: 50%;
  box-sizing: border-box;
}
.postPage ul.station-list li:last-child {
  margin-bottom: 0;
}
.postPage ul.station-list li span {
  display: block;
  color: #6b7280;
  font-size: 12px;
}
.postPage ul.station-list li strong {
  margin-right: 8px;
  font-size: 15px;
}
.postPage ul.station-list li em {
  color: var(--color-secondary);
  font-family: var(--font-family-number);
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
}
.postPage .btn-area-right {
  text-align: center;
}
@media (min-width: 768px) {
  .postPage .btn-area-right {
    text-align: right;
  }
}
.postPage .flex {
  display: flex;
}
.postPage .flex.wrap {
  flex-wrap: wrap;
}
.postPage .flex.columngap20 {
  -moz-column-gap: 20px;
       column-gap: 20px;
}
.postPage .flex.rowgap10 {
  row-gap: 10px;
}
@media screen and (max-width: 767px) {
  .postPage .flex.spcolumngap10 {
    -moz-column-gap: 10px;
         column-gap: 10px;
  }
  .postPage .flex.spcolumngap20 {
    -moz-column-gap: 20px;
         column-gap: 20px;
  }
}

.page-id-27 #mainCnt {
  position: relative;
  z-index: 0;
}

/* ==========================================================================
   ハートクリニック飯田橋 コーポレートサイト TOPページ
   - デザイン基準: Figma (fileKey lAsLQRcVHaoxYcPQj9KMf4)
     frame-pc-top (1440 / コンテンツ1200) / frame-sp-top (390)
   - 実装方針: モバイルファースト。768px未満をSPレイアウト、768px以上をPC
     レイアウトとして扱う（0章固定値、768pxを境に切替）。
   - 色・余白・角丸・フォントサイズは Figma Variables の値をそのまま
     カスタムプロパティ化して参照している（直書きしない）。
   ========================================================================== */
/* ---------------------------------------------------------------------
   Design tokens（Figma Variables を CSS カスタムプロパティ化）
   --------------------------------------------------------------------- */
:root {
  /* Color - Figma Variables */
  --color-primary: #244b70;
  --color-secondary: #50b9d0;
  --color-success: #72c8e3;
  --color-text-inverse: #ffffff;
  --color-text-primary: #223a5e;
  --color-bg-light: #f8f8f8;
  --color-bg-base: #f4f7fd;
  --color-placeholder: #b3b3b3;
  --color-border-default: #9ba7b9;
  /* Spacing - Figma Variables（8pxベースのスケール） */
  --space-4: 4px;
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-20: 20px;
  --space-24: 24px;
  --space-32: 32px;
  --space-40: 40px;
  --space-48: 48px;
  --space-64: 64px;
  --space-70: 70px;
  --space-80: 80px;
  --space-90: 90px;
  /* NOTE: Figma Variablesには space-80 までしか定義がなかったが、
     セクションの外側余白(padding)に 100/120/140/160/240px が使われていた。
     命名規則(space-*)を踏襲し、同スケールの延長として実装側で追加した。 */
  --space-100: 100px;
  --space-120: 120px;
  --space-140: 140px;
  --space-160: 160px;
  --space-240: 240px;
  /* Radius */
  --radius-sm: 4px;
  --radius-base: 8px;
  --radius-lg: 16px;
  --radius-pill: 9999px;
  /* Font size - Figma Variables */
  --font-size-sm: 14px;
  --font-size-base: 16px;
  --font-size-lg: 20px;
  --font-size-xl: 24px;
  --font-size-2xl: 32px;
  --font-size-3xl: 40px;
  /* h2 見出しの 48px は Variable化されていなかったため、同スケールで追加 */
  --font-size-4xl: 48px;
  /* 番号（当院の特徴 01〜04）用。Google Fonts で読み込み（functions.php） */
  --font-family-number: "Montserrat", "Noto Sans JP", sans-serif;
  --font-family-base: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans",
    Meiryo, sans-serif;
  /* Header height（PC/SP 共通の目安値。JSのスクロール判定にも使用） */
  --header-height-pc: 110px;
  --header-height-sp: 96px; /* Figma：header-sp-sticky の高さ 95.47px */
  color-scheme: light;
}

/* ---------------------------------------------------------------------
   Reset & base
   --------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-family-base);
  color: var(--color-primary);
  background-color: var(--color-text-inverse);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

p,
h1, h2, h3, h4, h5, h6 {
  margin: 0;
}

button {
  font-family: inherit;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  color: inherit;
}

/* スクロール追従ヘッダー分の見た目調整用（アンカーリンクがヘッダーに隠れないように） */
section[id] {
  scroll-margin-top: calc(var(--header-height-sp) + 12px);
}

@media (min-width: 768px) {
  section[id] {
    scroll-margin-top: calc(var(--header-height-pc) + 12px);
  }
}
/* OSの「アニメーションを減らす」設定がオンの人向け：ページ内リンクのスムーズスクロールだけ止める
   ※以前は全要素のアニメーションを止めていたが、ホバーやスライダーの動きまで消えるため変更。
     大きく動く演出（パララックス・自動で回り続ける動きなど）を追加したときは、
     その要素だけ @media (prefers-reduced-motion: reduce) で止めること */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
/* ---------------------------------------------------------------------
   Layout utilities
   --------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 15px;
}

/* Figma上は生活習慣病~重い病気になる前にの文言が、SPでは2行・PCでは1行で
   改行される。sp-onlyはSP時のみ改行を有効にするための汎用ユーティリティ。 */
.sp-only {
  display: inline;
}

@media (min-width: 768px) {
  .sp-only {
    display: none;
  }
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------------------------------------------------------------------
   Typography
   --------------------------------------------------------------------- */
.section-title {
  font-weight: 700;
  font-size: 32px;
  line-height: 1.6;
  color: var(--color-primary);
  margin: 0;
}

@media (min-width: 768px) {
  .section-title {
    font-size: var(--font-size-4xl);
    line-height: 76.8px;
  }
}
.section-title--white {
  color: var(--color-text-inverse);
}

.section-title .accent {
  color: var(--color-secondary);
  font-size: 42px;
}

.section-label {
  display: inline-block;
  font-weight: 700;
  font-size: var(--font-size-2xl);
  color: var(--color-primary);
}

@media (min-width: 768px) {
  .section-label {
    font-size: var(--font-size-4xl);
  }
  .section-title .accent {
    font-size: 58px;
  }
}
/* message-directorの見出し(院長メッセージ)のみFigmaでh2-pc-title相当(48px)。
   section-labelは他で共通の20px/24pxで使うため、ここだけ個別に上書きする。 */
@media (min-width: 768px) {
  .message-director__head .section-label {
    font-size: var(--font-size-4xl);
    line-height: 76.8px;
  }
}
.body-text {
  font-weight: 500;
  font-size: var(--font-size-base);
  line-height: 28.8px; /* Figma: body-sp-text */
  color: var(--color-primary);
}

@media (min-width: 768px) {
  .body-text {
    font-size: var(--font-size-xl);
    line-height: 38.4px;
  }
}
.body-text--md {
  font-weight: 500;
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--color-primary);
}

@media (min-width: 768px) {
  .body-text--md {
    font-size: var(--font-size-lg);
    line-height: 32.4px; /* Figma: body-pc-text 相当 */
  }
}
/* ---------------------------------------------------------------------
   Buttons
   ボタンの状態は Figma 上は default / hover の Variant のみだったため、
   キーボード操作向けの :focus-visible と :disabled をここで補っている。
   --------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-12);
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: var(--font-size-base);
  line-height: 18px;
  text-align: center;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease, opacity 0.2s ease, transform 0.1s ease;
  white-space: nowrap;
}

.btn:disabled,
.btn[aria-disabled=true] {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

/* キーボード操作時にのみ視認できるアウトライン（サイトのプライマリカラー系） */
.btn:focus-visible,
.nav-link:focus-visible,
.icon-btn:focus-visible,
.accordion-toggle:focus-visible,
a:focus-visible {
  outline: 3px solid var(--color-secondary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.btn-primary {
  width: 100%;
  max-width: 400px;
  padding: var(--space-24);
  background-color: var(--color-primary);
  color: var(--color-text-inverse);
  position: relative;
}

.btn-primary .chevron {
  width: 7px;
  height: 12px;
  margin-left: var(--space-8);
  /* 投稿本文の .columnBox img { align-self: baseline } に負けて上下がずれないよう中央に固定 */
  align-self: center;
  flex-shrink: 0;
}

/* 投稿本文の #postCnt img { height: auto } より優先 */
#postCnt .btn-primary .chevron {
  height: 12px;
}

.btn-primary:hover:not(:disabled) {
  background-color: #1b3a58;
}

.btn-primary:active:not(:disabled) {
  transform: translateY(1px);
}

.btn-tel {
  display: inline-flex;
  align-items: center;
  gap: var(--space-12);
  padding: var(--space-8) var(--space-16);
  border-radius: var(--radius-sm);
  background-color: var(--color-text-inverse);
  border: 1px solid var(--color-secondary);
  color: var(--color-success);
  font-weight: 700;
  font-size: var(--font-size-base);
}

.btn-tel:hover:not(:disabled) {
  background-color: var(--color-bg-light);
}

@media (min-width: 768px) and (max-width: 1200px) {
  .header-cta .btn-tel {
    display: none;
  }
}
.btn-cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  background-color: var(--color-secondary);
  color: var(--color-text-inverse);
  padding: var(--space-8) var(--space-16);
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: var(--font-size-sm);
  border: var(--color-secondary) solid 1px;
}

.btn-cta-primary:hover {
  background-color: var(--color-text-inverse);
  color: var(--color-secondary);
}

@media (min-width: 768px) and (max-width: 1060px) {
  .header-cta .btn-cta-primary {
    display: none;
  }
}
.btn-cta-banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  width: 100%;
  max-width: 300px;
  padding: var(--space-24) var(--space-16);
  border-radius: var(--radius-sm);
  border: 3px solid var(--color-text-inverse);
  background-color: var(--color-primary);
  color: var(--color-text-inverse);
  font-weight: 700;
  font-size: var(--font-size-base);
}

.btn-cta-banner {
  text-decoration: none;
}

.btn-cta-banner .btn-cta-banner__inner {
  display: flex;
  align-items: center;
  gap: var(--space-12);
}

.btn-cta-banner:hover:not(:disabled) {
  background-color: #1b3a58;
}

.btn-cta-outline {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  width: 100%;
  max-width: 300px;
  padding: var(--space-24) var(--space-16);
  border-radius: var(--radius-sm);
  border: 3px solid var(--color-primary);
  background-color: var(--color-text-inverse);
  color: var(--color-primary);
  font-weight: 700;
  font-size: var(--font-size-base);
}

.btn-cta-outline .btn-cta-banner__inner {
  display: flex;
  align-items: center;
  gap: var(--space-12);
}

.btn-cta-outline:hover:not(:disabled) {
  background-color: var(--color-bg-light);
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   Header
   ========================================================================== */
/* --- PC: ヘッダー（1つだけ・常に固定表示）
   スクロール前：背景透明でヒーローに重なる
   スクロール後：js/main.js が .is-scrolled を付け、背景が白くなる（transitionで自然に切り替え）
   ※以前の「通常ヘッダー＋追従ヘッダー（site-header-sticky）」の2重構成から変更 --- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height-sp);
  padding-inline: 20px;
  background-color: rgba(255, 255, 255, 0);
  box-shadow: 0 2px 8px rgba(34, 58, 94, 0);
  z-index: 300;
  transition: background-color 0.5s ease, box-shadow 0.5s ease;
}

.site-header.is-scrolled {
  background-color: var(--color-text-inverse);
  box-shadow: 0 2px 8px rgba(34, 58, 94, 0.08);
}

@media (min-width: 768px) {
  .site-header {
    height: var(--header-height-pc);
    padding-inline: 60px;
  }
  .site-header.is-scrolled {
    box-shadow: 0 4px 16px rgba(34, 58, 94, 0.08);
  }
}
@media screen and (min-width: 768px) and (max-width: 1400px) {
  .site-header {
    padding-inline: 20px;
  }
}
body.nav-open .site-header {
  background-color: var(--color-text-inverse);
}

/* SP：PC用のナビ・診療時間・ボタンを隠す */
@media (max-width: 767px) {
  .site-header .header-nav-area {
    display: none;
  }
}
/* PC：ハンバーガーを隠す */
@media (min-width: 768px) {
  .site-header .hamburger {
    display: none;
  }
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1320px;
  gap: 20px;
}

.header-logo img {
  width: 210px; /* TEL・MENU の箱（右 124px）に重ならない幅。Figma は 240px */
  height: auto;
}

@media (min-width: 768px) {
  .header-logo img {
    width: 260px;
    height: auto;
  }
}
/* ロゴを h1 で囲むため、見出しの余白・行の高さをリセット */
h1.header-logo {
  margin: 0;
  line-height: 0;
}

.header-nav-area {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-12);
}

.header-schedule {
  display: flex;
  align-items: center;
  gap: var(--space-40);
}

.header-schedule__item {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  font-weight: 500;
  font-size: var(--font-size-sm);
  color: var(--color-primary);
  white-space: nowrap;
}

@media screen and (max-width: 900px) {
  .header-schedule__item {
    font-size: 12px;
  }
}
.header-schedule__item img {
  width: 24px;
  height: 24px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-24);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-24);
}

@media screen and (max-width: 1110px) {
  .header-actions, .nav-menu {
    gap: var(--space-16);
  }
}
.nav-link {
  font-weight: 500;
  font-size: 14px;
  color: var(--color-text-primary);
  white-space: nowrap;
}

@media screen and (max-width: 900px) {
  .nav-link {
    font-size: 12px;
  }
}
.nav-link--accent {
  color: var(--color-primary);
}

.nav-link:hover {
  color: var(--color-secondary);
}

.nav-link--dropdown {
  display: inline-flex;
  align-items: center;
  gap: var(--space-8);
}

.nav-link--dropdown img {
  width: 11px;
  height: 6px;
  transition: transform 0.2s ease;
}

/* 診療内容のメガメニュー。Figma上に定義はないため、SP版アコーディオンと
   同じ7項目を踏襲してPC向けに実装している。hover / focus-withinで開閉。 */
/* 診療内容のメガメニュー（5列）。中身は 外観 > メニュー「診療内容」の子メニュー（medical のカテゴリー）と、
   各カテゴリーの medical 記事（inc/class-hc-nav-walker.php）。hover / focus-within で開閉。
   パネルはヘッダー（.site-header）基準で画面中央に配置するため、.nav-item は position: static */
.nav-item {
  position: static;
  display: flex;
  align-items: center;
}

.nav-item--mega:hover .nav-link--dropdown img,
.nav-item--mega:focus-within .nav-link--dropdown img {
  transform: rotate(180deg);
}

.nav-item--mega:hover .mega-menu,
.nav-item--mega:focus-within .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

/* メニュー内のリンクを押したら、マウスが外に出るまで閉じておく（ページ内リンクでページが切り替わらないとき用 / js/main.js） */
.nav-item--mega.is-closed .mega-menu {
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 8px);
}
.nav-item--mega.is-closed .nav-link--dropdown img {
  transform: none;
}

/* 「診療内容」からパネルまでのすき間でメニューが閉じないよう、リンクの下に透明な当たり判定を伸ばす */
.nav-link--dropdown {
  position: relative;
}

.nav-link--dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  left: -16px;
  right: -16px;
  height: 48px;
}

.mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  width: min(1100px, 100% - 40px);
  max-height: calc(100vh - var(--header-height-pc) - 24px);
  overflow-y: auto;
  padding: var(--space-32) var(--space-16);
  background-color: var(--color-text-inverse);
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 32px rgba(36, 75, 112, 0.18);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 20;
}

.mega-menu__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
}

/* 1列分（列の左に縦線、2段目以降は上に横線） */
.mega-menu__col {
  position: relative;
  min-width: 0;
  padding: 0 var(--space-24);
}

.mega-menu__col:nth-child(3), .mega-menu__col:nth-child(6) {
  padding-right: 4px;
}

.mega-menu__col::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 1px;
  background-color: rgba(155, 167, 185, 0.6);
}

.mega-menu__col:nth-child(n+6) {
  margin-top: var(--space-40);
  padding-top: var(--space-40);
  border-top: 1px solid rgba(155, 167, 185, 0.6);
}

.mega-menu__col:nth-child(n+6)::before {
  top: var(--space-40);
}

.mega-menu__col:nth-child(5n)::before {
  display: none;
}

/* カテゴリー見出し（アイコン＋カテゴリー名） */
.mega-menu__cat {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: var(--space-16);
  font-weight: 500;
  font-size: 15px;
  line-height: 1.5;
  color: var(--color-primary);
}

.mega-menu__cat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 25px;
  height: 25px;
}

.mega-menu__cat-icon img {
  width: 25px;
  height: 25px;
}

.mega-menu__cat:hover .mega-menu__cat-name {
  color: var(--color-secondary);
}

/* カテゴリー内の記事（medical） */
.mega-menu__posts {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mega-menu__post {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 700;
  font-size: 13px;
  line-height: 1.6;
  color: var(--color-primary);
  transition: all ease 0.3s;
}

.mega-menu__post img {
  flex-shrink: 0;
  width: 7px;
  height: 18px;
  margin-top: 2px;
  transition: all ease 0.3s;
}

.mega-menu__post:hover {
  color: var(--color-secondary);
}

.mega-menu__post:hover img {
  transform: translateX(3px);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: var(--space-24);
}

@media screen and (max-width: 1400px) {
  .header-cta {
    gap: var(--space-16);
  }
}
.hamburger {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  width: 39px;
}

.hamburger__lines {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hamburger__line {
  width: 28px;
  height: 2px;
  border-radius: var(--radius-pill);
  background-color: var(--color-primary);
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.hamburger__label {
  font-size: 10px;
  font-weight: 500;
  color: var(--color-text-primary);
}

.hamburger[aria-expanded=true] .hamburger__line:nth-child(1) {
  transform: translateY(12px) rotate(43deg);
}

.hamburger[aria-expanded=true] .hamburger__line:nth-child(2) {
  opacity: 0;
}

.hamburger[aria-expanded=true] .hamburger__line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* SP：スクロールしたらロゴと白い帯を消して、ハンバーガーだけ白い箱で右上に残す（メニューを開いているときは通常のヘッダー） */
@media (max-width: 767px) {
  /* ロゴを 10px 上に */
  .site-header .header-logo {
    position: relative;
    top: -10px;
  }
  .site-header .header-logo,
  .site-header .hamburger {
    transition: opacity 0.3s ease, visibility 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
  }
  body:not(.nav-open) .site-header.is-scrolled {
    background-color: transparent;
    box-shadow: none;
    pointer-events: none;
  }
  body:not(.nav-open) .site-header.is-scrolled .header-logo {
    opacity: 0;
    visibility: hidden;
  }
  /* MENU：スクロール前から右上（上・右の余白なし）に白い箱で固定。62×62・角丸なし */
  .site-header .hamburger {
    position: fixed;
    top: 0;
    right: 0;
    justify-content: center;
    width: 62px;
    height: 62px;
    box-sizing: border-box;
    padding: 12px 15px;
    background-color: var(--color-text-inverse);
    pointer-events: auto;
  }
  /* 線 36px（間 8px）・MENU 12px・Medium・行間 12px、線と MENU の間 4px（ヘッダーの中のときも同じ） */
  .hamburger__line {
    width: 36px;
  }
  .hamburger__label {
    font-size: 12px;
    line-height: 12px;
  }
}
/* SP：ハンバーガーの横の電話（電話番号へのリンク）。PC では出さない */
.header-sp-btns {
  display: flex;
  align-items: center;
  gap: 8px;
}
.header-tel-sp {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 39px; /* ハンバーガーと同じ大きさ */
  height: 38px;
  color: var(--color-primary);
  font-size: 12px;
  font-weight: 500;
  line-height: 12px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}
@media (min-width: 768px) {
  .header-tel-sp {
    display: none;
  }
}
/* TEL：スクロール前から MENU の左にすき間なく、水色の箱で固定。62×62・角丸なし・白い文字 */
@media (max-width: 767px) {
  .header-tel-sp {
    position: fixed;
    top: 0;
    right: 62px; /* MENU の幅 */
    width: 62px;
    height: 62px;
    background-color: var(--color-secondary);
    color: var(--color-text-inverse);
    pointer-events: auto;
  }
}
/* --- SP: フルスクリーン ナビゲーションドロワー --- */
.mobile-nav {
  position: fixed;
  inset: 0;
  top: var(--header-height-sp);
  background-color: var(--color-text-inverse);
  z-index: 250;
  padding: var(--space-32) var(--space-16) var(--space-48);
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.mobile-nav.is-open {
  transform: translateX(0);
}

@media (min-width: 768px) {
  .mobile-nav {
    display: none;
  }
}
.mobile-nav__list {
  display: flex;
  flex-direction: column;
}

.mobile-nav__item {
  border-bottom: 1px solid var(--color-border-default);
}

.mobile-nav__link {
  display: block;
  padding: var(--space-16) var(--space-4);
  font-weight: 500;
  font-size: var(--font-size-base);
  color: var(--color-text-primary);
}

.accordion-toggle {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-16) var(--space-4);
  font-weight: 500;
  font-size: var(--font-size-base);
  color: var(--color-primary);
}

.accordion-toggle .icon-plus {
  position: relative;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.accordion-toggle .icon-plus::before,
.accordion-toggle .icon-plus::after {
  content: "";
  position: absolute;
  background-color: var(--color-primary);
  border-radius: 1px;
}

.accordion-toggle .icon-plus::before {
  width: 100%;
  height: 2px;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  -webkit-transform: translateY(-50%);
}

.accordion-toggle .icon-plus::after {
  width: 2px;
  height: 100%;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.accordion-toggle[aria-expanded=true] .icon-plus::after {
  transform: translateX(-50%) rotate(90deg);
  opacity: 0;
}

.accordion-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.25s ease;
}

.accordion-panel.is-open {
  grid-template-rows: 1fr;
}

.accordion-panel__inner {
  overflow: hidden;
}

.accordion-sublist {
  display: flex;
  flex-direction: column;
  padding-left: var(--space-16);
  padding-bottom: var(--space-8);
}
.accordion-sublist li:last-child .accordion-sublist__link {
  border-bottom: none;
}

.accordion-sublist__link {
  display: block;
  padding: var(--space-8) var(--space-4);
  font-size: var(--font-size-sm);
  color: var(--color-secondary);
  border-bottom: 1px solid var(--color-border-default);
}

.mobile-nav__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
  margin-top: var(--space-32);
}

/* body固定用（メニュー開いている間のスクロール抑止） */
body.nav-open {
  overflow: hidden;
}

/* ==========================================================================
   Hero (hero-mv)
   ========================================================================== */
.hero {
  position: relative;
  background-color: var(--color-text-inverse);
  overflow: hidden;
}

@media (min-width: 768px) {
  .hero {
    height: 100vh;
  }
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

.hero__body {
  position: relative;
  z-index: 1;
  padding: var(--space-100) 15px var(--space-64);
}

@media (min-width: 768px) {
  /* .hero__body は .container(既に左右120pxぶん中央寄せ済み)の内側にあるため、
     ここで左右パディングを重ねて足すとFigma比+120pxずれる。上パディングのみ付け、
     テキスト幅はFigmaのhero-textフレーム幅(586px)に合わせる。 */
  .hero__body {
    padding: 200px 0 0;
    max-width: 636px;
    min-height: 690px;
  }
}
.hero__gradient-top,
.hero__gradient-bottom {
  position: absolute;
  left: 0;
  width: 100%;
  z-index: 0;
}

.hero__gradient-top {
  top: 312px;
  height: 112px;
  background: linear-gradient(180deg, rgba(244, 247, 253, 0) 0%, var(--color-bg-base) 96%);
}

.hero__gradient-bottom {
  top: 424px;
  bottom: 0;
  background-color: var(--color-bg-base);
}

@media (min-width: 768px) {
  .hero__gradient-top,
  .hero__gradient-bottom {
    display: none;
  }
}
.hero__dots {
  position: relative;
  z-index: 1;
  color: var(--color-primary);
  font-weight: 600;
  letter-spacing: 7px;
  font-size: var(--font-size-base);
  margin-bottom: var(--space-8);
}

@media (min-width: 768px) {
  .hero__dots {
    font-size: 28px;
    /* 1つ 34px（strong 34px の文字と同じ幅）にし、3px 右へずらして字の中央にそろえる */
    letter-spacing: 6px;
    padding-left: 3px;
    margin-bottom: -20px;
  }
}
.hero__sub-copy {
  position: relative;
  z-index: 1;
  font-weight: 600;
  color: var(--color-primary);
  font-size: 20px;
  line-height: 1.4;
  margin-bottom: var(--space-16);
}

@media (min-width: 768px) {
  .hero__sub-copy {
    font-size: 28px;
    /* FigmaはこのテキストをPC時1行固定(white-space:nowrap)で組んでいる。
       hero__bodyのmax-width:586pxはギリギリの実寸のため、フォントの
       描画差でこのままだと折り返してしまう。改行させず1行を維持する。 */
    white-space: nowrap;
  }
}
.hero__sub-copy strong {
  font-size: 24px;
}

@media (min-width: 768px) {
  .hero__sub-copy strong {
    font-size: 34px;
  }
}
.hero__main-copy {
  position: relative;
  z-index: 1;
  font-weight: 600;
  color: var(--color-primary);
  font-size: 40px;
  line-height: 1.2;
  margin-bottom: var(--space-16);
  display: inline-block;
  border-bottom: 1px solid var(--color-border-default);
}

@media (min-width: 768px) {
  .hero__main-copy {
    font-size: 100px;
    line-height: 140px;
  }
}
.hero__main-copy .accent {
  color: var(--color-secondary);
}

@media (min-width: 768px) {
  .hero__main-copy--sm {
    font-size: 86px;
  }
}
.hero__lead {
  position: relative;
  z-index: 1;
  font-weight: 500;
  color: var(--color-primary);
  font-size: var(--font-size-base);
}

@media (min-width: 768px) {
  .hero__lead {
    font-size: 26px;
    white-space: nowrap;
  }
  .hero__lead strong {
    font-size: 36px;
  }
}
/* ==========================================================================
   Stats banner
   ========================================================================== */
.stats-banner {
  background-color: var(--color-text-inverse);
  padding: var(--space-32) 15px;
  /* stats-banner__bodyは1行固定(nowrap)にしているため、1200px確保できない
     768〜1023pxのような中間幅ではみ出すことがある。ページ全体の横スクロール
     に広がらないよう、はみ出し分はここでクリップする。 */
  overflow-x: hidden;
}

@media (min-width: 768px) {
  .stats-banner {
    padding: var(--space-40) var(--space-120);
  }
}
.stats-banner__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-24);
  max-width: 1200px;
  margin-inline: auto;
}

@media (min-width: 768px) {
  .stats-banner__content {
    flex-direction: row;
    gap: var(--space-48);
    /* width:1200pxを直書きすると768〜1023pxで親の内側幅(vw-240px)を超えて
       横スクロールが出るため、100%を基準にmax-widthで1200pxに収める。
       1440px幅では従来通りちょうど1200pxになる。 */
    width: 100%;
    max-width: 1200px;
  }
}
.stats-banner__icons {
  flex-shrink: 0;
}

.stats-banner__icons img {
  width: 117px;
  height: 88px;
  display: block;
}

/* SP用アイコン画像（横長 237×40）。上の 117×88 指定で潰れないように */
.stats-banner__icons img.sp {
  width: 237px;
  max-width: 100%;
  height: auto;
}

.stats-banner__divider {
  display: none;
}

@media (min-width: 768px) {
  .stats-banner__divider {
    display: block;
    width: 1px;
    align-self: stretch;
    background-color: var(--color-border-default);
  }
}
.stats-banner__text {
  text-align: center;
}

@media (min-width: 768px) {
  .stats-banner__text {
    /* Figmaでは残りの横幅いっぱい(約987px)まで広がり、本文が1行に収まる。
       flex-growが無いと内容量に応じて縮み、意図せず折り返してしまうため指定。 */
    flex: 1;
    min-width: 0;
    text-align: left;
  }
}
.stats-banner__heading {
  font-weight: 700;
  font-size: var(--font-size-lg);
  color: var(--color-primary);
  margin-bottom: var(--space-8);
}

@media (min-width: 768px) {
  .stats-banner__heading {
    font-size: 30px;
    margin-bottom: 19px; /* Figma実測値 */
  }
}
.stats-banner__body {
  font-weight: 700;
  color: var(--color-secondary);
  font-size: 20px;
  line-height: 32px;
}

@media (min-width: 768px) {
  .stats-banner__body {
    font-size: 30px;
    line-height: 50px;
    white-space: nowrap;
  }
}
.stats-banner__body .em-num {
  font-size: 38px;
}

@media (min-width: 768px) {
  .stats-banner__body .em-num {
    font-size: 50px;
  }
}
.stats-banner__body .dark {
  color: var(--color-primary);
}

.stats-banner__body .note {
  display: block;
  font-size: 14px;
  color: var(--color-primary);
  margin-top: var(--space-4);
}

@media (min-width: 768px) {
  .stats-banner__body .note {
    display: inline;
    font-size: 16px;
    white-space: nowrap;
  }
}
/* ==========================================================================
   共通セクション見出し
   ========================================================================== */
.section {
  padding: var(--space-90) 0;
}

@media (min-width: 768px) {
  .section {
    padding: var(--space-120) 0;
  }
}
.section__head {
  margin-bottom: var(--space-32);
}

@media (min-width: 768px) {
  .section__head {
    margin-bottom: var(--space-64);
  }
}
/* ==========================================================================
   message-reason
   ========================================================================== */
.message-reason {
  position: relative;
  overflow: hidden;
  background-color: var(--color-bg-light);
}
.message-reason .section-title {
  font-size: 30px;
}
.message-reason .section-title .accent {
  font-size: 36px;
}

@media (min-width: 768px) {
  .message-reason .section-title {
    font-size: var(--font-size-4xl);
  }
  .message-reason .section-title .accent {
    font-size: 58px;
  }
}
/* Figma上の img-message-logo（ハート型の背景ウォーターマーク）。左端からはみ出す装飾。 */
.message-reason__watermark {
  position: absolute;
  left: 0;
  bottom: 40px;
  width: 60%;
  max-width: 288px;
  height: auto;
  opacity: 0.16;
  pointer-events: none;
}

@media (min-width: 768px) {
  .message-reason__watermark {
    top: 30%;
    bottom: auto;
    width: 45%;
    max-width: 647px;
  }
}
.message-reason__body {
  display: flex;
  flex-direction: column-reverse;
  gap: var(--space-16);
}

@media (min-width: 768px) {
  .message-reason__body {
    flex-direction: row;
    align-items: center;
    gap: var(--space-64);
  }
}
.message-reason__quote {
  position: relative;
  flex: 1;
  text-align: center;
}

@media (min-width: 768px) {
  .message-reason__quote {
    text-align: left;
  }
}
.message-reason__quote-mark {
  width: 20px;
  height: auto;
  color: var(--color-primary);
  margin-bottom: var(--space-8);
}

@media (min-width: 768px) {
  .message-reason__quote-mark {
    position: absolute;
    top: -30px;
    left: 0;
    width: 24px;
  }
}
.message-reason__heading {
  font-weight: 700;
  color: var(--color-primary);
  font-size: var(--font-size-2xl);
  line-height: 1.4;
  margin-bottom: var(--space-16);
  text-align: left;
}

@media (min-width: 768px) {
  .message-reason__heading {
    font-size: var(--font-size-3xl);
    line-height: 64px;
    margin-bottom: var(--space-24);
  }
}
.message-reason__text {
  font-weight: 500;
  color: var(--color-primary);
  font-size: var(--font-size-xl);
  line-height: 1.7;
  margin-bottom: var(--space-16);
  text-align: left;
}

@media (min-width: 768px) {
  .message-reason__text {
    font-size: var(--font-size-2xl);
    line-height: 2;
    margin-bottom: var(--space-24);
  }
}
.message-reason__signature {
  font-weight: 500;
  font-size: var(--font-size-base);
  color: var(--color-text-primary);
  text-align: right;
  position: relative;
  z-index: 1;
}

.message-reason__quote-mark--close {
  display: block;
  margin: var(--space-8) 0 var(--space-8) auto;
  transform: rotate(180deg);
}

@media (min-width: 768px) {
  .message-reason__quote-mark--close {
    position: absolute;
    top: auto;
    left: auto;
    right: 40px;
    bottom: -36px;
    width: 24px;
    margin: 0;
  }
}
.message-reason__photo {
  border-radius: var(--radius-sm);
  overflow: hidden;
  background-color: var(--color-placeholder);
}

.message-reason__photo img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  aspect-ratio: 486/565;
}

@media (min-width: 768px) {
  .message-reason__photo {
    flex: 0 0 486px;
  }
}
/* ==========================================================================
   about
   ========================================================================== */
.about {
  position: relative;
  background-color: var(--color-text-inverse);
}

@media (min-width: 768px) {
  .about {
    padding-bottom: 0;
  }
}
.about__lead {
  margin-bottom: var(--space-32);
}

@media (min-width: 768px) {
  .about__lead {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-48);
  }
}
.about__lead-text {
  max-width: 800px;
}

.about__desc {
  font-weight: 500;
  color: var(--color-primary);
  font-size: var(--font-size-lg);
  line-height: 1.6;
  margin-top: var(--space-16);
}

@media (min-width: 768px) {
  .about__desc {
    font-size: var(--font-size-xl);
  }
}
.about__note {
  font-weight: 500;
  color: var(--color-secondary);
  font-size: var(--font-size-base);
  margin-top: var(--space-16);
}

@media (min-width: 768px) {
  .about__note {
    font-size: var(--font-size-xl);
  }
}
.about__note .dark {
  color: var(--color-primary);
  font-size: var(--font-size-sm);
}

/* 以前はPC/SPとも2枚の写真を重ねて配置していたが、1枚に合成した画像
   (medical-treatment-img.png / SP版 _sp.png)に差し替え。PC/SPで別ファイルを
   出し分けるためpicture+sourceを使用。 */
.about__treatment-images {
  display: block;
  margin: 0 auto var(--space-24);
  max-width: 280px;
}

.about__treatment-images img {
  width: 100%;
  height: auto;
  display: block;
}

@media (min-width: 768px) {
  .about__treatment-images {
    position: absolute;
    right: 60px;
    top: 140px;
    width: 438px;
    max-width: none;
    margin: 0;
  }
  .about__treatment-images img {
    width: 100%;
    height: 100%;
    -o-object-fit: contain;
       object-fit: contain;
  }
}
.about-card {
  background-color: var(--color-bg-light);
  padding: var(--space-48) var(--space-16) var(--space-90);
}

@media (min-width: 768px) {
  .about-card {
    /* Figma(1440px)上は.containerの1200px幅より左に120px・右に60px広く、
       ビューポート左端まで背景がフルブリードしている（右は常に60pxの余白）。
       固定pxの負margin(-120px/-60px)は1440px専用の値で、768〜1023pxのような
       中間幅では.containerに左右余白が無くなるため右にはみ出して横スクロールが
       発生していた。containerの実際の左右余白(100% - 100vw)/2 を基準に計算し、
       どのビューポート幅でも「左は隙間なく・右は常に60px」になるようにする。 */
    margin-left: calc((100% - 100vw) / 2);
    margin-right: calc((100% - 100vw) / 2 + 60px);
    margin-top: var(--space-80);
    padding: var(--space-80) 60px var(--space-140) var(--space-120);
    border-radius: var(--radius-sm);
  }
}
.about-card__title {
  font-weight: 700;
  color: var(--color-primary);
  font-size: var(--font-size-2xl);
  text-align: center;
  margin-bottom: var(--space-40);
}

@media (min-width: 768px) {
  .about-card__title {
    font-size: var(--font-size-3xl);
    margin-bottom: var(--space-64);
  }
}
.about-card__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-32);
}

@media (min-width: 768px) {
  .about-card__list {
    gap: var(--space-40);
  }
}
.about-card__row {
  display: flex;
  flex-direction: column;
  gap: var(--space-32);
}

@media (min-width: 768px) {
  .about-card__row {
    flex-direction: row;
    gap: var(--space-64);
  }
}
.about-card__item {
  position: relative;
  flex: 1;
}

@media (min-width: 768px) {
  .about-card__item--offset {
    padding-top: var(--space-80);
  }
  /* 番号(01〜04)はitemの上端基準で絶対配置のため、paddingで写真を
     80px下げても番号だけ追従しない。写真とのズレを合わせるため
     オフセット分だけ番号側にも足す。 */
  .about-card__item--offset .about-card__number {
    top: calc(var(--space-80) - 60px);
  }
}
.about-card__number {
  position: absolute;
  top: -28px;
  left: var(--space-16);
  font-family: var(--font-family-number);
  font-weight: 600;
  font-size: 56px;
  color: rgba(80, 185, 208, 0.42);
  z-index: 1;
  line-height: 1;
}

@media (min-width: 768px) {
  .about-card__number {
    top: -60px;
    left: 0;
    font-size: 100px;
  }
}
.about-card__photo {
  aspect-ratio: 568/351;
  background-color: var(--color-placeholder);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.about-card__photo img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

/* タイトル：写真の左下に重ねる（背景はグレーの箱と同じ色で、写真を切り欠いたように見せる） */
.about-card__title-wrap {
  position: relative;
  width: -moz-fit-content;
  width: fit-content;
  max-width: calc(100% - var(--space-40));
  margin-top: -24px;
  background-color: var(--color-bg-light);
  padding: var(--space-12) var(--space-24) var(--space-8) var(--space-16);
  border-radius: 0 var(--radius-sm) 0 0;
}

@media (min-width: 768px) {
  .about-card__title-wrap {
    margin-top: -40px;
    padding: var(--space-16) var(--space-32) var(--space-16) var(--space-24);
  }
}
.about-card__item-title {
  font-weight: 700;
  color: var(--color-text-primary);
  font-size: var(--font-size-lg);
}

@media (min-width: 768px) {
  .about-card__item-title {
    font-size: var(--font-size-2xl);
  }
}
.about-card__item-desc {
  font-weight: 500;
  color: var(--color-text-primary);
  font-size: var(--font-size-sm);
  line-height: 1.7;
  padding: var(--space-16) var(--space-24) 0;
}

@media (min-width: 768px) {
  .about-card__item-desc {
    font-size: var(--font-size-base);
    line-height: 32.4px;
    padding: 0 var(--space-24) var(--space-24);
    background-color: var(--color-bg-light);
  }
}
.about-card__cta {
  display: flex;
  justify-content: center;
  margin-top: var(--space-40);
}

@media (min-width: 768px) {
  .about-card__cta {
    margin-top: 0;
  }
}
/* ==========================================================================
   symptoms
   ========================================================================== */
.symptoms {
  position: relative;
  background-color: var(--color-primary);
  color: var(--color-text-inverse);
  overflow: hidden;
  padding: var(--space-90) 0;
}

@media (min-width: 768px) {
  .symptoms {
    padding-top: var(--space-120);
    padding-bottom: var(--space-120);
  }
}
.symptoms__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.symptoms__bg img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  opacity: 0.16;
}

.symptoms__inner {
  position: relative;
  z-index: 1;
}

.symptoms__head {
  text-align: center;
  max-width: 998px;
  margin-inline: auto;
  margin-bottom: var(--space-32);
}

@media (min-width: 768px) {
  .symptoms__head {
    margin-bottom: var(--space-64);
  }
}
.symptoms__title {
  font-weight: 500;
  font-size: 28px;
  line-height: 1.5;
  margin-bottom: var(--space-16);
}

@media (min-width: 768px) {
  .symptoms__title {
    font-size: var(--font-size-4xl);
    line-height: 76.8px;
  }
}
.symptoms__title .accent {
  color: var(--color-success);
  font-size: 42px;
}

.symptoms__partners {
  font-weight: 500;
  font-size: var(--font-size-sm);
  line-height: 1.7;
  color: var(--color-text-inverse);
  text-align: left;
}

@media (min-width: 768px) {
  .symptoms__partners {
    font-size: var(--font-size-base);
    line-height: 32.4px;
    text-align: center;
  }
  .symptoms__title .accent {
    font-size: 58px;
  }
}
.symptom-card-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-16);
  margin-bottom: var(--space-48);
}

@media (min-width: 768px) {
  .symptom-card-list {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-24) var(--space-16);
  }
}
.symptom-card {
  background-color: var(--color-text-inverse);
  border-radius: var(--radius-sm);
  padding: var(--space-24);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-16);
  text-align: center;
}

.symptom-card__icon {
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.symptom-card__icon img,
.symptom-card__icon svg {
  max-width: 100%;
  max-height: 100%;
}

.symptom-card__label {
  font-weight: 500;
  color: var(--color-primary);
  font-size: 18px;
  line-height: 1.8;
}

@media (min-width: 768px) {
  .symptom-card__label {
    font-size: 18px;
    line-height: 1.8;
  }
}
/* SP側は未着手のため、PC(768px以上)でのみボタンを表示する。 */
@media (min-width: 768px) {
  .symptoms__more {
    display: flex;
    justify-content: center;
    margin-top: var(--space-48);
    position: relative;
    z-index: 1;
  }
}
.btn-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  width: 100%;
  padding: var(--space-24);
  background-color: var(--color-text-inverse);
  border: 1px solid var(--color-primary);
  color: var(--color-text-primary);
  font-weight: 500;
  font-size: var(--font-size-base);
  text-align: center;
}

.btn-more:hover {
  background-color: var(--color-bg-light);
}

.btn-more img {
  width: 8px;
  height: 14px;
}

@media (min-width: 768px) {
  .btn-more {
    width: 400px;
    padding: var(--space-24);
  }
}
/* ==========================================================================
   medical-content（診療内容）
   ========================================================================== */
.medical-content {
  position: relative;
  background-color: var(--color-bg-light);
}

@media (min-width: 768px) {
  .medical-content {
    background: none;
    padding: 120px 0;
  }
}
.medical-content__head {
  background-color: var(--color-text-inverse);
  padding: var(--space-32) 15px;
}

@media (min-width: 768px) {
  .medical-content__head {
    max-width: 1200px;
    margin-inline: auto;
    background-color: transparent;
    padding: 0;
    border-radius: 0;
  }
}
.medical-content__lead {
  font-weight: 500;
  color: var(--color-primary);
  font-size: var(--font-size-sm);
  line-height: 1.7;
  margin-top: var(--space-16);
}

@media (min-width: 768px) {
  .medical-content__lead {
    font-size: var(--font-size-lg);
    line-height: 32.4px;
  }
}
.medical-card-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
  padding: var(--space-32) 15px;
}

@media (min-width: 768px) {
  .medical-card-grid {
    flex-direction: row;
    gap: var(--space-24);
    max-width: 1200px;
    margin-inline: auto;
    padding: var(--space-24) 0;
  }
}
.medical-card-grid__col {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
  flex: 1;
}

@media (min-width: 768px) {
  .medical-card-grid__col {
    gap: var(--space-24);
  }
}
.medical-card {
  position: relative;
  background-color: var(--color-primary);
  color: var(--color-text-inverse);
  border-radius: var(--radius-sm);
  padding: var(--space-24) var(--space-16);
  overflow: hidden;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.medical-card:hover {
  background-color: #1b3a58;
}

@media (min-width: 768px) {
  .medical-card {
    padding: var(--space-32) var(--space-48);
  }
}
.medical-card--tall {
  flex: 1;
}

.category-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-16);
  background-color: var(--color-text-inverse);
  border-radius: var(--radius-sm);
  padding: var(--space-4) var(--space-24);
  margin-bottom: var(--space-24);
}

.category-tag__icon img,
.category-tag__icon svg {
  width: 30px;
  height: 30px;
}

.category-tag__label {
  font-weight: 500;
  font-size: 18px;
  color: var(--color-primary);
}

.medical-card__detail {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-24);
}

.medical-card__list-area {
  flex: 1;
  min-width: 140px;
}

.medical-card__list-heading {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-16);
}

.medical-card__list-heading span {
  font-weight: 500;
  font-size: 18px;
  color: var(--color-text-inverse);
}

.medical-card__list-heading .underline {
  width: 60px;
  height: 4px;
  border-radius: var(--radius-sm);
  background-color: var(--color-text-inverse);
}

.medical-card__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.medical-card__list-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-8);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.3;
  color: var(--color-text-inverse);
}

.medical-card__list-item::before {
  content: "";
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-radius: 50%;
  background-color: var(--color-secondary);
}

.medical-card--simple {
  display: flex;
  align-items: center;
  gap: var(--space-16);
  padding: var(--space-24);
}

.medical-card__simple-body {
  flex: 1;
  /* 右下の矢印（40px）に文字がかからないように */
  padding-right: var(--space-16);
}

.medical-card__simple-title {
  display: flex;
  align-items: center;
  gap: var(--space-12);
  font-weight: 500;
  font-size: var(--font-size-base);
  color: var(--color-text-inverse);
  margin-bottom: var(--space-12);
}

.icon-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-pill);
  background-color: var(--color-text-inverse);
  flex-shrink: 0;
}

.icon-circle img,
.icon-circle svg {
  width: 20px;
  height: 20px;
}

.medical-card__simple-desc {
  font-weight: 500;
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--color-text-inverse);
}

.card-arrow {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-arrow img,
.card-arrow svg {
  width: 100%;
  height: 100%;
}

@media (min-width: 768px) {
  .medical-card__list-heading span {
    font-size: var(--font-size-lg);
  }
  .medical-card__list-item {
    font-size: 18px;
  }
  .medical-card__list-item::before {
    margin-top: 9px;
  }
}
/* ==========================================================================
   cases（症例紹介）
   ========================================================================== */
.cases {
  position: relative;
  background-color: var(--color-primary);
  padding: 90px 0;
}

@media (min-width: 768px) {
  .cases {
    padding: var(--space-120) 0;
  }
}
.cases__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-48);
}

.cases__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-16);
}

.cases__nav {
  display: flex;
  align-items: center;
  gap: var(--space-32);
  flex-shrink: 0;
}

.cases__nav-btn {
  width: 44px;
  height: 44px;
}

@media (min-width: 768px) {
  .cases__nav-btn {
    width: 60px;
    height: 60px;
  }
}
.cases__nav-btn img {
  width: 100%;
  height: 100%;
}

.cases__nav-btn--prev img {
  transform: scaleX(-1);
}

/* 矢印ボタン：端まで来たら薄くする（Swiperが .swiper-button-disabled を付与） */
.cases__nav-btn {
  transition: opacity 0.2s ease;
}

.cases__nav-btn.swiper-button-disabled {
  opacity: 0.35;
  cursor: default;
}

/* Swiperスライダー（初期化は js/main.js）
   カード幅は .cases-card の width、カード間の余白は main.js の spaceBetween で調整 */
/* 左右はみ出し：スライダーの外側を見せ、セクション（画面端）で切る */
.cases {
  overflow: hidden;
}

.swiper.cases-swiper {
  width: 100%;
  overflow: visible;
}

.cases-list {
  align-items: stretch;
}

/* swiper-bundle.min.css の .swiper-slide { width:100%; height:100% } より優先させるため .cases-swiper を付ける */
.cases-swiper .cases-card {
  width: 320px;
  height: auto;
  display: flex;
  flex-direction: column;
  background-color: var(--color-text-inverse);
}

/* カード全体をリンクにする（inc/cases.php の a.cases-card__inner） */
.cases-card__inner {
  display: flex;
  flex-direction: column;
  flex: 1;
  color: inherit;
  text-decoration: none;
}

.cases-card__inner .cases-card__body {
  flex: 1;
}

/* 「詳しく見る」をカードの一番下にそろえる */
.cases-card__inner .cases-card__link {
  margin-top: auto;
}

/* ホバーで写真を少し拡大（トップのスライダー・症例一覧で共通） */
.cases-card__photo img {
  transition: 0.3s ease-in;
}

.cases-card__inner:hover .cases-card__photo img,
.cases-card__inner:focus-visible .cases-card__photo img {
  transform: scale(1.05);
}

/* ホバーで「詳しく見る」の矢印を右へ動かす（ホバーを外すと元の位置に戻る） */
.cases-card__link img {
  transition: 0.3s ease-in;
}

.cases-card__inner:hover .cases-card__link img,
.cases-card__inner:focus-visible .cases-card__link img {
  transform: translateX(6px);
}

.cases-empty {
  color: var(--color-text-inverse);
}

.cases-card__photo {
  position: relative;
  aspect-ratio: 720/430;
  overflow: hidden;
}

.cases-card__photo img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  display: block;
}

.cases-card__tag {
  position: absolute;
  top: 0;
  left: 0;
  background-color: #fbfbfb;
  color: var(--color-primary);
  font-weight: 600;
  font-size: var(--font-size-sm);
  padding: 2px var(--space-16);
}

.cases-card__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-24);
  padding: var(--space-16) var(--space-24) var(--space-24);
}

.cases-card__title {
  font-weight: 700;
  color: var(--color-text-primary);
  font-size: 22px;
  line-height: 1.4;
}

@media (min-width: 768px) {
  .cases-card__title {
    font-size: var(--font-size-xl);
  }
}
.cases-card__desc {
  font-weight: 500;
  color: var(--color-text-primary);
  font-size: var(--font-size-base);
  line-height: 1.3;
}

.cases-card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  opacity: 0.8;
  font-weight: 500;
  color: var(--color-text-primary);
  font-size: var(--font-size-sm);
}

.cases-card__meta img {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.cases-card__link {
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  gap: var(--space-8);
  font-weight: 500;
  color: var(--color-text-primary);
  font-size: var(--font-size-sm);
}

.cases-card__link img {
  width: 24px;
  height: 24px;
}

/* ==========================================================================
   message-director
   ========================================================================== */
.message-director {
  position: relative;
  background-color: var(--color-text-inverse);
  overflow: hidden;
  z-index: 0;
}

@media (min-width: 768px) {
  .message-director {
    padding-bottom: 0;
  }
}
.message-director__bg-map {
  display: none;
}

@media (min-width: 768px) {
  .message-director__bg-map {
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 610px;
    opacity: 0.6;
    -o-object-fit: cover;
       object-fit: cover;
    z-index: -1;
  }
}
.message-director__head {
  position: relative;
  z-index: 1;
  margin-bottom: var(--space-32);
}

@media (min-width: 768px) {
  .message-director__head {
    margin-bottom: var(--space-48);
  }
}
.message-director__title {
  font-weight: 500;
  color: var(--color-primary);
  font-size: var(--font-size-xl);
  line-height: 1.5;
  margin-top: var(--space-16);
}

@media (min-width: 768px) {
  .message-director__title {
    font-size: var(--font-size-2xl);
    line-height: 64px;
    margin-top: var(--space-24);
  }
}
.message-director__title .accent {
  color: var(--color-secondary);
  font-size: var(--font-size-2xl);
}

@media (min-width: 768px) {
  .message-director__title .accent {
    font-size: var(--font-size-3xl);
  }
}
.message-director__panel {
  position: relative;
  z-index: 1;
  background-color: var(--color-bg-light);
  padding: var(--space-32) 15px;
}

@media (min-width: 768px) {
  .message-director__panel {
    /* グレー背景を左いっぱいに伸ばす。about-card/access__photoと同じ考え方。
       左paddingは120pxのままなので、中身のテキストはcontainerの左端と揃う。 */
    margin-left: calc((100% - 100vw) / 2);
    /* 右は余白なし（院長写真をグレー背景の右端にぴったり合わせる）
       上は写真が32pxはみ出す分（.message-director__photo の margin-top）を含めた値 */
    padding: var(--space-48) 0 72px var(--space-120);
  }
}
.message-director__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-24);
}

@media (min-width: 768px) {
  .message-director__body {
    flex-direction: row-reverse;
    /* 文章の下端（ボタン）を写真の下端にそろえる */
    align-items: flex-end;
    gap: var(--space-48);
  }
  /* ボタンは文章の右端にそろえる */
  .message-director__body .btn {
    display: flex;
    width: 100%;
    margin-left: auto;
  }
}
.message-director__photo {
  border-radius: var(--radius-sm);
  overflow: hidden;
  background-color: var(--color-placeholder);
  aspect-ratio: 358/436;
}

@media (min-width: 768px) {
  .message-director__photo {
    flex: 0 0 358px;
    /* 写真をグレー背景の上に32pxはみ出させる（パネル上余白48px＋32px）
       文章の方が高くなる画面幅でも写真は上端基準にする */
    align-self: flex-start;
    margin-top: calc((var(--space-48) + 32px) * -1);
  }
}
.message-director__photo img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

.doctor-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-16) var(--space-24);
  margin-bottom: var(--space-16);
}

.doctor-info__name .role {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-text-primary);
}

@media (min-width: 768px) {
  .doctor-info__name .role {
    font-size: var(--font-size-base);
  }
}
.doctor-info__name .name {
  display: block;
  font-size: var(--font-size-2xl);
  font-weight: 500;
  color: var(--color-text-primary);
}

.doctor-certifications {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
}

.doctor-certifications span {
  background-color: var(--color-primary);
  color: var(--color-text-inverse);
  font-size: var(--font-size-sm);
  font-weight: 500;
  padding: var(--space-4) var(--space-20);
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

@media (min-width: 768px) {
  .doctor-certifications span {
    font-size: var(--font-size-base);
  }
}
.doctor-message {
  font-weight: 500;
  color: var(--color-primary);
  font-size: var(--font-size-sm);
  line-height: 1.7;
  margin-bottom: var(--space-24);
}

@media (min-width: 768px) {
  .doctor-message {
    font-size: var(--font-size-lg);
    line-height: 32.4px;
  }
}
/* ==========================================================================
   about-director（予防にこだわる理由）
   ========================================================================== */
.about-director {
  position: relative;
  padding: var(--space-90) 0;
  background-color: var(--color-text-inverse);
}

.about-director__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-32);
}

@media (min-width: 768px) {
  .about-director {
    padding: var(--space-120) 0;
  }
  .about-director__inner {
    flex-direction: row;
    gap: var(--space-64);
  }
}
/* 以前は写真2枚を重ねて配置していたが、1枚に合成した画像
   (about-director-photo.png、透過PNG)に差し替え。about__treatment-images
   と同じ考え方。 */
.about-director__images {
  width: 100%;
  max-width: 360px;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .about-director__images {
    max-width: 500px;
  }
}
.about-director__images img {
  width: 100%;
  height: auto;
  display: block;
}

.about-director__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-32);
  min-width: 0;
}

.about-director__title-accent {
  font-size: 42px;
}

@media (min-width: 768px) {
  .about-director__title-accent {
    font-size: 60px;
  }
}
.about-director__lead {
  font-weight: 500;
  color: var(--color-primary);
  font-size: var(--font-size-base);
  line-height: 32.4px;
}

@media (min-width: 768px) {
  .about-director__lead {
    font-size: var(--font-size-lg);
  }
}
.about-director__quote {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
}

.about-director__quote p {
  font-weight: 500;
  color: var(--color-primary);
  font-size: 16px;
  line-height: 2;
}

.about-director__quote .accent {
  color: var(--color-secondary);
}

.about-director__closing {
  font-weight: 700;
  color: var(--color-primary);
  font-size: var(--font-size-xl);
  line-height: 1.8;
}

@media (min-width: 768px) {
  .about-director__closing {
    font-size: var(--font-size-2xl);
    line-height: 2;
  }
}
/* ==========================================================================
   medical-services（診療時間・曜日別担当医）
   ========================================================================== */
.medical-services {
  background-color: var(--color-bg-light);
}

.medical-services__title {
  text-align: center;
  margin-bottom: var(--space-32);
}

@media (min-width: 768px) {
  .medical-services__title {
    margin-bottom: var(--space-48);
  }
}
.schedule-table-wrap {
  overflow-x: auto;
  margin-bottom: var(--space-32);
  -webkit-overflow-scrolling: touch;
}

@media (min-width: 768px) {
  .schedule-table-wrap {
    margin-bottom: var(--space-48);
  }
}
.schedule-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: var(--font-size-sm);
}

@media (min-width: 768px) {
  .schedule-table {
    font-size: var(--font-size-base);
  }
  .schedule-table th,
  .schedule-table td {
    font-size: 18px;
  }
  .schedule-table td {
    text-align: center;
  }
}
.schedule-table caption {
  text-align: left;
  margin-bottom: var(--space-8);
  font-size: var(--font-size-sm);
  color: var(--color-text-primary);
}

.schedule-table th,
.schedule-table td {
  border: 1px solid var(--color-border-default);
  padding: var(--space-12) var(--space-16);
  text-align: center;
  font-weight: 500;
  vertical-align: middle;
  font-size: var(--font-size-base);
}

.schedule-table td {
  text-align: left;
}

.schedule-table thead th {
  background-color: var(--color-text-primary);
  color: var(--color-text-inverse);
  font-weight: 500;
}

.schedule-table tbody th {
  font-weight: 500;
  color: var(--color-text-primary);
  width: 90px;
}

.doctor-list-panel {
  background-color: var(--color-primary);
  color: var(--color-text-inverse);
  border-radius: var(--radius-sm);
  padding: var(--space-24);
  margin-inline: auto;
  margin-bottom: var(--space-32);
}

@media (min-width: 768px) {
  .doctor-list-panel {
    max-width: 1000px;
    padding: var(--space-48);
    margin-bottom: var(--space-48);
  }
}
.doctor-list-panel__heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  font-weight: 700;
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-24);
  text-align: center;
}

@media (min-width: 768px) {
  .doctor-list-panel__heading {
    font-size: var(--font-size-xl);
  }
}
.doctor-list-panel__heading img,
.doctor-list-panel__heading svg {
  width: 40px;
  height: 40px;
}

.doctor-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  margin-bottom: var(--space-16);
}

.doctor-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-8);
  font-weight: 500;
  font-size: var(--font-size-sm);
  line-height: 1.5;
}

.doctor-list li::before {
  content: "";
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin-top: 7px;
  border-radius: 50%;
  background-color: var(--color-secondary);
}

.doctor-list-panel__note {
  font-weight: 500;
  font-size: var(--font-size-base);
  line-height: 1.7;
  color: var(--color-text-inverse);
}

@media (min-width: 768px) {
  .doctor-list-panel__note {
    font-size: 18px;
  }
}
.medical-services__cta {
  display: flex;
  justify-content: center;
}

/* ==========================================================================
   access
   ========================================================================== */
.access {
  background-color: var(--color-text-inverse);
}

.access__title {
  text-align: center;
  font-size: var(--font-size-4xl);
  margin-bottom: var(--space-32);
}

@media (min-width: 768px) {
  .access__title {
    margin-bottom: var(--space-64);
  }
}
.access__map-block {
  display: flex;
  flex-direction: column;
  gap: var(--space-24);
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .access__map-block {
    flex-direction: row;
    align-items: flex-start;
    gap: var(--space-80);
    margin-bottom: var(--space-64);
  }
}
.access__photo {
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 955/729;
}

@media (min-width: 768px) {
  .access__photo {
    flex: 1;
    /* 左いっぱいまで伸ばし、画像をビューポート左端に密着させる。
       .about-cardと同じ考え方で、containerの実際の左余白ぶんを
       負のmarginで打ち消す（中間幅でも横スクロールが出ないように）。 */
    margin-left: calc((100% - 100vw) / 2);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  }
}
.access__photo img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

.access__table {
  display: flex;
  flex-direction: column;
  margin-top: 0;
}

@media (min-width: 768px) {
  .access__table {
    flex: 1;
    justify-content: center;
  }
}
.access__row {
  padding: var(--space-16) 0;
  border-bottom: 1px solid var(--color-border-default);
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.access__row:first-child {
  padding-top: 0;
}

.access__row dt {
  font-weight: 700;
  font-size: 18px;
  color: var(--color-text-primary);
}

@media (min-width: 768px) {
  .access__row dt {
    font-size: var(--font-size-lg);
  }
}
.access__row dd {
  margin: 0;
  font-weight: 500;
  font-size: 18px;
  color: var(--color-text-primary);
  line-height: 1.6;
}

.access__row dd a {
  text-decoration: underline;
}

.access__map-image {
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: var(--space-32);
  aspect-ratio: 1200/332;
}

@media (min-width: 768px) {
  .access__map-image {
    margin-bottom: var(--space-64);
  }
}
.access__map-image iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

.access__cta {
  display: flex;
  justify-content: center;
}

/* ==========================================================================
   news
   ========================================================================== */
.news {
  background-color: var(--color-bg-light);
}

.news__title {
  margin-bottom: var(--space-32);
}

@media (min-width: 768px) {
  .news__title {
    margin-bottom: var(--space-48);
  }
}
/* CMSの投稿数増減（0/1/2/3件以上）に耐える構造。
   件数に応じて data-count 属性をJSから付与し、表示バランスを切り替える。 */
.news-list {
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .news-list {
    /* Figma上は罫線から次の行まで32pxの余白がある。PCのみ罫線+余白を分離する。 */
    gap: var(--space-32);
  }
}
.news-list[data-count="0"] {
  align-items: center;
  text-align: center;
  padding: var(--space-48) 0;
}

.news-list[data-count="1"] .news-item,
.news-list[data-count="2"] .news-item {
  max-width: 700px;
  margin-inline: auto;
  width: 100%;
}

.news-empty {
  font-weight: 500;
  color: var(--color-text-primary);
  font-size: var(--font-size-base);
}

.news-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-16);
  padding: var(--space-16) 0;
  border-bottom: 1px solid var(--color-border-default);
}

@media (min-width: 768px) {
  .news-item {
    padding: var(--space-12) 0;
  }
}
.news-item__link {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-16);
}

.news-item__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-16);
  flex: 1;
  min-width: 0;
}

.news-item__date {
  font-weight: 700;
  font-size: var(--font-size-sm);
  color: var(--color-primary);
  white-space: nowrap;
}

@media (min-width: 768px) {
  .news-item__date {
    font-size: var(--font-size-base);
  }
}
.news-item__category {
  display: inline-flex;
  align-items: center;
  padding: var(--space-4) var(--space-16);
  border-radius: var(--radius-pill);
  background-color: var(--color-primary);
  color: var(--color-text-inverse);
  font-weight: 700;
  font-size: 12px;
  white-space: nowrap;
}

.news-item__title {
  font-weight: 500;
  font-size: var(--font-size-sm);
  color: var(--color-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

@media (min-width: 768px) {
  .news-item__title {
    font-size: var(--font-size-base);
    -webkit-line-clamp: 1;
  }
}
.news-item__chevron {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--color-primary);
}

/* ホバーで背景を水色に
   背景は ::before で左右に12px広げて敷く（文字の位置・下線はそのまま） */
.news-item {
  position: relative;
  isolation: isolate;
}

.news-item::before {
  content: "";
  position: absolute;
  inset: 0 calc(var(--space-12) * -1) 1px;
  z-index: -1;
  background-color: #deedf1; /* ホバーの色（先方指定） */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.news-item:hover::before,
.news-item:focus-within::before {
  opacity: 1;
}

.news__cta {
  display: flex;
  justify-content: center;
  margin-top: var(--space-48);
}

/* ==========================================================================
   cta-banner
   ========================================================================== */
.cta-banner {
  position: relative;
  background-color: var(--color-primary);
  color: var(--color-text-inverse);
  overflow: hidden;
  padding: var(--space-64) 0;
}

@media (min-width: 768px) {
  .cta-banner {
    padding: 130px 0; /* Figma：高さ 582px */
  }
}
.cta-banner__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.cta-banner__bg img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  opacity: 0.16;
}

.cta-banner__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-32);
  text-align: center;
}

@media (min-width: 768px) {
  .cta-banner__inner {
    gap: var(--space-48);
  }
}
.cta-banner__title {
  font-weight: 700;
  font-size: var(--font-size-2xl);
  line-height: 1.4;
}

@media (min-width: 768px) {
  .cta-banner__title {
    font-size: var(--font-size-4xl);
    line-height: 76.8px;
  }
}
.cta-banner__desc {
  font-weight: 500;
  font-size: var(--font-size-sm);
  line-height: 1.7;
}

@media (min-width: 768px) {
  .cta-banner__desc {
    font-size: 18px;
    line-height: 32.4px;
  }
}
.cta-banner__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-24);
  width: 100%;
}

@media (min-width: 768px) {
  .cta-banner__actions {
    flex-direction: row;
    justify-content: center;
    gap: var(--space-48);
  }
  .cta-banner__actions .btn-cta-banner,
  .cta-banner__actions .btn-cta-outline {
    min-height: 82px; /* Figma：ボタンの高さ 82px */
  }
}
.cta-banner__phone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}

@media (min-width: 768px) {
  .cta-banner__phone {
    align-items: flex-start;
  }
}
.cta-banner__phone-number {
  display: flex;
  align-items: center;
  gap: var(--space-12);
  font-weight: 700;
  font-size: var(--font-size-xl);
}

@media (min-width: 768px) {
  .cta-banner__phone-number {
    font-size: 32px;
    line-height: 1.5;
  }
}
.cta-banner__phone-number img,
.cta-banner__phone-number svg {
  width: 20px;
  height: 20px;
}

/* 電話番号リンク（ホバーで少し透過） */
.cta-banner__phone-link {
  display: flex;
  align-items: center;
  gap: var(--space-12);
  color: inherit;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.cta-banner__phone-link:hover,
.cta-banner__phone-link:focus-visible {
  opacity: 0.7;
}

.cta-banner__phone-hours {
  font-weight: 500;
  font-size: var(--font-size-sm);
}
@media (min-width: 768px) {
  .cta-banner__phone-hours {
    font-size: 16px;
    line-height: 1;
  }
}

/* ==========================================================================
   footer
   ========================================================================== */
.site-footer {
  background-color: var(--color-text-inverse);
  padding: var(--space-64) 15px;
}

@media (min-width: 768px) {
  .site-footer {
    padding: var(--space-80) var(--space-120);
  }
}

/* --- SP: 画面下に追従するボタン（各種予約方法｜初診の方へ / inc/fixedbtn.php） --- */
.fixed-btn-sp {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: flex;
  background-color: var(--color-text-inverse);
  border-top: 1px solid var(--color-primary);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
  padding-bottom: env(safe-area-inset-bottom);
}
.fixed-btn-sp__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 60px;
  color: var(--color-primary);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
}
.fixed-btn-sp__item + .fixed-btn-sp__item {
  border-left: 1px solid rgba(36, 75, 112, 0.2);
}
.fixed-btn-sp__item--primary {
  background-color: var(--color-primary);
  color: var(--color-text-inverse);
}
.fixed-btn-sp__item--primary img {
  filter: brightness(0) invert(1);
}
.fixed-btn-sp__item--line img {
  filter: brightness(0) saturate(100%) invert(26%) sepia(37%) saturate(777%) hue-rotate(168deg) brightness(94%) contrast(97%);
}
/* ボタンに隠れないよう、フッターの下にボタンの高さ分のあきを作る */
.site-footer {
  padding-bottom: calc(var(--space-64) + 60px + env(safe-area-inset-bottom));
}
@media (min-width: 768px) {
  .fixed-btn-sp {
    display: none;
  }
  .site-footer {
    padding-bottom: var(--space-80);
  }
}
.site-footer__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-48);
  margin-bottom: var(--space-48);
}

@media (min-width: 768px) {
  .site-footer__content {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0;
    max-width: 1200px;
    margin-inline: auto;
    margin-bottom: var(--space-48);
  }
}
.site-footer__logo img {
  width: 260px;
  margin-bottom: var(--space-24);
}

@media (min-width: 768px) {
  .site-footer__logo img {
    width: 300px;
    margin-bottom: var(--space-32);
  }
}
.site-footer__contact {
  font-weight: 500;
  font-size: var(--font-size-base);
  color: var(--color-text-primary);
  line-height: 1.7;
}

.site-footer__nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
}

@media (min-width: 768px) {
  .site-footer__nav {
    flex-direction: row;
    align-items: center;
    gap: 26px;
  }
}
.site-footer__nav a {
  font-weight: 500;
  font-size: var(--font-size-sm);
  color: var(--color-text-primary);
}

@media (min-width: 768px) {
  .site-footer__nav a {
    font-size: var(--font-size-base);
  }
}
.site-footer__divider {
  border: none;
  border-top: 1px solid var(--color-border-default);
  margin: 0 0 var(--space-32);
}

@media (min-width: 768px) {
  .site-footer__divider {
    max-width: 1200px;
    margin-inline: auto;
    margin-bottom: var(--space-32);
  }
}
.site-footer__copyright {
  font-weight: 500;
  font-size: var(--font-size-sm);
  color: var(--color-text-primary);
  text-align: center;
}

/* ==========================================================================
   ボタンのホバーアニメーション（共通）
   ※各ボタンの指定より後に書くことで、個別の transition を上書きする
   ========================================================================== */
.btn,
.btn-tel,
.btn-cta-primary,
.btn-cta-banner,
.btn-cta-outline,
.btn-more,
.cases__nav-btn {
  transition: all ease 0.3s;
}

/* ==========================================================================
   ボタンのホバー：基本は「背景色と文字色の反転」
   ・アイコン／矢印は画像のため、filter で色を変える
       白にする … brightness(0) invert(1)
       紺(#244b70)にする … 下の $filter-navy（色を合わせた値）
   ・枠線はサイズが変わらないよう inset の box-shadow で付ける
   ・各ボタンの元の :hover より後に書いて上書きしている
   ========================================================================== */
.btn img,
.btn-tel img,
.btn-cta-banner img,
.btn-cta-outline img,
.btn-more img {
  transition: all ease 0.3s;
}

/* 紺のボタン（当院について・医師紹介へ 等）→ 白地・紺文字・紺枠 */
.btn-primary:hover:not(:disabled) {
  background-color: var(--color-text-inverse);
  color: var(--color-primary);
  box-shadow: inset 0 0 0 1px var(--color-primary);
}

.btn-primary:hover:not(:disabled) .chevron {
  filter: brightness(0) saturate(100%) invert(26%) sepia(37%) saturate(777%) hue-rotate(168deg) brightness(94%) contrast(97%);
}

/* 電話番号（白地・水色枠）→ 水色地・白文字 */
.btn-tel:hover:not(:disabled) {
  background-color: var(--color-success);
  border-color: var(--color-success);
  color: var(--color-text-inverse);
}

.btn-tel:hover:not(:disabled) img {
  filter: brightness(0) invert(1);
}

/* 無料相談・お問い合わせ（水色地）→ 白地・水色文字（枠は元の指定のまま） */
.btn-cta-primary:hover {
  background-color: var(--color-text-inverse);
  color: var(--color-secondary);
}

/* 発熱外来予約（紺地・白枠）→ 白地・紺文字・紺枠 */
.btn-cta-banner:hover:not(:disabled) {
  background-color: var(--color-text-inverse);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn-cta-banner:hover:not(:disabled) img {
  filter: brightness(0) saturate(100%) invert(26%) sepia(37%) saturate(777%) hue-rotate(168deg) brightness(94%) contrast(97%);
}

/* 初診の方へ（白地・紺枠）→ 紺地・白文字 */
.btn-cta-outline:hover:not(:disabled) {
  background-color: var(--color-primary);
  color: var(--color-text-inverse);
}

.btn-cta-outline:hover:not(:disabled) img {
  filter: brightness(0) invert(1);
}

/* 対応している症状・疾患・治療を見る（白地・紺枠）→ 紺地・白文字 */
.btn-more:hover {
  background-color: var(--color-primary);
  color: var(--color-text-inverse);
}

.btn-more:hover img {
  filter: brightness(0) invert(1);
}

/* 診療内容のカード：反転ではなく、少し明るい紺にする（デザイン指定） */
.medical-card:hover {
  background-color: #506f8d;
}

/* 循環器内科・生活習慣病（大きいカード）：ホバーで写真＋紺の半透明を重ねる
   写真は ::before、紺は ::after。中身（タグ・リスト・矢印）はその上に出す */
.medical-card--photo {
  isolation: isolate;
}

.medical-card--photo::before,
.medical-card--photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

/* 写真だけをフェードさせる。紺の半透明（::after）は常に表示しておき、
   カードの背景色もホバーで変えない（途中で明るい色が透けて白く光るのを防ぐ） */
.medical-card--photo::before {
  opacity: 0;
  transition: opacity 0.3s ease-in, transform 0.3s ease-in;
}

.medical-card.medical-card--photo,
.medical-card.medical-card--photo:hover {
  background-color: var(--color-primary);
}

.medical-card--photo::before {
  background: center/cover no-repeat;
  transform: scale(1.05);
}

.medical-card--photo::after {
  background-color: rgba(36, 75, 112, 0.85);
}

.medical-card--cardiology::before {
  background-image: url("images/top/img-medical-card-bg.jpg");
}

.medical-card--lifestyle::before {
  background-image: url("images/top/img-medical-card-bg2.jpg");
}

.medical-card--photo:hover::before,
.medical-card--photo:focus-visible::before {
  opacity: 1;
}

.medical-card--photo:hover::before,
.medical-card--photo:focus-visible::before {
  transform: scale(1);
}

.medical-card--photo .card-arrow {
  z-index: 1;
}

/* ==========================================================================
   症例紹介：一覧への導線ボタン（紺背景の上なので白いボタン）
   通常：白地・紺文字 → ホバー：紺地・白文字・白枠
   ========================================================================== */
.cases__cta {
  display: flex;
  justify-content: center;
}

@media (min-width: 768px) {
  .cases__cta {
    /* .cases__inner の gap(48px) と合わせて、スライダーとの間を64pxに */
    margin-top: var(--space-16);
  }
}
.btn-primary--white {
  background-color: var(--color-text-inverse);
  color: var(--color-primary);
}

.btn-primary--white .chevron {
  filter: brightness(0) saturate(100%) invert(26%) sepia(37%) saturate(777%) hue-rotate(168deg) brightness(94%) contrast(97%);
}

.btn-primary.btn-primary--white:hover:not(:disabled) {
  background-color: var(--color-primary);
  color: var(--color-text-inverse);
  box-shadow: inset 0 0 0 1px var(--color-text-inverse);
}

.btn-primary.btn-primary--white:hover:not(:disabled) .chevron {
  filter: brightness(0) invert(1);
}

/* ------------------------------------------------------------
   症例一覧：カテゴリー絞り込み（inc/case-list.php）
   ------------------------------------------------------------ */
.case-filter {
  margin: 32px 0;
}

.case-filter__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.case-filter__link {
  display: inline-block;
  padding: 8px 20px;
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-pill);
  color: var(--color-primary);
  font-size: var(--font-size-sm);
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  transition: all ease 0.3s;
}
.case-filter__link:hover, .case-filter__link.is-current {
  background-color: var(--color-primary);
  color: var(--color-text-inverse);
}

/* ------------------------------------------------------------
   症例一覧：カードのグリッド（カードの見た目は _site.scss の .cases-card__*）
   SP 1列 / 600px〜 2列 / 1024px〜 3列
   ------------------------------------------------------------ */
.case-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 600px) {
  .case-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .case-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }
}
.case-grid .cases-card {
  display: flex;
  flex-direction: column;
  background-color: var(--color-text-inverse);
  box-shadow: 4px 4px 16px rgba(0, 0, 0, 0.16);
}

.case-btn {
  margin-top: 80px;
}

@media screen and (max-width: 767px) {
  .case-btn {
    margin-top: 60px;
  }
}
/* ページ送り（WP-PageNavi のスタイルは _wp-base.scss、標準のページ送りはここ） */
.case-pagination {
  margin-top: 48px;
}
.case-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.case-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--color-border-default);
  color: var(--color-primary);
  font-size: var(--font-size-sm);
  text-decoration: none;
}
.case-pagination .page-numbers.current, .case-pagination .page-numbers:hover {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-text-inverse);
}

/* ------------------------------------------------------------
   症例詳細（single-case.php）
   ------------------------------------------------------------ */
.case-single {
  max-width: 880px;
  margin: 40px auto 0;
}

.case-single__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 24px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--color-border-default);
}

.case-single__tag {
  display: inline-block;
  padding: 4px 16px;
  background-color: var(--color-bg-base);
  color: var(--color-primary);
  font-size: var(--font-size-sm);
  font-weight: 700;
  text-decoration: none;
}

.postPage .case-single__tag:hover {
  color: var(--color-primary);
  opacity: 0.8;
}

.case-single__info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
}

.postPage .case-single__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-text-primary);
}
.postPage .case-single__meta img {
  width: 22px;
  height: 22px;
}

.case-single__date {
  font-size: var(--font-size-sm);
  color: var(--color-border-default);
}

.case-single__photo {
  margin: 0 0 32px;
}
.case-single__photo img {
  display: block;
  width: 100%;
  height: auto;
}

.case-single__summary {
  margin-bottom: 32px;
  padding: 24px;
  background-color: var(--color-bg-base);
  border-left: 4px solid var(--color-secondary);
}
.case-single__summary p {
  margin: 0;
  font-weight: 500;
  line-height: 1.8;
  color: var(--color-text-primary);
}

.case-single__back {
  display: flex;
  justify-content: center;
  margin-top: 56px;
}

/* ------------------------------------------------------------
   詳細ページ共通：記事タイトル（h1）
   single-case.php の .case-single__title / single.php の .post-title
   ------------------------------------------------------------ */
.postPage h1.case-single__title,
.postPage h1.post-title {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--color-text-primary);
}
@media (min-width: 768px) {
  .postPage h1.case-single__title,
  .postPage h1.post-title {
    font-size: var(--font-size-2xl);
  }
}

.postPage h1.post-title {
  margin: 0 0 8px;
}

/* 詳細ページ内のボタン：_wp-base.scss の .postPage a / a:hover の文字色を打ち消す
   （ホバー時は反転＝紺文字。_site.scss「ボタンのホバー」と同じ見た目にする） */
.postPage .btn-primary,
.postPage .btn-primary:focus {
  color: var(--color-text-inverse);
  text-decoration: none;
}

.postPage .btn-primary:hover {
  color: var(--color-primary);
  text-decoration: none;
}

/* ------------------------------------------------------------
   診療内容（archive-medical.php / taxonomy-medical_cat.php / single-medical.php）
   ※デザイン確定前の仮レイアウト。カテゴリータブ・カード・詳細は症例と共通のクラスを使用
   ------------------------------------------------------------ */
/* 一覧：診療カテゴリから探す（各セクションへのページ内リンク。番号は自動）
   SP 1列 / 768px〜 2列。番号・アイコン（メガメニューと同じ）・名前・下向き矢印を横に並べる */
.postPage .medical-index {
  text-align: center;
}
.postPage .medical-index__title {
  margin: 0 0 24px;
}
.postPage .medical-index__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: medical-index;
}
.postPage .medical-index__list li {
  margin: 0;
  padding: 0;
  line-height: 1.5;
  counter-increment: medical-index;
}
.postPage .medical-index__link {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 100%;
  min-height: 64px;
  padding: 12px;
  background-color: var(--color-text-inverse);
  border: 1px solid rgba(155, 167, 185, 0.4);
  border-radius: var(--radius-sm);
  color: var(--color-primary);
  font-size: var(--font-size-sm);
  font-weight: 700;
  line-height: 1.5;
  text-align: left;
  text-decoration: none;
  transition: all ease 0.3s;
}
/* 番号 */
.postPage .medical-index__link::before {
  content: counter(medical-index, decimal-leading-zero);
  flex-shrink: 0;
  color: var(--color-secondary);
  font-family: var(--font-family-number);
  font-size: 14px;
  font-weight: 600;
}
/* 下向きの矢印（ページ内リンク） */
.postPage .medical-index__link::after {
  content: "";
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  margin: -4px 2px 0 auto;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
}
.medical-index__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.postPage .medical-index__icon img {
  display: block;
  width: 22px;
  height: 22px;
  object-fit: contain;
}
.medical-index__name {
  min-width: 0;
}
.postPage .medical-index__link:hover,
.postPage .medical-index__link:focus {
  border-color: var(--color-secondary);
  color: var(--color-secondary);
}
@media (min-width: 768px) {
  .postPage .medical-index__list {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 24px;
  }
  .postPage .medical-index__link {
    gap: 12px;
    min-height: 80px;
    padding: 16px 24px;
    font-size: var(--font-size-lg);
  }
  .postPage .medical-index__link::before {
    font-size: 20px;
  }
  .postPage .medical-index__icon img {
    width: 28px;
    height: 28px;
  }
}

/* 一覧：カテゴリーごとのセクション（番号＋見出し・説明文・記事リンク）
   見出しはデザインルールの .titleh4。番号を付けるため左の縦線は消す */
.postPage .medical-sec__title,
.postPage .medical-cases__title {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding-left: 0;
}
.postPage .medical-sec__title::before,
.postPage .medical-cases__title::before {
  content: none;
}
.postPage .medical-cases__title {
  justify-content: center;
}
.medical-sec__num {
  color: var(--color-secondary);
  font-family: var(--font-family-number);
  font-weight: 600;
}
.postPage .medical-sec__desc {
  margin: 0 0 32px;
  line-height: 1.9;
}
/* 見出しの下：画像と説明文（SP 縦並び / 768px〜 2カラム） */
.postPage .medical-sec__intro {
  margin: 0 0 32px;
}
.postPage .medical-sec__intro.has-image {
  display: grid;
  gap: 24px;
}
.postPage .medical-sec__intro .medical-sec__desc {
  margin: 0;
}
.postPage .medical-sec__img img {
  display: block;
  width: 100%;
  height: auto;
}
/* 詳細：タイトルの下の画像（アイキャッチ。未設定ならカテゴリーの画像） */
.medical-detail__photo img {
  max-width: 720px;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .postPage .medical-sec__intro.has-image {
    grid-template-columns: 2fr 3fr;
    gap: 40px;
    align-items: start;
  }
}

/* 04 内科・消化器・呼吸器：小見出しごとに横並び（SP 1列 / 768px〜 3列） */
.medical-sec__groups {
  display: grid;
  gap: 32px;
}
.postPage .medical-sec__group-title {
  margin: 0 0 12px;
}
@media (min-width: 768px) {
  .medical-sec__groups {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}
/* 01 循環器内科：疾患と「主な検査」を上下に */
@media (min-width: 768px) {
  .medical-sec__groups--stack {
    grid-template-columns: 1fr;
  }
}

/* 一覧：企業の方へ */
.postPage .medical-corp-wrap {
  padding-top: 0;
}
.medical-corp {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 32px 24px;
  background-color: var(--color-bg-base);
  border-radius: var(--radius-base);
}
.postPage .medical-corp__label {
  margin: 0 0 4px;
  color: var(--color-secondary);
  font-family: var(--font-family-number);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
}
.postPage .medical-corp__title {
  margin: 0 0 8px;
  color: var(--color-primary);
  font-size: var(--font-size-xl);
  font-weight: 700;
  line-height: 1.5;
}
.postPage .medical-corp__text {
  margin: 0;
  font-size: var(--font-size-sm);
}
.postPage .medical-corp__btn {
  flex-shrink: 0;
}
@media (min-width: 768px) {
  .medical-corp {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 40px 48px;
  }
  .postPage .medical-corp__btn {
    width: 320px;
  }
}

/* 記事リンクの一覧（水色の矢印付き） */
.medical-links,
.postPage .medical-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.medical-links li,
.postPage .medical-links li {
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

.medical-links__item,
.postPage .medical-links__item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 700;
  font-size: var(--font-size-sm);
  line-height: 1.6;
  color: var(--color-primary);
  text-decoration: none;
  transition: all ease 0.3s;
}
.medical-links__item img,
.postPage .medical-links__item img {
  flex-shrink: 0;
  width: 7px;
  height: 18px;
  margin-top: 2px;
  transition: all ease 0.3s;
}
.medical-links__item:hover,
.postPage .medical-links__item:hover {
  color: var(--color-secondary);
}
.medical-links__item:hover img,
.postPage .medical-links__item:hover img {
  transform: translateX(3px);
}

/* 記事リンク：枠付き・右に矢印（診療内容一覧 / 'class' => 'medical-links--box'）
   2列：'medical-links--cols2'（768px〜） */
.postPage .medical-links--box {
  gap: 12px;
}
.postPage .medical-links--box .medical-links__item {
  flex-direction: row-reverse;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  height: 100%;
  padding: 16px 20px;
  background-color: var(--color-text-inverse);
  border: 1px solid rgba(155, 167, 185, 0.4);
  border-radius: var(--radius-sm);
}
.postPage .medical-links--box .medical-links__item img {
  margin-top: 0;
}
.postPage .medical-links--box .medical-links__item:hover,
.postPage .medical-links--box .medical-links__item:focus {
  border-color: var(--color-secondary);
}
@media (min-width: 768px) {
  .postPage .medical-links--cols2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 24px;
  }
}

/* カテゴリー別一覧：カテゴリーの説明文（管理画面の「説明」） */
.medical-term-desc {
  margin-bottom: 32px;
  color: var(--color-text-primary);
  line-height: 1.8;
}

/* ------------------------------------------------------------
   診療内容 詳細（single-medical.php / 入力欄：inc/medical-fields.php）
   見出し・リスト・STEP・よくある質問はデザインルールの本文パーツ（_wp-base.scss）
   セクションは .post-section の帯（白・グレー交互）。上下の余白 SP 60px / PC 120px（診療内容一覧と同じ）
   ------------------------------------------------------------ */
/* 症例詳細（.case-single）の幅 880px を外し、コンテンツ幅いっぱいにする */
.case-single.medical-detail {
  max-width: none;
}
.postPage .medical-detail__en {
  margin: 0 0 4px;
  color: var(--color-secondary);
  font-family: var(--font-family-number);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
}
.medical-detail__catch {
  margin: 16px 0 0;
}
.postPage .medical-detail__catch p {
  margin: 0;
  color: var(--color-primary);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.7;
}
.medical-detail__intro {
  margin: 0 0 40px;
}
.postPage .post-section.medical-detail__sec,
.postPage .post-section.medical-detail__sec.bg-gray:first-child {
  padding: 60px 0;
}
.postPage .medical-note {
  color: var(--color-text-primary);
  font-size: 13px;
}

/* 目次（番号は自動）：1列 */
.medical-toc {
  margin: 0 0 60px;
  padding: 24px;
  background-color: var(--color-bg-base);
  border-radius: var(--radius-base);
}
.postPage .medical-toc__title {
  margin: 0 0 12px;
  color: var(--color-primary);
  font-weight: 700;
}
.postPage .medical-toc__list {
  display: grid;
  gap: 8px 32px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: medical-toc;
}
.postPage .medical-toc__list li {
  margin: 0;
  padding: 0;
  line-height: 1.6;
  counter-increment: medical-toc;
}
.postPage .medical-toc__list a {
  display: flex;
  gap: 12px;
  color: var(--color-primary);
  font-weight: 500;
  text-decoration: none;
}
.postPage .medical-toc__list a::before {
  content: counter(medical-toc, decimal-leading-zero);
  color: var(--color-secondary);
  font-family: var(--font-family-number);
  font-weight: 600;
}
.postPage .medical-toc__list a:hover {
  color: var(--color-secondary);
}

/* 早めの受診：緊急（赤）・早めの受診（水色）の箱。768px〜 横並び */
.medical-alert {
  display: grid;
  gap: 16px;
  margin: 0 0 24px;
}
.medical-alert__box {
  padding: 24px;
  border: 2px solid var(--color-secondary);
  border-radius: var(--radius-base);
  background-color: var(--color-text-inverse);
}
.medical-alert__box--danger {
  border-color: #c8403a;
  background-color: #fdf3f2;
}
.postPage .medical-alert__title {
  margin: 0 0 12px;
  color: var(--color-primary);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
}
.postPage .medical-alert__box--danger .medical-alert__title {
  color: #c8403a;
}
.postPage .medical-step-list {
  margin: 0 0 16px;
}
.postPage .medical-alert .iconList {
  margin: 0;
}

/* 表：診療時間の表（.schedule-table）の見た目を使い、列幅だけ自動にする */
/* 表のセルのリンク（ほかの診療内容へ） */
.postPage .medical-table a {
  color: var(--color-secondary);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.postPage .medical-table a:hover,
.postPage .medical-table a:focus {
  text-decoration: none;
}
.medical-table-wrap {
  margin: 0 0 24px;
}
.postPage table.schedule-table.medical-table thead tr th,
.postPage table.schedule-table.medical-table thead tr th:first-child,
.postPage table.schedule-table.medical-table tbody tr th {
  width: auto;
  white-space: normal;
}
.postPage table.schedule-table.medical-table tbody tr th {
  text-align: center;
  vertical-align: middle;
}
/* 本文のセル：長い文章が読みやすいよう左上揃え（見出しの行・各行の見出し th は上下左右中央） */
.postPage table.schedule-table.medical-table tbody tr td {
  text-align: left;
  vertical-align: top;
}
/* SP：文章が長い列に押されて、ほかの列が1文字幅まで縮まないよう最低幅を付ける（はみ出した分は横スクロール）
   20文字を超える文章のセル（is-long / inc/medical-fields.php hc_med_table()）は広めに */
@media (max-width: 767px) {
  .postPage table.schedule-table.medical-table th,
  .postPage table.schedule-table.medical-table td {
    min-width: 8em;
  }
  .postPage table.schedule-table.medical-table .is-long {
    min-width: 14em;
  }
}

/* お問い合わせ（電話予約・初診の方へ）：背景は画面幅いっぱい、中身はコンテンツ幅 */
.medical-cta {
  padding: 60px 0;
  background-color: var(--color-bg-base);
  box-shadow: 0 0 0 100vmax var(--color-bg-base);
  clip-path: inset(0 -100vmax);
  text-align: center;
}
.postPage .medical-cta__title {
  margin: 0 0 24px;
  color: var(--color-primary);
  font-size: var(--font-size-lg);
  font-weight: 700;
  line-height: 1.6;
  text-align: center;
}
.medical-cta__btns {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
/* 電話番号のみのときの診療時間・休診日 */
.postPage p.medical-cta__hours {
  margin: 16px 0 0;
  color: var(--color-primary);
  font-size: var(--font-size-sm);
  line-height: 1.8;
  text-align: center;
}
/* 初診の方へ：白地＋紺の枠（.postPage .btn-primary の白文字を上書き） */
.postPage .medical-cta .medical-cta__sub,
.postPage .medical-cta .medical-cta__sub:focus {
  background-color: var(--color-text-inverse);
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
}
.postPage .medical-cta .medical-cta__sub:hover {
  background-color: var(--color-bg-base);
}

/* 関連するページ：白い角丸カード（見出し＋下線、リンクは1行ずつ・右に矢印）。768px〜 2列 */
.postPage .medical-related-list {
  display: grid;
  gap: 16px;
  margin: 0;
}
.medical-related-list__row {
  padding: 24px;
  border: 1px solid rgba(155, 167, 185, 0.4);
  border-radius: var(--radius-lg);
  background-color: var(--color-text-inverse);
}
.postPage .medical-related-list dt {
  margin: 0 0 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(155, 167, 185, 0.4);
  color: var(--color-primary);
  font-weight: 700;
}
.postPage .medical-related-list dd {
  margin: 0;
}
.postPage .medical-related-list .medical-links {
  gap: 0;
}
.postPage .medical-related-list .medical-links__item {
  flex-direction: row-reverse;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  font-weight: 500;
}
.postPage .medical-related-list .medical-links__item img {
  margin-top: 0;
}

/* 選ばれる3つの理由 */
.medical-reasons__item {
  padding: 32px 0;
  border-top: 1px solid rgba(155, 167, 185, 0.4);
}
.postPage .medical-reasons__title {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 16px;
  color: var(--color-primary);
  font-size: var(--font-size-lg);
  font-weight: 700;
  line-height: 1.5;
}
.medical-reasons__num {
  color: var(--color-secondary);
  font-family: var(--font-family-number);
  font-weight: 600;
}
.medical-reasons__doctors {
  display: grid;
  gap: 16px;
  margin: 0 0 20px;
}
.postPage .medical-reasons__doctors blockquote {
  margin: 0;
}
.postPage .medical-reasons__doctors .iconList {
  margin: 8px 0 0;
}

/* 監修医師：医師の情報と連携医療機関を同じ枠に、線で区切る */
.medical-supervisor__box {
  padding: 32px 24px;
  border: 1px solid rgba(155, 167, 185, 0.4);
  border-radius: var(--radius-base);
  background-color: var(--color-text-inverse);
}
.postPage .medical-supervisor__name {
  margin: 0;
  color: var(--color-primary);
  font-size: var(--font-size-xl);
  font-weight: 700;
}
.postPage .medical-supervisor__role {
  margin: 0 0 16px;
  color: var(--color-secondary);
  font-size: var(--font-size-sm);
  font-weight: 700;
}
.postPage .medical-supervisor__doctor > :last-child,
.postPage .medical-supervisor__partners > :last-child {
  margin-bottom: 0;
}
.medical-supervisor__partners {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(155, 167, 185, 0.4);
}
.postPage .medical-supervisor__partners-title {
  margin: 0 0 8px;
  color: var(--color-primary);
  font-weight: 700;
}

/* 監修医師の写真（テーマ設定で登録したとき）：SP 上 / 768px〜 左 */
.medical-supervisor__box.has-photo {
  display: grid;
  gap: 24px;
}
.medical-supervisor__photo {
  max-width: 200px;
}
.postPage .medical-supervisor__photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-base);
}

/* 選ばれる3つの理由：左に写真（トップ「当院の特徴」と同じ）、PCは 3:7 */
.medical-reasons__item {
  display: grid;
  gap: 24px;
}
.postPage .medical-reasons__photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-base);
}
.postPage .medical-reasons__body > :last-child {
  margin-bottom: 0;
}
.postPage .medical-reasons__btn {
  margin: 24px 0 0;
}
/* 監修医師の写真：仮の画像（noimg.jpg）でも縦長でそろえる */
.postPage .medical-supervisor__photo img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
@media (min-width: 768px) {
  .medical-reasons__item {
    grid-template-columns: 3fr 7fr;
    gap: 40px;
    align-items: start;
  }
}

/* アクセス・診療時間 */
.postPage .medical-detail__info h2:not(:first-child) {
  margin-top: 60px;
}

@media (min-width: 768px) {
  .postPage .medical-detail__catch p {
    font-size: var(--font-size-lg);
  }
  .postPage .post-section.medical-detail__sec,
  .postPage .post-section.medical-detail__sec.bg-gray:first-child {
    padding: 120px 0;
  }
  .medical-toc {
    margin-bottom: 120px;
    padding: 32px 40px;
  }
  /* 症状チェック：2列 */
  .postPage ul.medical-check {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 32px;
  }
  .medical-alert {
    grid-template-columns: repeat(2, 1fr);
  }
  .medical-cta {
    padding: 120px 0;
  }
  .postPage .medical-cta__title {
    font-size: var(--font-size-xl);
  }
  .medical-cta__btns {
    flex-direction: row;
    justify-content: center;
  }
  .postPage .medical-related-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .postPage .medical-reasons__title {
    font-size: var(--font-size-xl);
  }
  .medical-reasons__doctors {
    grid-template-columns: repeat(2, 1fr);
  }
  .medical-supervisor__box {
    padding: 40px;
  }
  .medical-supervisor__box.has-photo {
    grid-template-columns: 200px 1fr;
    gap: 40px;
  }
  .postPage .medical-detail__info h2:not(:first-child) {
    margin-top: 120px;
  }
}

/* ------------------------------------------------------------
   診療内容カテゴリー：領域ごとのセクションのページ（inc/medical-area-page.php / 例：その他の診療領域）
   見た目は診療内容 詳細と共通。ここはこのページだけの差分
   ------------------------------------------------------------ */
/* タイトル（カテゴリーのページはロゴが h1 のため p）：詳細の h1 と同じ見た目 */
.postPage p.medical-detail__title {
  margin: 0;
  color: var(--color-text-primary);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.5;
}
/* 最後が背景付きの帯なので、下の余白なし（詳細と同じ） */
.tax-medical_cat #medicalCatList.medicalAreaPage #cnts {
  margin-bottom: 0;
}
/* 対応している診療領域：見出しは左寄せ（カードの並びは診療内容一覧と同じ） */
.postPage .medical-area-index {
  text-align: left;
}
/* 領域は4つ前後なので、PCは4列（診療内容一覧の7列を上書き） */
@media (min-width: 1024px) {
  .postPage .medical-area-index .medical-index__list {
    grid-template-columns: repeat(4, 1fr);
  }
}
/* 領域の中の小見出し（対応している主な症状・病気／診療の流れ） */
.postPage .medical-area h3.titleh6 {
  margin: 32px 0 16px;
}
/* 診療の流れ（STEP 1〜：番号は自動） */
.postPage .medical-area-steps {
  display: grid;
  gap: 12px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  counter-reset: area-step;
}
.postPage .medical-area-steps li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 16px;
  margin: 0;
  padding: 16px 20px;
  border: 1px solid rgba(155, 167, 185, 0.4);
  border-radius: var(--radius-sm);
  background-color: var(--color-text-inverse);
  line-height: 1.7;
  counter-increment: area-step;
}
.postPage .medical-area-steps li::before {
  content: "STEP " counter(area-step);
  flex-shrink: 0;
  color: var(--color-secondary);
  font-family: var(--font-family-number);
  font-size: 13px;
  font-weight: 600;
}
.medical-area-steps__title {
  color: var(--color-primary);
  font-weight: 700;
}
.postPage .medical-area-steps li p {
  width: 100%;
  margin: 0;
}
@media (min-width: 768px) {
  .postPage p.medical-detail__title {
    font-size: var(--font-size-2xl);
  }
}

/* 詳細：同じカテゴリーの他の診療内容 */
.medical-related {
  max-width: 880px;
  margin: 56px auto 0;
  padding: 28px 32px;
  background-color: var(--color-bg-base);
}

.postPage .medical-related__title {
  margin: 0 0 16px;
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--color-primary);
}

/* 詳細：下のボタン（2つ並べる） */
.medical-single__back {
  flex-wrap: wrap;
  gap: 16px;
}

/* ------------------------------------------------------------
   固定ページ：ヘッド（page.php / デザイン「初診の方へ」）
   左：タイトル（h1）＋リード文、右：アイキャッチ画像（画面右端まで）
   背景：左側に斜めの水色
   ------------------------------------------------------------ */
.page-head {
  position: relative;
  overflow: hidden;
  background-color: var(--color-text-inverse);
}

.page-head::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: #f1fafc;
  clip-path: polygon(0 45%, 100% 85%, 100% 100%, 0 100%);
  pointer-events: none;
}

.page-head__inner {
  position: relative;
  z-index: 1;
  padding-top: var(--space-40);
  padding-bottom: var(--space-40);
}

/* ヘッドの英字（診療内容一覧の MEDICAL SERVICES。詳細ページの英字 .medical-detail__en と同じ見た目） */
.page-head .page-head__en {
  margin: 0 0 4px;
  color: var(--color-secondary);
  font-family: var(--font-family-number);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
}
.page-head .page-head__title {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-primary);
}

.page-head .page-head__lead {
  margin: var(--space-16) 0 0;
  font-size: var(--font-size-sm);
  font-weight: 500;
  line-height: 1.8;
  color: var(--color-primary);
}

.page-head__image {
  position: relative;
  aspect-ratio: 720/272;
}

.page-head__image img {
  display: block;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

@media (min-width: 768px) {
  .page-head {
    min-height: 272px;
  }
  .page-head::before {
    right: 50%;
    clip-path: polygon(0 25%, 100% 77%, 100% 100%, 0 100%);
  }
  .page-head--no-image::before {
    right: 0;
  }
  .page-head__inner {
    display: flex;
    align-items: center;
    min-height: 272px;
    padding-top: var(--space-48);
    padding-bottom: var(--space-48);
  }
  .page-head__text {
    width: 50%;
    padding-right: var(--space-40);
  }
  .page-head--no-image .page-head__text {
    width: 100%;
    padding-right: 0;
  }
  .page-head .page-head__title {
    font-size: var(--font-size-4xl);
  }
  .page-head .page-head__lead {
    margin-top: var(--space-24);
    font-size: var(--font-size-base);
  }
  .page-head__image {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 50%;
    aspect-ratio: auto;
  }
}
/* ヘッドがある固定ページ：パンくずはヘッドのすぐ下（デザイン：紺・太字） */
.has-page-head #mainCnt {
  margin-top: 0;
}

.has-page-head #cnts {
  margin-top: 11px;
}

.has-page-head .pcm-breadcrumbs {
  margin-bottom: 60px;
}

.has-page-head .pcm-breadcrumbs__list {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-primary);
}

.has-page-head .pcm-breadcrumbs__link {
  color: var(--color-primary) !important;
}

@media (min-width: 768px) {
  .has-page-head .pcm-breadcrumbs {
    margin-bottom: var(--space-64);
  }
}
/* ------------------------------------------------------------
   ヘッド：心電図の線バージョン（症例紹介 一覧 / inc/case-list.php）
   背景：薄い青 ＋ 右側に心電図の線（images/common/electro-cardiogram.png）
   ------------------------------------------------------------ */
.page-head--ecg {
  background-color: var(--color-bg-base);
}

.page-head--ecg::before {
  inset: auto;
  right: 0;
  top: calc(var(--space-32) + 22.4px);
  width: 55%;
  aspect-ratio: 1970/361;
  transform: translateY(-50%);
  background: url(images/common/electro-cardiogram.png) no-repeat right center/contain;
  clip-path: none;
}

.page-head--ecg .page-head__inner {
  padding-top: var(--space-32);
  padding-bottom: var(--space-32);
}

.page-head--ecg .page-head__lead {
  font-size: var(--font-size-base);
  font-weight: 700;
}

@media (min-width: 768px) {
  .page-head--ecg {
    min-height: 210px;
  }
  .page-head--ecg::before {
    right: 0;
    top: 50%;
    width: min(67%, 980px);
    transform: translateY(-55%);
  }
  .page-head--ecg .page-head__inner {
    min-height: 210px;
    padding-top: var(--space-48);
    padding-bottom: var(--space-48);
  }
  .page-head--ecg .page-head__text {
    width: 100%;
    padding-right: 0;
  }
}
/* ------------------------------------------------------------
   投稿カテゴリー一覧（category.php）：記事リストはトップのお知らせ（.news-list）と共通
   ------------------------------------------------------------ */
.newsListPage #cnts {
  padding-bottom: 80px;
}
.newsListPage .news-list--archive {
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--color-border-default);
}
.newsListPage .case-filter + .news-list--archive {
  margin-top: 0;
}
.newsListPage .coming {
  margin: 48px 0 0;
  color: var(--color-primary);
  text-align: center;
}

@media (min-width: 768px) {
  .newsListPage #cnts {
    padding-bottom: 120px;
  }
  .newsListPage .news-list--archive {
    gap: 0;
  }
  .newsListPage .news-list--archive .news-item {
    padding: 20px 0;
  }
}
.admin-bar .site-header {
  top: 46px;
}
.admin-bar .mobile-nav {
  top: calc(var(--header-height-sp) + 46px);
}

@media screen and (min-width: 783px) {
  .admin-bar .site-header {
    top: 32px;
  }
  .admin-bar .mobile-nav {
    top: calc(var(--header-height-sp) + 32px);
  }
}
@media screen and (max-width: 600px) {
  .admin-bar .site-header {
    top: 0;
  }
  .admin-bar .mobile-nav {
    top: var(--header-height-sp);
  }
}
.sub_page #main {
  padding-top: var(--header-height-sp);
}
.sub_page .site-header {
  background-color: var(--color-text-inverse);
}
@media (min-width: 768px) {
  .sub_page #main {
    padding-top: var(--header-height-pc);
  }
}

button {
  line-height: normal;
}

/* ------------------------------------------------------------
   ヘッダー：タブレットはSPと同じ（ロゴ＋ハンバーガー）
   PCのナビ・診療時間・ボタンは横幅が足りず入りきらないため
   ------------------------------------------------------------ */
@media (min-width: 768px) and (max-width: 1023px) {
  .site-header {
    height: var(--header-height-sp);
    padding-inline: 24px;
  }
  .site-header .header-nav-area {
    display: none;
  }
  .site-header .hamburger {
    display: flex;
  }
  .site-header .header-logo img {
    width: 190px;
  }
  .mobile-nav {
    display: block;
  }
  .sub_page #main {
    padding-top: var(--header-height-sp);
  }
}
/* ------------------------------------------------------------
   実績バナー：1行固定（nowrap）の文字が、1440px未満で右にはみ出すため折り返す
   ※元のHTMLデータでも1280〜1439pxで画面外まではみ出していた
   ------------------------------------------------------------ */
@media (min-width: 768px) and (max-width: 1439px) {
  .stats-banner {
    padding-inline: 32px;
  }
  .stats-banner__body {
    font-size: 24px;
    line-height: 1.6;
    white-space: normal;
  }
  .stats-banner__body .em-num {
    font-size: 40px;
  }
}
/* ------------------------------------------------------------
   「見つける」ことにこだわる理由：タブレットは写真の下に文章（SPと同じ縦並び）
   ------------------------------------------------------------ */
@media (min-width: 768px) and (max-width: 1023px) {
  .message-reason__body {
    flex-direction: column-reverse;
    align-items: center;
    gap: var(--space-48);
  }
  .message-reason__photo {
    flex: none;
    width: 100%;
    max-width: 486px;
  }
  .message-reason__quote {
    width: 100%;
  }
}
/* ------------------------------------------------------------
   なぜ、気づけるのか：右の写真（medical-treatment-img）がテキストに重なる対策
   PC版は1440px幅基準で写真を絶対配置しているため、狭い幅では文章と重なる
   ------------------------------------------------------------ */
@media (min-width: 768px) and (max-width: 1023px) {
  .about__treatment-images {
    position: static;
    width: 100%;
    max-width: 438px;
    margin: 0 auto var(--space-24);
  }
}
@media (min-width: 1024px) and (max-width: 1399px) {
  .about__treatment-images {
    width: 30vw;
    right: 32px;
  }
  .about__lead-text {
    max-width: calc(100vw - 32px - 30vw - 32px - ((100vw - min(1200px, 100vw)) / 2 + 15px));
  }
}
/* 当院の特徴（グレーの箱）：左右の余白を狭め、2列のカードが窮屈にならないようにする */
@media (min-width: 768px) and (max-width: 1023px) {
  .about-card {
    margin-left: -15px;
    margin-right: -15px;
    padding: var(--space-64) 32px var(--space-80);
    border-radius: 0;
  }
  .about-card__row {
    gap: var(--space-32);
  }
  .about-card__item-title {
    font-size: var(--font-size-xl);
  }
  .about-card__number {
    font-size: 72px;
    top: -44px;
  }
  .about-card__item--offset .about-card__number {
    top: calc(var(--space-80) - 44px);
  }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  .about-card {
    padding-left: 60px;
  }
}
/* ------------------------------------------------------------
   診療内容：1200px未満で左右の余白が0になり、画面端にくっつくため余白を付ける
   ------------------------------------------------------------ */
@media (min-width: 768px) and (max-width: 1279px) {
  .medical-content__head,
  .medical-card-grid {
    padding-inline: 32px;
  }
  .medical-card {
    padding: var(--space-32);
  }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .medical-card-grid {
    flex-direction: column;
  }
}
/* ------------------------------------------------------------
   院長メッセージ：タブレットは写真の下に文章（縦並び）
   ------------------------------------------------------------ */
@media (min-width: 768px) and (max-width: 1023px) {
  .message-director__panel {
    padding: var(--space-48) 32px;
  }
  .message-director__body {
    flex-direction: column;
    align-items: center;
    gap: var(--space-32);
  }
  .message-director__photo {
    flex: none;
    width: 100%;
    max-width: 358px;
    top: 0;
    margin-top: 0;
    align-self: center;
  }
  .message-director__body > div:last-child {
    width: 100%;
  }
}
/* ------------------------------------------------------------
   予防にこだわる理由：タブレットは写真の下に文章（縦並び）
   ------------------------------------------------------------ */
@media (min-width: 768px) and (max-width: 1023px) {
  .about-director__inner {
    flex-direction: column;
    align-items: center;
    gap: var(--space-48);
  }
  .about-director__images {
    max-width: 500px;
  }
  .about-director__content {
    width: 100%;
  }
}
/* ------------------------------------------------------------
   お問い合わせバナー：電話番号が折り返して崩れるため、
   タブレットは「電話番号」の下に「ボタン2つ」を並べる
   ------------------------------------------------------------ */
@media (min-width: 768px) and (max-width: 1023px) {
  .cta-banner__actions {
    flex-wrap: wrap;
    gap: var(--space-24) var(--space-32);
  }
  .cta-banner__phone {
    flex-basis: 100%;
    align-items: center;
  }
}
.cta-banner__phone-number {
  white-space: nowrap;
}

/* ------------------------------------------------------------
   念のため：画面端まで広げる要素（100vw基準）があるセクションは、
   スクロールバー幅のずれで横スクロールが出ないよう横方向を切る
   （overflow-x: clip はスクロール領域を作らないので、他の動きに影響しない）
   ------------------------------------------------------------ */
.about,
.message-director,
.access {
  overflow-x: clip;
}

/* ------------------------------------------------------------
   メインビジュアル：スマホは「上に写真 → 下にテキスト」
   写真の下側を背景色（--color-bg-base）へグラデーションで溶かし、
   その上からテキストを重ねる
   ------------------------------------------------------------ */
@media (max-width: 767px) {
  .hero {
    background-color: var(--color-bg-base);
  }
  .hero__bg {
    bottom: auto;
    height: 360px;
  }
  .hero__bg img {
    -o-object-position: 85% center;
       object-position: 85% center;
  }
  .hero__gradient-top {
    top: 250px;
    height: 110px;
  }
  .hero__gradient-bottom {
    top: 358px;
  }
  .hero__body {
    padding: 270px 0 56px; /* 下の追従ボタンで隠れないよう 30px 上に */
  }
  .hero__dots {
    /* 「生活習慣病」の1文字ずつの真上に「・」を置く：点は元の 16px のまま、字間 8px で1つ 24px（文字と同じ幅）にし、4px 右へずらして字の中央にそろえる */
    font-size: 16px;
    letter-spacing: 8px;
    padding-left: 4px;
    line-height: 1;
    margin-bottom: -8px; /* 文字に近づける */
  }
  .hero__sub-copy {
    margin-bottom: var(--space-24);
  }
  .hero__main-copy {
    display: block;
    font-size: clamp(40px, 14.4vw, 60px);
    line-height: 1.3;
    padding-bottom: var(--space-16);
    margin-bottom: var(--space-16);
  }
  .hero__main-copy--sm {
    font-size: 0.85em;
  }
  .hero__lead {
    font-size: clamp(12px, 3.85vw, 16px);
  }
}
/* ------------------------------------------------------------
   実績データ：スマホ
   アイコンの下に横線（PCは縦線）、注釈（2024〜2025年 当院実績）は本文に続けて表示
   ------------------------------------------------------------ */
@media (max-width: 767px) {
  .stats-banner {
    padding: var(--space-40) 14px;
  }
  .stats-banner__content {
    gap: var(--space-20, 20px);
  }
  .stats-banner__divider {
    display: block;
    width: 100%;
    height: 1px;
    background-color: var(--color-border-default);
  }
  .stats-banner__body {
    font-size: clamp(16px, 5vw, 20px);
    line-height: 1.6;
    font-feature-settings: "palt";
  }
  .stats-banner__body .em-num {
    font-size: 1.8em;
  }
  .stats-banner__body .note {
    display: inline;
    font-size: 13px;
    margin-top: 0;
    margin-left: var(--space-4);
    white-space: nowrap;
  }
}
/* ------------------------------------------------------------
   なぜ、気づけるのか ＋ 当院の特徴：スマホ
   ・診療イメージ画像は右寄せで小さく、グレーの箱の上に重ねる
   ・グレーの箱は画面幅いっぱい
   ・番号を大きく写真の左上に、本文はタイトルと左端をそろえる
   ------------------------------------------------------------ */
@media (max-width: 767px) {
  .about__note {
    font-size: var(--font-size-lg);
    line-height: 1.6;
  }
  .about__note .dark {
    font-size: 11px;
  }
  .about__treatment-images {
    position: relative;
    z-index: 1;
    width: 50%;
    max-width: 220px;
    margin: var(--space-8) var(--space-8) -64px auto;
  }
  .about-card {
    margin-left: -15px;
    margin-right: 0;
    padding: calc(64px + var(--space-16)) var(--space-12) var(--space-48);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  }
  .about-card__title {
    margin-bottom: var(--space-48);
  }
  .about-card__list {
    gap: 56px;
  }
  .about-card__row {
    gap: var(--space-32);
  }
  .about-card__cta {
    margin-top: -8px;
  }
  .about-card__number {
    top: -36px;
    left: 0;
    font-size: 64px;
  }
  .about-card__item-desc {
    padding: var(--space-16) var(--space-16) 0;
    font-size: 15px;
  }
}
/* ------------------------------------------------------------
   診療内容：スマホは循環器内科・生活習慣病の写真背景を常に表示
   （ホバーがないため。PCはホバーで表示 / _site.scss .medical-card--photo）
   ------------------------------------------------------------ */
@media (max-width: 767px) {
  .medical-card--photo::before {
    opacity: 1;
  }
  .medical-card--photo::before {
    transform: none;
  }
}
/* ------------------------------------------------------------
   院長メッセージ：スマホ
   ・グレー背景は画面幅いっぱい、写真の下から3分の1あたりから敷く（写真が上にはみ出す）
   ・資格は3つ横並び（各ボックス内で折り返し）、ボタンは全幅
   ------------------------------------------------------------ */
@media (max-width: 767px) {
  .message-director {
    padding-bottom: 0;
  }
  .message-director__panel {
    margin-inline: -15px;
    padding: 0 15px 80px;
    background: linear-gradient(to bottom, transparent calc((100vw - 30px) * 436 / 358 * 0.67), var(--color-bg-light) calc((100vw - 30px) * 436 / 358 * 0.67));
  }
  .message-director__body {
    gap: var(--space-16);
  }
  .doctor-info {
    display: block;
    margin-bottom: var(--space-16);
  }
  .doctor-info__name {
    margin-bottom: var(--space-16);
  }
  .doctor-info__name .role {
    margin-bottom: var(--space-8);
  }
  .doctor-info__name .name {
    font-size: 20px;
    font-weight: 700;
  }
  .doctor-certifications {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-12);
  }
  .doctor-certifications span {
    white-space: normal;
    display: flex;
    align-items: center;
    font-size: 11px;
    line-height: 1.4;
    padding: var(--space-8) var(--space-20);
  }
  .doctor-message {
    font-size: 15px;
    line-height: 1.75;
  }
  .message-director__body .btn {
    width: 100%;
    max-width: none !important;
  }
}
/* ------------------------------------------------------------
   アクセス：スマホの地図は縦を高く（横4：縦3）
   PCは _site.scss の 1200:332 のまま
   ------------------------------------------------------------ */
@media (max-width: 767px) {
  .access__map-image {
    aspect-ratio: 4/3;
  }
}/* サイトマップ（inc/sitemap.php） */
.postPage .sitemap a {
  color: inherit;
  text-decoration: none;
}
.postPage .sitemap a:hover,
.postPage .sitemap a:focus {
  color: var(--color-secondary);
  text-decoration: underline;
}
.postPage .sitemap .titleh4 {
  margin-top: 56px;
}
.postPage .sitemap__pages,
.postPage .sitemap__cols {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 8px 32px;
}
.postPage .sitemap__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 32px 40px;
}
.postPage .sitemap__group .titleh6 {
  margin: 0 0 12px;
}
/*# sourceMappingURL=style.css.map */
/* 診療内容 詳細：企業向けの「出張接種のメリット」（見出しと説明のカード。SP 1列 / 768px〜 2列） */
.medical-merits {
  display: grid;
  gap: 16px;
}
.medical-merits__item {
  padding: 20px 24px;
  border: 1px solid var(--color-border, #dde3ea);
  border-radius: var(--radius-sm);
  background-color: var(--color-text-inverse);
}
.postPage .medical-merits__title {
  margin: 0 0 8px;
  color: var(--color-primary);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
}
.postPage .medical-merits__text {
  margin: 0;
}
@media (min-width: 768px) {
  .medical-merits {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

/* 症例詳細：関連する診療内容（同じ関連タグの診療内容のページ） */
.case-related {
  margin-top: 56px;
}
.case-related .titleh4 {
  margin-bottom: 24px;
}
