@charset "UTF-8";
/*-----------------------------------------------------------
TOP（css/front/top.css）— ヒーロー・セクション・投稿一覧
 ※ WPでは style.css より先に読み込まれる。共通ルールを上書きしたい時はセレクタを .sec01 等で限定する
 ※ .top-ttl / .l-ttl はフッターでも使うので components/_heading.scss（共通）にある
-----------------------------------------------------------*/
/*------------
Hero（.hero01 で behavior.js が .splide を fade 初期化）
-------------*/
.hero {
  position: relative;
  margin-top: var(--header_height);
}
.hero .splide__slide img {
  width: 100%;
  height: 43.78vw;
  min-height: 500px;
  -o-object-fit: cover;
     object-fit: cover;
  -o-object-position: 50% 70%;
     object-position: 50% 70%;
}
.hero .splide__pagination {
  position: absolute;
  right: 46px;
  bottom: 30px;
  left: auto;
  justify-content: flex-end;
  gap: 10px;
  padding: 0;
}
.hero .splide__pagination button {
  display: block;
  width: 8px;
  height: 8px;
  margin: 0;
  background: #b6b6b6;
  border-radius: 50%;
  opacity: 1;
  transform: none;
}
.hero .splide__pagination button.is-active {
  background: var(--wp--preset--color--primary);
  transform: none;
}

.hero-catch {
  position: absolute;
  left: 3%;
  bottom: 43%;
  z-index: 2;
  padding: 30px 40px;
  background: #fff;
  border-radius: 40px;
}
.hero-catch .ttl {
  font-family: var(--font_jp);
  font-size: clamp(20px, 1.667vw, 30px);
  line-height: 2;
  color: var(--wp--preset--color--heading-text);
  white-space: nowrap;
}

/*------------
Sections
-------------*/
.contents section {
  position: relative;
}

.sec03,
.sec05,
.sec07,
.sec08 {
  overflow: hidden;
}
.sec03::before, .sec03::after,
.sec05::before,
.sec05::after,
.sec07::before,
.sec07::after,
.sec08::before,
.sec08::after {
  content: "";
  position: absolute;
  z-index: 0;
  background: no-repeat center/contain;
  pointer-events: none;
}
.sec03 > .container,
.sec05 > .container,
.sec07 > .container,
.sec08 > .container {
  position: relative;
  z-index: 1;
}

/*------------
sec01 お知らせ・診療時間表
-------------*/
.sec01 {
  padding: 93px 0 100px;
}

.top-layout06 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 44px;
  align-items: start;
}
.top-layout06 .col-ttl {
  padding-bottom: 11px;
  margin-bottom: 10px;
  font-size: 1.25rem;
  line-height: 1.75;
  color: var(--wp--preset--color--primary);
  border-bottom: 2px solid #ced5d9;
}
.top-layout06 .btn-wrap {
  margin-top: 30px;
}

.top-table02 {
  margin: 18px 0 20px;
}
.top-table02 .row {
  display: grid;
  grid-template-columns: 91px 1fr;
}
.top-table02 dt {
  font-family: var(--font_jp);
  line-height: 2;
  color: var(--wp--preset--color--heading-text);
}
.top-table02 dd {
  padding-top: 2px;
  line-height: 1.75;
  color: #3b4043;
}

/*------------
sec02 ご予約のお願い
-------------*/
.sec02 {
  padding: 120px 0;
  background: #daedf8 url(../../images/sec02_bg.jpg) no-repeat center/cover;
}
.sec02 .top-ttl {
  margin-bottom: 36px;
}

.sec02-txt {
  margin-bottom: 50px;
  text-align: center;
}

/*------------
sec03 ごあいさつ
-------------*/
.sec03 {
  padding: 150px 0 90px;
}
.sec03::before {
  top: 1px;
  left: 0;
  width: 120px;
  height: 323px;
  background-image: url(../../images/share/deco_sec03_l.png);
}
.sec03::after {
  right: 0;
  bottom: 0;
  width: 233px;
  height: 400px;
  background-image: url(../../images/share/deco_sec03_r.png);
}

.top-layout02 {
  display: grid;
  grid-template-columns: 460px 1fr;
  gap: 52px;
  align-items: start;
}
.top-layout02 .l-img img {
  width: 100%;
  aspect-ratio: 460/340;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 40px;
}

.l-catch {
  margin-bottom: 12px;
  font-size: 1.875rem;
  line-height: 1.75;
  color: var(--wp--preset--color--primary);
}

/*------------
sec04 当クリニックの特徴
-------------*/
.sec04 {
  padding: 120px 0;
  background: var(--wp--preset--color--primary-light-bg) url(../../images/sec04_bg.jpg) no-repeat center/cover;
}

