/* ===========================================
   千賀整形外科 - トップページ CSS
   Responsive: PC(1024px+) / Tablet(768px) / SP(〜767px)
   =========================================== */

/*---------------
mv
---------------*/
.top-section {
  position: relative;
  width: 100%;
}

.top-main-visual {
  position: relative;
  width: 100%;
  min-height: 550px;
  max-height: 850px;
  margin-top: 110px;
  background-color: rgba(166, 146, 96, 0.4);
}

.top-mv-img {
  width: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 0 0 158px 0;
}

.top-content-wrap {
  position: absolute;
  bottom: 15%;
  left: 6%;
  z-index: 5;
  max-width: 650px;
}

.top-sub-catch {
  font-size: 36px;
  line-height: 1.5;
  color: var(--color-text);
  letter-spacing: 0.05em;
}

.top-main-catch {
  font-size: 52px;
  color: var(--color-text);
  font-weight: 500;
  letter-spacing: 0.03em;
  line-height: 1.5;
  margin: 0 0 10px 0;
}

.top-lead-text {
  font-size: 18px;
  color: var(--color-text);
  line-height: 1.5;
  margin: 0 0 26px 0;
}

.top-news-bar {
  width: 100%;
  height: 70px;
  background-color: rgba(166, 146, 96, 0.4);
  z-index: 10;
  border-bottom: 1px solid rgba(166, 146, 96, 1);
}

.top-news-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s ease;
}

.top-news-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 24px 32px;
}
a.top-news-bar__content {
  display: flex;
  flex: 1;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  padding-right: 20px;
  transition: opacity 0.3s ease;
}
.top-news-bar__content_block{
	display: flex;
  align-items: center;
}
a.top-news-bar__content:hover {
    opacity: 0.7;
}

/* お知らせが空の時のdiv用スタイル */
div.top-news-bar__content {
    flex: 1;
}

/* 一覧への右側矢印ボタン */
.top-news-arrow {
    flex-shrink: 0;
    /* 必要に応じてサイズや波線・矢印のスタイルをここに記述 */
}

.top-news-link:hover {
  opacity: 0.7;
}

.top-news-date {
  font-size: 14px;
  color: #666666;
  margin-right: 24px;
  flex-shrink: 0;
}

.top-news-cat {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 80px;
  padding: 4px 10px;
  background-color: var(--color-dark);
  color: var(--color-white);
  font-size: 11px;
  border-radius: 3px;
  margin-right: 24px;
  flex-shrink: 0;
}