.top-card02 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 60px;
}
.top-card02 a {
  position: relative;
  display: block;
  height: 100%;
  overflow: hidden;
  color: #fff;
  background: var(--wp--preset--color--secondary);
  border: 2px solid var(--wp--preset--color--secondary);
  border-radius: 25px;
  transition: opacity 0.3s;
}
.top-card02 a::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 9px;
  height: 9px;
  background: #fff;
  -webkit-clip-path: polygon(100% 0, 100% 100%, 0 100%);
          clip-path: polygon(100% 0, 100% 100%, 0 100%);
}
@media (any-hover: hover) {
  .top-card02 a:hover {
    opacity: 0.8;
  }
}
.top-card02 .card-img img {
  width: 100%;
  aspect-ratio: 328/239;
  -o-object-fit: cover;
     object-fit: cover;
}
.top-card02 .card-desc {
  padding: 22px 15px 38px;
  text-align: center;
}
.top-card02 .card-num {
  margin-bottom: 6px;
  font-family: var(--font_en);
  font-size: 1.875rem;
  font-weight: 500;
  line-height: 1.66;
  letter-spacing: 0.1em;
  color: var(--wp--preset--color--accent);
}
.top-card02 .card-ttl {
  font-size: 1.0625rem;
  line-height: 1.76;
  letter-spacing: 0.05em;
}

/*------------
sec05 診療について
-------------*/
.sec05 {
  padding: 150px 0;
}
.sec05::before {
  top: 1px;
  left: 0;
  width: 217px;
  height: 541px;
  background-image: url(../../images/share/deco_sec05_l.png);
}
.sec05::after {
  right: 0;
  bottom: 13px;
  width: 116px;
  height: 514px;
  background-image: url(../../images/share/deco_sec05_r.png);
}

.top-layout03 {
  position: relative;
  padding-top: 82px;
  margin-bottom: 59px;
}
.top-layout03 .l-img {
  position: absolute;
  top: 0;
  left: -138px;
  width: 670px;
  height: 468px;
}
.top-layout03 .l-img img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 40px;
}
.top-layout03 .l-desc {
  position: relative;
  z-index: 1;
  width: 580px;
  padding: 55px 70px 60px;
  margin-left: 0;
  background: var(--wp--preset--color--primary-bg);
  border-radius: 40px;
}
.top-layout03.reverse .l-img {
  left: auto;
  right: -138px;
}
.top-layout03.reverse .l-desc {
  margin-left: -38px;
}

.top-card01 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.top-card01 a {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  padding: 33px 28px 45px;
  text-align: center;
  background: #fff;
  border: 2px solid var(--wp--preset--color--primary);
  border-radius: 25px;
  transition: background-color 0.3s;
}
.top-card01 a::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 9px;
  height: 9px;
  background: var(--wp--preset--color--secondary);
  -webkit-clip-path: polygon(100% 0, 100% 100%, 0 100%);
          clip-path: polygon(100% 0, 100% 100%, 0 100%);
}
@media (any-hover: hover) {
  .top-card01 a:hover {
    background: var(--wp--preset--color--primary-bg);
  }
}
.top-card01 .card-icon {
  display: grid;
  place-items: center;
  width: 150px;
  height: 150px;
  margin-bottom: 11px;
  background: var(--wp--preset--color--primary);
  border-radius: 50%;
}
.top-card01 .card-icon img {
  width: auto;
  max-width: 100px;
  height: auto;
}
.top-card01 .card-ttl {
  display: grid;
  place-items: start center;
  min-height: 66px;
  margin-bottom: 18px;
  font-size: 1.1875rem;
  line-height: 1.74;
  color: var(--wp--preset--color--heading-text);
}
.top-card01 .card-txt {
  font-size: 0.9375rem;
  line-height: 1.54;
}

/*------------
sec06 ホームケア／リハビリテーション
-------------*/
.sec06 {
  padding: 120px 0;
  background: var(--wp--preset--color--primary-bg) url(../../images/sec06_bg.jpg) no-repeat center/cover;
}

.top-layout05 {
  display: grid;
  grid-template-columns: 450px 1fr;
  min-height: 326px;
  overflow: hidden;
  background: #fff;
  border-radius: 40px;
}
.top-layout05 + .top-layout05 {
  margin-top: 90px;
}
.top-layout05 .l-img img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}
.top-layout05 .l-desc {
  align-self: center;
  padding: 33px 52px 35px 50px;
}
.top-layout05 .l-catch {
  margin-right: -40px;
}
.top-layout05.reverse {
  grid-template-columns: 1fr 450px;
}
.top-layout05.reverse .l-img {
  order: 2;
}
.top-layout05.reverse .l-desc {
  padding: 33px 50px 35px 52px;
}

/*------------
sec07 トピックス
-------------*/
.sec07 {
  padding: 150px 0 0;
}
.sec07::before {
  top: 1px;
  right: 0;
  width: 267px;
  height: 238px;
  background-image: url(../../images/share/deco_sec07_r.png);
}
.sec07 .btn-wrap {
  margin-top: 60px;
}

/*------------
sec08 採用情報
-------------*/
.sec08 {
  padding: 150px 0;
}
.sec08::before {
  bottom: 1px;
  left: 0;
  width: 682px;
  height: 115px;
  background-image: url(../../images/share/deco_sec08_b.png);
}
.sec08 .top-layout05.is-recruit {
  min-height: 342px;
  background: var(--wp--preset--color--primary-light-bg);
}
.sec08 .top-layout05.is-recruit .l-desc {
  padding: 30px 50px 40px;
}
.sec08 .top-layout05.is-recruit .l-ttl {
  margin-bottom: 22px;
}

/*------------
sec09 アクセス（地図 + 医院情報）
-------------*/
.top-layout07 {
  display: grid;
  grid-template-columns: 1fr 400px;
  min-height: 420px;
}
.top-layout07 .map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
}
.top-layout07 .info {
  padding: 75px 30px;
  text-align: center;
  background: var(--wp--preset--color--primary-bg);
}

.info-logo {
  margin-bottom: 22px;
}
.info-logo img {
  width: auto;
  height: 45px;
}

.info-address {
  margin-bottom: 8px;
  line-height: 1.75;
}

.info-list {
  display: inline-block;
  margin-bottom: 30px;
  font-size: 0.9375rem;
  line-height: 2.2;
  text-align: left;
}
.info-list .row {
  display: grid;
  grid-template-columns: 105px 1fr;
}

/*------------
Post list（ショートコード出力のマークアップに合わせる）
 [show_news_post]  → .list-top-news li > a > time + span.ttl
 [top_blog_post]   → .list-top-blog li > a > figure.list-img + div.list-desc(time + h3.list-ttl + span.category)
-------------*/
.list-top-news li {
  border-bottom: 1px solid var(--wp--preset--color--border-color);
}
.list-top-news a {
  display: grid;
  grid-template-columns: 97px minmax(0, 1fr);
  align-items: baseline;
  padding: 16px 0;
  line-height: 2;
  transition: color 0.3s;
}
@media (any-hover: hover) {
  .list-top-news a:hover {
    color: var(--wp--preset--color--primary);
  }
}
.list-top-news time {
  font-size: 0.8125rem;
  color: #a2a6aa;
}
.list-top-news .ttl {
  overflow: hidden;
  font-family: var(--font_jp);
  color: var(--wp--preset--color--heading-text);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.list-top-blog {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 240px));
  gap: 20px;
}
.list-top-blog a {
  display: block;
}
@media (any-hover: hover) {
  .list-top-blog a:hover .list-img img {
    transform: scale(1.05);
  }
}
.list-top-blog .list-img {
  margin-bottom: 17px;
  overflow: hidden;
  border: 1px solid var(--wp--preset--color--border-color);
  border-radius: 15px;
}
.list-top-blog .list-img img {
  width: 100%;
  aspect-ratio: 241/164;
  -o-object-fit: cover;
     object-fit: cover;
  transition: transform 0.5s;
}
.list-top-blog time {
  display: block;
  font-size: 0.8125rem;
  line-height: 2;
  color: #a2a6aa;
}
.list-top-blog .list-ttl {
  overflow: hidden;
  font-size: 0.9375rem;
  line-height: 2;
  color: var(--wp--preset--color--heading-text);
  /* white-space: nowrap; */
  text-overflow: ellipsis;
}
.list-top-blog .category {
  display: inline-block;
  margin: 2px 5px 0 0;
  padding: 0 8px;
  font-size: 0.6875rem;
  line-height: 18px;
  color: var(--wp--preset--color--heading-text);
  background: var(--wp--preset--color--accent);
}