.top-news-title {
  font-size: 14px;
  color: var(--color-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.top-news-empty {
  font-size: 13px;
  color: var(--color-dark);
  margin: 0;
}

.top-news-arrow {
  position: relative;
  flex-shrink: 0;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}
/*
.top-news-arrow::after {
  content: "";
  position: absolute;
  top: calc(50% - 3px);
  left: calc(50% - 4px);
  width: 6px;
  height: 6px;
  border-top: 1px solid var(--color-main);
  border-right: 1px solid var(--color-main);
  transform: rotate(45deg);
}
*/

@media screen and (max-width: 768px) {
  .top-main-visual {
    height: auto;
    aspect-ratio: 375 / 560;
    min-height: auto;
    margin-top: 80px;
  }
  .top-main-visual {
	  position: relative;
	  width: 100%;
	  height: calc(100vh - 110px - 70px);
	  min-height: 550px;
	  max-height: 850px;
	  margin-top: 80px;
	  background-color: rgba(166, 146, 96, 0.4);
	}

	.top-mv-img {
	  border-radius: 0;
	}

	.top-content-wrap {
	  position: absolute;
	  bottom: 15%;
	  left: 20px;
	  z-index: 5;
	  max-width: initial;
	  width: calc(100% - 40px);
	}

	.top-sub-catch {
	  font-size: 18px;
	}

	.top-main-catch {
	  font-size: 38px;
	  margin: 0 0 12px 0;
	}

	.top-lead-text {
	  font-size: 16px;
	}

  .top-news-bar {
    position: relative;
    border-top: none;
    border-bottom: 0;
    height: auto;
  }

  .top-news-bar__inner {
    padding: 0 20px;
    display: block;
  }
  a.top-news-bar__content {
	  flex-direction: column;
	}

  .top-news-bar__label {
    width: auto;
    margin-bottom: 4px;
  }

  .top-news-bar__en {
    font-size: 12px;
  }

  .top-news-bar__content {
      width: 100%;
      order: 3;
      padding: 24px 0;
      margin-top: 0;
      border-bottom: 1px solid rgba(166, 146, 96, 0.15);
  }

  .top-news-link {
      flex-wrap: wrap;
  }

  .top-news-date {
      font-size: 13px;
      margin-right: 12px;
  }

  .top-news-cat {
      min-width: 65px;
      padding: 2px 8px;
      font-size: 10px;
      margin-right: 0;
  }

  .top-news-title {
      width: 100%;
      margin-top: 6px;
      font-size: 13px;
      white-space: normal; /* スマホは2行になってもいいように崩れを防ぐ */
      display: -webkit-box;
      -webkit-box-orient: vertical;
      -webkit-line-clamp: 2; /* 最大2行まで表示 */
      overflow: hidden;
      text-overflow: ellipsis;
  }

  .top-news-arrow {
  	display: flex;
    margin-left: auto;
    width: 100%;
    height: 28px;
    padding: 24px 0;
  }
}


/* =========================================
   SUBNAV
   ========================================= */
.subnav {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.subnav__inner {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.subnav__inner::-webkit-scrollbar { display: none; }

.subnav__item {
  flex-shrink: 0;
  padding: 1rem 1.25rem;
  font-size: .82rem;
  color: var(--color-text-sub);
  letter-spacing: .05em;
  border-bottom: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}
.subnav__item:hover,
.subnav__item.is-active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
  opacity: 1;
}


/*---------------
about
---------------*/
.about-section {
  background: linear-gradient(to bottom, rgba(166, 146, 96, 0.4) 0%, rgba(255, 255, 255, 1) 30%);
  padding: 120px 0;
}

.about-inner {
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.about-content {
  width: 60%;
}

.about-title {
  font-size: 36px;
  color: var(--color-main);
  font-weight: 400;
  line-height: 1.6;
  margin: 0 0 36px 0;
  letter-spacing: 0.05em;
}

.about-text {
  font-size: 18px;
  color: var(--color-dark);
  line-height: 2;
  margin: 0;
  text-align: justify;
}

.about-images {
  width: 420px;
  position: relative;
  height: 502px;
}

.about-img-main {
  position: absolute;
  top: 0;
  left: 0;
  width: 219px;
  height: 381px;
  z-index: 2;
  box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.03);
}

.about-img-sub {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 219px;
  height: 381px;
  z-index: 1;
  box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.03);
}

.about-images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media screen and (max-width: 960px) {
  .about-title {
      font-size: 28px;
  }
  .about-text {
      font-size: 18px;
  }
  .about-images {
      height: 400px;
  }
}

@media screen and (max-width: 768px) {
  .about-section {
      padding: 60px 10px 120px;
  }

  .about-inner {
      flex-direction: column-reverse; 
      align-items: stretch;
      gap: 40px;
  }

  .about-content {
      width: 100%;
  }

  .about-title {
      font-size: 32px;
      margin-bottom: 24px;
  }

  .about-text {
      line-height: 1.8;
  }

  .about-images {
      width: 80%;
      height: auto;
      aspect-ratio: 320 / 360;
      margin: 0 auto;
      max-width: 100%;
  }
  
  .about-img-main {
      width: 55%;
      height: 75%;
  }

  .about-img-sub {
      width: 55%;
      height: 75%;
  }
}

/*---------------
service
---------------*/
.service-section {
  background-color: var(--color-white);
  padding: 100px 48px;
}

.service-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.service-header {
  margin-bottom: 60px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.service-card {
  display: flex;
  flex-direction: column;
}

.service-card-img {
  width: 100%;
  aspect-ratio: 368 / 490;
  overflow: hidden;
  margin-bottom: 24px;
  border-radius: var(--radius-sm);
}

.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.service-card:hover .service-card-img img {
  transform: scale(1.03);
}

.service-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.service-card-title {
  font-size: 24px;
  line-height: 1.5;
  color: var(--color-dark);
  font-weight: 600;
  margin: 0 0 8px 0;
}

.service-card-text {
  font-size: 18px;
  color: var(--color-dark);
  line-height: 1.5;
  margin: 0 0 16px 0;
  text-align: justify;
}

.service-card-action {
  margin-top: auto;
}

.service-card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 46px;
  background-color: var(--color-white);
  border: 1px solid var(--color-main);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.service-card-btn-text {
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-dark);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

.service-card-btn-text::after {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-top: 1px solid var(--color-main);
  border-right: 1px solid var(--color-main);
  transform: rotate(45deg);
}

@media screen and (max-width: 960px) {
  .service-grid {
      gap: 24px;
  }
  
  .service-card-title {
      font-size: 18px;
  }
  
  .service-card-text {
      font-size: 13px;
  }
}

@media screen and (max-width: 768px) {
  .service-section {
      padding: 60px 20px;
  }

  .service-header {
      margin-bottom: 40px;
  }

  .service-jp {
      font-size: 28px;
  }

  .service-grid {
      grid-template-columns: 1fr;
      gap: 48px;
  }

  .service-card {
      flex-direction: row;
      align-items: flex-start;
      gap: 16px;
  }

  .service-card-img {
      width: 120px;
      aspect-ratio: 1 / 1.5;
      margin-bottom: 0;
      flex-shrink: 0;
  }

  .service-card-body {
      flex: 1;
  }

  .service-card-title {
      font-size: 22px;
      margin-bottom: 8px;
  }

  .service-card-text {
      font-size: 16px;
      line-height: 1.7;
      margin-bottom: 16px;
  }
  
  .service-card-btn {
      width: 130px;
      height: 40px;
  }
}



/*---------------
access
---------------*/
.access__upper {
  background: var(--color-white);
  padding-block: clamp(60px, 9vw, 100px) clamp(50px, 7vw, 80px);
}

.access__upper-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  padding: 0!important;
  gap: 48px;
}

.access__address {
  margin-bottom: 16px;
}

.access__zip, .access__addr-line{
  font-size: 18px;
  line-height: 1.5;
  color: var(--color-dark);
}

.access__map-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: var(--color-dark);
  border: 1px solid var(--color-main);
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 32px;
  transition: all .25s ease;
  text-decoration: none;
  min-width: 150px;
}
.access__map-link img {
  width: 24px;
  height: 24px;
}

.access__map-link-icon {
  flex-shrink: 0;
  vertical-align: middle;
  height: 24px;
  width: 24px;
}

/* ── アクセスリスト ── */
.access__list {
  display: flex;
  flex-direction: column;
  gap: .85rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.access__item {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding-bottom: 8px;
  border-bottom: 2px dotted rgba(166, 146, 96, 1) ;
}

.access__item-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: var(--color-main);
  margin-top: .05rem;
  display: flex;
  align-items: center;
}

.access__item-icon img {
  width: 100%;
  height: 100%;
}

.access__item-text {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-dark);
  line-height: 1.5;
}