/*------------
Tablet（PC は viewport 1200 固定。ここは iPad 縦など）
-------------*/
@media (max-width: 1024px) {
  .top-layout03 .l-img {
    left: -5vw;
    width: 60%;
  }
  .top-layout03.reverse .l-img {
    right: -5vw;
  }
  .top-layout03 .l-desc {
    width: 60%;
    padding: 40px;
  }
  .top-layout03.reverse .l-desc {
    margin-left: 0;
  }
  .top-layout05,
  .top-layout05.reverse {
    grid-template-columns: 40% 1fr;
  }
  .top-layout05.reverse {
    grid-template-columns: 1fr 40%;
  }
}
/*------------
SP
-------------*/
@media (max-width: 782px) {
  .hero .splide__slide img {
    height: 108vw;
    min-height: 0;
  }
  .hero .splide__pagination {
    right: 15px;
    bottom: 15px;
  }
  .hero {
    display: flex;
    flex-direction: column;
  }
  .hero-catch {
    order: 2;
    position: relative;
    inset: auto;
    margin: -36px 5% 0;
    padding: 18px 22px;
    border-radius: 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  }
  .hero-catch .ttl {
    font-size: min(0.9375rem, 4.2vw);
    line-height: 1.7;
    white-space: normal;
    text-align: center;
  }
  .sec01 {
    padding: 50px 0 60px;
  }
  .top-layout06 {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .top-table02 .row {
    grid-template-columns: 80px 1fr;
  }
  .list-top-news a {
    grid-template-columns: minmax(0, 1fr);
    padding: 12px 0;
    line-height: 1.7;
  }
  .sec02 {
    padding: 60px 0;
  }
  .sec02-txt {
    margin-bottom: 30px;
    text-align: left;
  }
  .sec02-txt br {
    display: none;
  }
  .sec03 {
    padding: 70px 0 60px;
  }
  .sec03::before {
    width: 60px;
    height: 162px;
  }
  .sec03::after {
    width: 117px;
    height: 200px;
  }
  .top-layout02 {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .top-layout02 .l-img img {
    border-radius: 25px;
  }
  .l-catch {
    font-size: 1.3125rem;
    line-height: 1.6;
  }
  .sec04 {
    padding: 60px 0;
  }
  .top-card02 {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 40px;
  }
  .top-card02 .card-desc {
    padding: 15px 15px 25px;
  }
  .top-card02 .card-num {
    font-size: 1.625rem;
    margin-bottom: 2px;
  }
  .top-card02 .card-ttl {
    font-size: 1rem;
  }
  .sec05 {
    padding: 70px 0 60px;
  }
  .sec05::before {
    width: 109px;
    height: 271px;
  }
  .sec05::after {
    width: 58px;
    height: 257px;
  }
  .top-layout03,
  .top-layout03.reverse {
    padding-top: 0;
    margin-bottom: 40px;
  }
  .top-layout03 .l-img,
  .top-layout03.reverse .l-img {
    position: static;
    width: 100%;
    height: auto;
    margin-bottom: -40px;
  }
  .top-layout03 .l-img img,
  .top-layout03.reverse .l-img img {
    aspect-ratio: 3/2;
    border-radius: 25px;
  }
  .top-layout03 .l-desc,
  .top-layout03.reverse .l-desc {
    width: 92%;
    margin: 0 auto;
    padding: 30px 22px 35px;
    border-radius: 25px;
  }
  .top-card01 {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .top-card01 a {
    padding: 25px 20px 30px;
  }
  .top-card01 .card-icon {
    width: 120px;
    height: 120px;
  }
  .top-card01 .card-icon img {
    max-width: 80px;
  }
  .top-card01 .card-ttl {
    min-height: 0;
    margin-bottom: 10px;
    font-size: 1.0625rem;
  }
  .sec06 {
    padding: 60px 0;
  }
  .top-layout05,
  .top-layout05.reverse {
    grid-template-columns: 1fr;
    border-radius: 25px;
  }
  .top-layout05 + .top-layout05,
  .top-layout05 + .top-layout05.reverse,
  .top-layout05.reverse + .top-layout05,
  .top-layout05.reverse + .top-layout05.reverse {
    margin-top: 30px;
  }
  .top-layout05 .l-img,
  .top-layout05.reverse .l-img {
    order: 0;
  }
  .top-layout05 .l-img img,
  .top-layout05.reverse .l-img img {
    aspect-ratio: 3/2;
  }
  .top-layout05 .l-desc,
  .top-layout05.reverse .l-desc {
    padding: 25px 22px 30px;
  }
  .top-layout05 .l-catch,
  .top-layout05.reverse .l-catch {
    margin-right: 0;
  }
  .sec07 {
    padding: 70px 0 0;
  }
  .sec07::before {
    width: 134px;
    height: 119px;
  }
  .sec07 .btn-wrap {
    margin-top: 40px;
  }
  .list-top-blog {
    grid-template-columns: repeat(2, minmax(0, 240px));
    gap: 25px 15px;
  }
  .list-top-blog .list-img {
    margin-bottom: 10px;
    border-radius: 10px;
  }
  .list-top-blog .list-ttl {
    font-size: 0.875rem;
  }
  .sec08 {
    padding: 60px 0 90px;
  }
  .sec08::before {
    width: 341px;
    height: 58px;
  }
  .sec08 .top-layout05.is-recruit .l-desc {
    padding: 25px 22px 30px;
  }
  .top-layout07 {
    grid-template-columns: 1fr;
  }
  .top-layout07 .map iframe {
    min-height: 300px;
  }
  .top-layout07 .info {
    padding: 40px 20px 45px;
  }
}