.access__map {
  overflow: hidden;
  aspect-ratio: 2 / 1;
  background: var(--color-dark);
  margin-top: 100px;
}

.access__map iframe {
  display: block;
  width: 100%;
  height: 100%;
}

/*--- 送迎サービス ---*/
.shuttle-section {
  position: relative;
  width: 100%;
  min-height: 160px;
  display: flex;
  align-items: center;
  overflow: hidden;
	background: var(--color-white);
	margin-bottom: 30px;
}

.shuttle-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.shuttle-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}

.shuttle-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 40px;
}

.shuttle-content {
  max-width: 550px;
}

.shuttle-title {
  font-size: 24px;
  color: var(--color-dark);
  font-weight: 500;
  margin: 0 0 8px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  line-height: 1.5;
  letter-spacing: 0.05em;
}

.shuttle-title::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: #4A6E28;
  border-radius: 50%;
}

.shuttle-desc {
  font-size: 18px;
  color: var(--color-dark);
  line-height: 1.75;
}

.shuttle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 220px;
  height: 54px;
  background-color: var(--color-white);
  text-decoration: none;
  border: 1px solid var(--color-dark);
  border-radius: var(--radius-sm);
  transition: opacity 0.3s ease;
}

.shuttle-btn:hover {
  opacity: 0.9;
}

.shuttle-btn-text {
  font-size: 14px;
  color: var(--color-dark);
  font-weight: 500;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.shuttle-btn-text::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-top: 1px solid var(--color-main);
  border-right: 1px solid var(--color-main);
  transform: rotate(45deg);
}

@media screen and (min-width: 769px) {
  .shuttle-inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 40px;
  }
  
  .shuttle-content {
      max-width: none;
      flex: 1;
  }
  
  .shuttle-desc {
      margin-bottom: 0;
  }
  
  .shuttle-action {
      flex-shrink: 0;
  }
}

@media screen and (max-width: 768px) {
  .shuttle-section {
      padding: 0 20px;
  }

  .shuttle-bg img {
      display: none;
  }

  .shuttle-inner {
      padding: 20px;
      background-color: var(--color-bg);
      border-radius: 8px;
      max-width: initial;
  }

  .shuttle-content {
      max-width: 100%;
  }

  .shuttle-title {
      font-size: 20px;
      margin-bottom: 16px;
  }

  .shuttle-desc {
      font-size: 18px;
      line-height: 1.8;
      margin-bottom: 0;
  }

  .shuttle-btn {
      width: 180px;
      height: 48px;
      border: 1px solid #E6DFCE;
      box-shadow: none;
  }
}

@media (max-width: 767px) {

  .access__upper {
    padding: clamp(48px, 8vw, 64px) 20px;
  }

  .access__upper-inner {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .access__map {
    aspect-ratio: 4 / 3;
    margin-top: 40px;
  }

  .access__shuttle-inner {
    grid-template-columns: 1fr;
  }

  /* SP: 画像は下に、テキストを上に */
  .access__shuttle-text  { order: 1; }
  .access__shuttle-image {
    order: 2;
    aspect-ratio: 16 / 7;
    min-height: 140px;
  }
  .access__shuttle-image img { position: static; width: 100%; height: 100%; }
}



/*---------------
news
---------------*/
.news-section {
  background-color: #F5F2E3;
  padding: 100px 48px 50px;
  overflow: hidden;
  margin-bottom: -50px;
}

.news-section__inner {
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 60px;
}

.news-section__left {
  width: 260px;
  flex-shrink: 0;
}

.news-section__en {
  display: block;
  font-size: 14px;
  color: var(--color-main);
  letter-spacing: 0.15em;
  margin-bottom: 12px;
}

.news-section__jp {
  font-size: 32px;
  color: var(--color-dark);
  font-weight: 500;
  margin: 0 0 40px 0;
  letter-spacing: 0.05em;
}

.news-section__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 200px;
  height: 46px;
  background-color: var(--color-white);
  text-decoration: none;
  border: 1px solid var(--color-dark);
  border-radius: var(--radius-sm);
  transition: background-color 0.3s ease, opacity 0.3s ease;
}

.news-section__btn-text {
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-dark);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
}

.news-section__btn-text::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-top: 1px solid var(--color-main);
  border-right: 1px solid var(--color-main);
  transform: rotate(45deg);
}

.news-section__right {
  flex: 1;
}

.news__list {
  display: flex;
  flex-direction: column;
}

.news__item {
  display: flex;
  align-items: center;
  padding: 24px 0;
  text-decoration: none;
  border-bottom: 1px solid;
  border-image: linear-gradient(to right, rgba(166, 146, 96, 0.25) 0%, rgba(166, 146, 96, 0.1) 80%, rgba(255, 255, 255, 0) 100%) 1;
  transition: opacity 0.3s ease;
}

.news__item:hover {
  opacity: 0.7;
}

.news__meta {
  display: flex;
  align-items: center;
  gap: 32px;
  width: 240px;
  flex-shrink: 0;
}

.news__date {
  font-size: 15px;
  color: var(--color-dark);
  letter-spacing: 0.05em;
  min-width: 95px;
}

.news__cat {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 90px;
  padding: 2px 20px;
  background-color: var(--color-dark);
  color: var(--color-white);
  font-size: 12px;
  letter-spacing: 0.05em;
}

.news__title {
  flex: 1;
  font-size: 15px;
  color: var(--color-dark);
  line-height: 1.6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 30px;
  position: relative;
}

.news__title::after {
  content: "";
  position: absolute;
  margin-left: 10px;
  top: calc(50% - 3px);
  width: 6px;
  height: 6px;
  border-top: 1px solid var(--color-main);
  border-right: 1px solid var(--color-main);
  transform: rotate(45deg);
}

.news__empty {
  font-size: 14px;
  color: var(--color-dark);
  margin: 0;
  padding: 20px 0;
}

.pc-only { display: flex; }
.sp-only { display: none; }

@media screen and (max-width: 960px) {
  .news-section__inner {
      gap: 40px;
  }
  .news__meta {
      width: 200px;
      gap: 16px;
  }
}

@media screen and (max-width: 768px) {
  .news-section {
      padding: 40px 0 0;
      margin-bottom: 0;
  }

  .news-section__inner {
      flex-direction: column;
      gap: 0;
  }

  .news-section__left {
      width: 100%;
  }

  .news-section__jp {
      margin-bottom: 0;
  }

  .news-section__right {
      width: 100%;
  }

  .news__item {
      flex-direction: column;
      align-items: flex-start;
      padding: 20px 0;
      border-image: linear-gradient(to right, rgba(166, 146, 96, 0.25) 0%, rgba(255, 255, 255, 0) 100%) 1;
  }

  .news__meta {
      width: 100%;
      margin-bottom: 12px;
      gap: 16px;
  }

  .news__date {
      font-size: 14px;
  }

  .news__cat {
      min-width: 70px;
      padding: 4px 10px;
      font-size: 11px;
  }

  .news__title {
      width: 100%;
      font-size: 16px;
      white-space: normal;
      overflow: visible;
      text-overflow: clip;
      padding-right: 24px;
  }

  .news__title::after {
      right: 4px;
      top: calc(50% - 3px);
  }

  .news-section__action {
      margin-top: 30px;
  }

  .news-section__btn {
      width: 100%;
      height: 50px;
      border: 1px solid #E6DFCE;
      box-shadow: none;
  }

  .pc-only { display: none; }
  .sp-only { display: flex; }
}

/*---------------
facility
---------------*/
.facility-section {
    position: relative;
    z-index: 1;
    margin: -80px 0 265px 40px;
    background-color: var(--color-main);
    border-radius: 60px 0 0 0;
    padding: 200px 0 130px;
}
.facility-bg-text {
    position: absolute;
    bottom: -265px;
    left: 50%;
    transform: translateX(-50%);
    font-size: clamp(3rem, 6.5vw, 6.8rem);
    font-weight: 700;
    color: var(--color-main);
    white-space: nowrap;
    letter-spacing: 0.06em;
    z-index: 1;
    pointer-events: none;
    user-select: none;
    opacity: 0.15;
}
.facility-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 48px;
}

.facility-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 60px;
}

.facility-en {
    display: block;
    font-size: 18px;
    color: var(--color-white);
    line-height: 1.5;
    margin: 0 0 4px 0;
    letter-spacing: 0.04em;
    margin-bottom: 12px;
}

.facility-jp {
    font-size: 36px;
    color: var(--color-white);
    font-weight: 500;
    margin: 0 0 8px 0;
    line-height: 1.5;
    letter-spacing: 0.04em;
}

.facility-lead {
    font-size: 18px;
    color: var(--color-white);
    line-height: 1.75;
    margin: 0;
    letter-spacing: 0.02em;
}

.facility-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 210px;
    height: 48px;
    background-color: var(--color-white);
    text-decoration: none;
    border-radius: 4px;
    transition: opacity 0.3s ease;
}

.facility-btn:hover {
    opacity: 0.9;
}

.facility-btn-text {
    font-size: 13px;
    color: var(--color-main);
    font-weight: 600;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.facility-btn-text::after {
    content: "";
    display: inline-block;
    width: 5px;
    height: 5px;
    border-top: 1px solid var(--color-main);
    border-right: 1px solid var(--color-main);
    transform: rotate(45deg);
}


@media screen and (max-width: 768px) {
    .doctor-section {
        padding: 60px 20px 100px 20px;
    }

    .doctor-inner {
        padding: 40px 20px;
    }

    .doctor-content {
        flex-direction: column;
    }

    .doctor-left {
        display: contents;
    }

    .doctor-header {
        order: 1;
        margin-bottom: 30px;
    }

    .doctor-jp {
        font-size: 28px;
        margin: 8px 0 0 0;
        letter-spacing: 0.05em;
    }

    .doctor-right {
        order: 2;
        width: 100%;
        margin-bottom: 40px;
    }

    .doctor-profile-details {
        order: 3;
    }

    .doctor-name {
        font-size: 24px;
        flex-direction: column;
        gap: 4px;
        margin-bottom: 24px;
    }

    .doctor-name-en {
        font-size: 14px;
    }
}


/* =========================================
    INFINITE LOOP SLIDER (CSS無限ループ)
   ========================================= */
.facility-slider {
    width: 100%;
    position: relative;
    z-index: 2;
    padding-bottom: 50px; 
}

.facility-track {
    display: flex;
    width: calc(456px * 8 + 16px * 8);
    gap: 16px;
    animation: infinity-loop 35s linear infinite;
    position: absolute;
}

.facility-slider:hover .facility-track {
    animation-play-state: running;
}

.facility-slide {
    width: 456px;
    aspect-ratio: 456 / 304;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}


.facility-slide:nth-child(even) {
    transform: translateY(40px);
}

.facility-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@keyframes infinity-loop {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-280px * 4 - 24px * 4));
    }
}


@media screen and (max-width: 768px) {
    .facility-section {
        margin: -100px 0 120px 0;
        border-radius: 0;
        padding: 90px 0 80px 0;
        overflow-x: clip;
    }

    .facility-inner {
        padding: 0 20px;
    }

    .facility-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
        margin-bottom: 40px;
    }

    .facility-jp {
        font-size: 32px;
        margin-bottom: 4px;
    }

    .facility-lead {
        font-size: 18px;
    }

    .facility-header__right {
        width: 100%;
    }

    .facility-btn {
        width: 100%;
        height: 46px;
    }

    .facility-slider {
        padding-bottom: 30px;
    }

    .facility-slide:nth-child(even) {
        transform: translateY(30px);
    }

    .facility-track {
        width: calc(230px * 8 + 16px * 8);
        gap: 16px;
        animation: infinity-loop-sp 25s linear infinite;
    }

    .facility-slide {
        width: 230px; 
    }

    @keyframes infinity-loop-sp {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-230px * 4 - 16px * 4));
        }
    }

    .facility-bg-text {
        bottom: -120px;
    }
}


/* =========================================
   RESPONSIVE — Smartphone (〜767px)
   ========================================= */
@media (max-width: 767px) {

  :root { --gutter: 16px; }

  .pc-only { display: none; }
  .sp-only { display: inline; }

  /* HERO */
  .hero__inner {
    grid-template-columns: 1fr;
    padding-top: 7rem;
    text-align: center;
  }
  .hero__title { font-size: 1.7rem; }
  .hero__btns { justify-content: center; }
  .hero__image { aspect-ratio: 3/2; }

  /* SUB NAV */
  .subnav__item { padding: .75rem .9rem; font-size: .78rem; }

  /* ABOUT */
  .about__inner { gap: 1.5rem; }
  .about__images { grid-template-columns: 1fr; }
  .about__img-main { grid-column: auto; }
  .about__img-sub { grid-column: auto; aspect-ratio: 16/9; }

  /* SERVICES */
  .services__grid { grid-template-columns: 1fr; }
  .service-card:last-child { grid-column: auto; max-width: none; }

  /* DOCTOR */
  .doctor__inner { gap: 1.5rem; }
  .doctor__image { max-width: 280px; aspect-ratio: 1/1; }

  /* FACILITY */
  .facility__grid { grid-template-columns: 1fr 1fr; }
  .facility__item--large { grid-column: 1 / 3; }

  /* ACCESS */
  .access__inner { gap: 1.5rem; }
  .access__map iframe { height: 280px; }

  /* NEWS */
  .news__item {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
  }
  .news__date { grid-column: 1; grid-row: 1; }
  .news__cat  { grid-column: 2; grid-row: 1; }
  .news__title { grid-column: 1 / -1; grid-row: 2; white-space: normal; }

  /* CTA */
  .cta__inner { flex-direction: column; text-align: center; }
  .cta__btns { justify-content: center; flex-direction: column; width: 100%; }
  .cta__btns .btn { width: 100%; }

  /* Section titles */
  .section__title { font-size: 1.4rem; }

  /* Buttons */
  .hero__btns .btn { padding: .65rem 1.25rem; font-size: .85rem; }
}


/* =========================================
   ANIMATIONS — Fade-in on scroll
   ========================================= */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s ease, transform .7s ease;
}
.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-up:nth-child(2) { transition-delay: .15s; }
.fade-up:nth-child(3) { transition-delay: .3s; }
.fade-up:nth-child(4) { transition-delay: .45s; }
