/* Theme typography */
body {
  font-family: "Shippori Mincho", serif;
  font-size: 18px;
  font-weight: 500;
  font-style: normal;
  letter-spacing: 0.05em;
  line-height: 1.8;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
}

/* Keep keyboard focus clearly visible throughout the site. */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid #005fcc;
  outline-offset: 3px;
}

:root {
  --wide-width: 1430px;
  --thin-width: 1430px;
  /* トップページの各セクション上下の余白 */
  --front-section-space: 45px;
}

html {
  margin-top: 0px !important;
}

.br-pc {
  display: block;
}
.br-sp {
  display: none;
}

body,
html {
  margin: 0;
  padding: 0;
  width: 100%;
}

.container {
  margin: 0 auto;
  width: 90%;
  box-sizing: border-box;
}

.icon {
  margin-right: 8px;
  font-size: 18px;
}

h1 {
  font-size: 4vw;
  color: #fff;
  margin-bottom: 40px;
  text-align: left;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

.hero h1 {
  color: #3e4545;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.8);
}

/* キャッチコピーの強調語 */
.hero__keyword {
  color: #177b80;
}

/* --- ボタン共通 --- */
.web {
  background-color: #fff;
  color: #68b4b3;
  border: 1px solid transparent;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease;
  text-decoration: none;
}

/* ホバー時に色反転 */
.web:hover {
  background-color: #fff;
  color: #68b4b3;
  border: 1px solid #96d0c0;
}

/* --- header --- */
.header {
  position: absolute;
  top: 30px;
  left: 30px;
}

#header .logo-box {
  display: block;
  z-index: 1000;
}

.logo {
  font-size: 24px;
}

.logo-sp {
  display: none;
}

.logo-pc {
  display: block;
}

.site-header {
  position: relative;
  left: 0;
  z-index: 10;
  max-width: -webkit-fill-available;
  width: 100%;
}

.logo-box {
  width: 160px;
  height: auto;
  position: absolute;
}

.site-logo {
  width: 100%;
  height: auto;
}

/* --- Navigation --- */
.nav-links {
  background: #fff;
  padding: 0px;
  position: relative;
}

.nav-links ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: baseline;
  position: relative;
}

.nav-links li {
  margin: 0 24px;
  padding: 4vh 0px;
  color: #646868;
}

.nav-links a {
  text-decoration: none;
  gap: 16px;
  color: #646868;
  font-size: 14px;
}

.organ-item-origin {
  gap: 0 !important;
}

/* --- サブメニュー全体をホバー対象に含める --- */
.has-submenu:hover .header-organ-submenu,
.header-organ-submenu:hover {
  display: block;
  opacity: 1;
  visibility: visible;
}

/* グリッドレイアウト */
.header-organ-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 0 auto;
  width: 100%;
  max-width: 940px;
  padding: 10px 16px;
  text-align: center;
  justify-content: center;
}

.header-search-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0 auto;
  width: 100%;
  max-width: 940px;
  padding: 10px 16px;
  text-align: center;
  justify-content: center;
}

/* サブメニュー本体 */
.header-organ-submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #eaf7f5;
  z-index: 999;
  padding: 24px 0;
  width: 100%;
  max-width: 100%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease;
}

.header-search-submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #eaf7f5;
  z-index: 999;
  padding: 24px 0;
  width: 100%;
  max-width: 100%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition:
    opacity 0.1s ease,
    visibility 0.1s ease;
}

/* メニュー項目 */
.header-organ-item {
  background: #fff;
  border-radius: 8px;
  padding: 40px 8px 25px;
  text-decoration: none;
  transition: transform 0.1s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #333;
}

.header-organ-item img {
  width: 45px;
  height: 40px;
  margin: 10px 0 10px;
  transition: transform 0.3s ease;
}

.header-organ-item:hover img {
  transform: scale(1.2);
}

.header-organ-item span {
  display: block;
  font-size: 14px;
  line-height: 1.4;
}

.global-nav li {
  display: inline-block;
  color: #646868;
  cursor: pointer;
  transition: color 0.1s ease;
  font-size: 14px;
}

.global-nav li:hover::after {
  width: 100%;
}

/* --- PCナビゲーションリンク --- */
.nav-links-pc {
  display: flex;
}

/* ---END header --- */
/* top-page-st */
.hero {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 90vh;
}

.hero__image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 10%;
}

.hero-slider {
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-slider__slide {
  position: relative;
  overflow: hidden;
}

.hero-slider__pagination {
  z-index: 2;
  bottom: 24px;
}

.hero-slider__pagination .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: #fff;
  border: 1px solid #356f73;
  opacity: 1;
}

.hero-slider__pagination .swiper-pagination-bullet-active {
  background: #356f73;
}

.hero-slider__pagination .swiper-pagination-bullet:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.hero > .logo-box {
  z-index: 3;
}

.overlay {
  position: absolute;
  z-index: 4;
  width: 100%;
  top: 60%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding-top: 0%;
  margin: auto;
  max-width: 1430px;
}
.features {
  display: flex;
  margin-bottom: 100px;
}

/* キャッチコピーと説明文。写真の上でも読めるよう、後ろに白いぼかしを敷く */
.hero__copy {
  position: relative;
  z-index: 0;
  display: inline-block;
  margin-bottom: 40px;
}

.hero__copy::before {
  content: "";
  position: absolute;
  inset: -24px -40px;
  z-index: -1;
  border-radius: 48px;
  background: rgba(255, 255, 255, 0.8);
  filter: blur(20px);
}

.hero__lead {
  margin: 0;
  color: #3e4545;
  font-size: clamp(1rem, 1.25vw, 1.25rem);
  font-weight: 700;
  line-height: 1.8;
  letter-spacing: 0.06em;
}

.hero__lead span {
  display: inline-block;
}

.feature {
  background: #fff;
  border-radius: 50%;
  width: 12vw;
  height: 12vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow:
    inset 2px 2px 6px rgba(60, 60, 60, 0.1),
    0 0 10px rgba(0, 0, 0, 0.1);
  margin-left: -10px;
  border: 0.8px solid #fff;
  gap: 10px;
}

.feature img {
  width: 5vw;
  height: 5vw;
}

.feature p {
  font-size: 1vw;
  color: #6f7373;
}

.feature span {
  color: #00b0b9;
}

/* 英語の添え字はSP版だけで表示する */
.feature__en {
  display: none;
}

/* 右下固定のTEL・ボタン */
/* --- Contact (右下固定) --- */
.contact {
  position: fixed;
  right: 0;
  bottom: 0;
  text-align: right;
  display: flex;
  width: 50%;
  border-radius: 8px;
  background: #96d0c0;
  padding: 0 10px;
  z-index: 1000;
}

.contact p {
  background: #fff;
  padding: 0.4vw 1vw;
  border-radius: 8px;
  color: #6f7373;
  font-size: 0.8vw;
  margin: 12px 0;
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
}

.contact a {
  text-decoration: none;
  color: #68b4b3;
  font-size: 1.5vw;
}

.contact > .buttons {
  display: flex;
  gap: 5px;
  justify-content: flex-start;
  align-items: center;
  margin: 0;
  width: 100%;
}

.buttons a {
  display: flex;
  justify-content: center;
  background: #fff;
  border-radius: 8px;
}

.buttons .btn {
  padding: 0.6vw 0.1vw;
}

.recruit {
  font-size: 1vw !important;
  width: 12% !important;
}
.web:hover,
.recruit:hover {
  opacity: 1;
}

/* --- Hero内ボタン配置 --- */
.hero > .overlay > .buttons {
  position: relative;
}

.clinic-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1000;
}

.contact-span-sp {
  display: block;
}

/* スマホ対応：iPhone 14 Proサイズ以下 */

/* END top-page-st */
/* Clinic-Philosophy-st */
.clinic-philosophy {
  padding: var(--front-section-space) 30px 0;
}

.clinic-philosophy .container {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.6fr);
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
  max-width: 1430px;
}

.clinic-philosophy__heading {
  position: sticky;
  top: 40px;
}

.clinic-philosophy__body p {
  margin: 0 0 1.6em;
  color: #434b4b;
  font-size: 1.125rem;
  line-height: 2;
}

.clinic-philosophy__body p:last-child {
  margin-bottom: 0;
}

.clinic-philosophy__emphasis {
  color: #007f85;
  font-weight: 700;
}

/* END Clinic-Philosophy-st */
/*Clinic-Features-st*/
.clinic-tetra {
  overflow: hidden;
  /* 枠外にはみ出しても隠す */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* 画像をエリアいっぱいに自然に伸ばす */
  z-index: -1;
  /* 背景に回す */
}

.clinic-features {
  padding: var(--front-section-space) 30px;
  box-sizing: border-box;
  position: relative;
}

/* 当院の理念（.clinic-philosophy .container）と同じ幅にそろえる */
.clinic-features .container {
  max-width: 1430px;
}

.clinic-features__decoration {
  position: absolute;
  width: min(50%, 620px);
  top: -150px;
  z-index: -1;
  right: -120px;
}

.clinic-content {
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
}

h3 {
  font-size: min(1.8vw, 40px);
  color: #646868;
  margin: 0 0 20px 0px;
}

.clinic-features__heading {
  margin-bottom: 48px;
}

/* 1500px以上の .clinic-content の拡大文字サイズを継承させず、PCでは18pxに固定する */
.clinic-features__lead {
  margin-top: 48px;
  font-size: 1.125rem;
}

.clinic-feature-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2.5vw, 36px);
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* 当院についてページの「選ばれる理由」カード（.about-reason）と同じ見た目 */
.clinic-feature-card {
  position: relative;
  padding: 54px 30px 34px;
  border: 1px solid #75c7bd;
  background: rgba(255, 255, 255, 0.82);
}

.clinic-feature-card__number {
  position: absolute;
  top: -30px;
  left: 18px;
  margin: 0;
  color: #78c9bd;
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
}

.clinic-feature-card__icon {
  display: block;
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
  object-fit: contain;
}

.clinic-feature-card h3 {
  min-height: 3em;
  margin: 0 0 18px;
  color: #277b78;
  font-size: 24px;
  line-height: 1.5;
  text-align: center;
}

.clinic-feature-card p:not(.clinic-feature-card__number) {
  margin: 0 0 12px;
  color: #434b4b;
  font-size: 20px;
  line-height: 1.85;
}

.clinic-feature-card p:last-child {
  margin-bottom: 0;
}

.clinic-feature-card strong {
  background: linear-gradient(transparent 62%, #cce9e5 62%);
  color: #174f4c;
  font-weight: 700;
}

/* SP Clinic-Features-st*/

/* END SP Clinic-Features-st*/
/* END Clinic-Features-st*/
/* clinic-element-st */
.clinic-element {
  position: relative;
  overflow: hidden;
}

.clinic-element-bg {
  position: absolute;
  top: 0%;
  transform: translate(-30%, 0);
  z-index: -1;
  width: 300vw;
  height: auto;
  pointer-events: none;
}

.clinic-element-bg img {
  width: 100%;
  height: auto;
  display: block;
}

/* END clinic-element-st */
/* clinic-info-st */
.clinic-info {
  transform: scale(1);
  transform-origin: top center;
  padding: 150px 0;
  color: #6f7373;
  width: 70%;
  margin: auto;
}

.clinic-info-content {
  margin: 0 auto;
  display: flex;
  background-color: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  gap: 30px;
  justify-content: space-between;
  padding: 30px 60px;
}
.schedule {
  width: 50%;
  font-size: 14px;
}

.schedule table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  font-size: max(0.8vw, 12px);
}

.schedule th,
.schedule td {
  text-align: center;
  padding: 10px;
  color: #707070;
}

.business {
  color: #68b4b3 !important;
}

.schedule th:first-child,
.schedule td:first-child {
  text-align: center;
  padding: 15px 0px;
  width: 25%;
  color: #707070;
}

.schedule td:first-child {
}

.schedule th {
  border-bottom: 2px solid #7ab8b1;
}

.schedule tbody tr {
  border-bottom: 1px solid #94d0bf;
}

.note {
  font-size: min(0.8vw, 16px);
  color: #6f7373;
  margin: 20px 0 0;
}

.clinic-details {
  width: 45%;
  padding-left: 20px;
}

.clinic-header {
  display: flex;
  gap: 4vw;
  align-items: flex-end;
}

.clinic-details .map {
  width: 40%;
  color: #97cbca;
  padding: 0;
  text-decoration: underline;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  font-size: min(0.8vw, 16px);
}

.clinic-header img {
  width: 15%;
  height: 80%;
}

.contact-box {
  width: 100%;
}

.contact-box-p {
  border-radius: 6px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  width: 100%;
  margin: auto;
}

.contact-box a {
  text-decoration: none;
  color: #488864;
  font-size: min(1.8vw, 32px);
}

.web {
  font-size: 1vw !important;
}

.tel {
  text-align: center;
}

.tel span {
  font-size: 20px;
  color: #488864;
  margin: 0 5px;
}

.buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 10px;
}

.contact-box .btn {
  display: flex;
  align-items: center;
  padding: 1vw 3vw;
  border: 2px solid #7ab8b1;
  border-radius: 6px;
  background-color: #fff;
  color: #488864;
  text-decoration: none;
  width: 100%;
  justify-content: center;
}

.btn .icon {
  margin-right: 5px;
}

.line {
  margin-right: 5px;
  width: 16%;
}

.line img {
  width: 100%;
}

.clinic-details h2 {
  font-size: min(1.8vw, 60px);
  color: #488864;
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 0.4vw;
}

.clinic-details h2 span {
  font-size: min(0.8vw, 22px);
  color: #646868;
  padding: 0;
}

.clinic-details p {
  font-size: min(0.7vw, 20px);
  line-height: 1.8;
  color: #646868;
}

.contact-box > .buttons > .web {
  font-size: 1.4vw !important;
  width: 50% !important;
}

.reservation-notice {
  text-align: center;
  font-size: 26px !important;
  margin-top: 60px;
  position: relative;
}
.reservation-notice span {
  font-size: min(2vw, 60px);
  letter-spacing: 3px;
  margin: 0px 0px 0 0px;
}

.reservation-notice .dots span {
  font-size: min(1.4vw, 30px);
  letter-spacing: -10px;
  margin: -6px 20px 0 0;
}
.highlight {
  position: relative;
  display: inline-block;
  font-size: 22px;
  letter-spacing: 3px;
  margin: 0 6px;
}

.dots {
  position: absolute;
  top: -15px;
  left: 54%;
  transform: translateX(-52%);
  display: flex;
  gap: 0;
}

.dots span {
  font-size: 30px;
  color: #7ab8b1;
}

.dots span {
  font-size: 30px;
  color: #7ab8b1;
  margin: 0px 20px 0 0px;
}

.contact-box-inner {
  border: 2px solid #7ab8b1;
  border-radius: 6px;
  padding: 10px;
  text-align: center;
  margin: 50px 0 0;
}

/* SP Clinic-info-st */

/* END SP Clinic-info-st */
/* END Clinic-info-st */
/* clinic-treatments-st */
.treatment-section {
  padding: var(--front-section-space) 0 0;
  text-align: center;
  position: relative;
  width: 70%;
  margin: auto;
}
.treatments-content {
  width: 100%;
  margin: 0 auto;
  container-type: inline-size;
}

/* 英語あしらいは3行に分けて左・中央・右へずらして配置する。
   狭い幅でも各行が折り返さず「&」が中央の行に来るよう、見出し幅に合わせて縮める */
.treatments-title {
  display: flex;
  flex-direction: column;
  justify-self: stretch;
  font-size: min(var(--heading-en-size), 12cqi);
  line-height: 0.9;
  white-space: nowrap;
}

.treatments-title .tre-sta {
  text-align: left;
}

.treatments-title .amp {
  text-align: center;
}

.treatments-title .tre-end {
  text-align: right;
}

/* 日本語の見出しは英語あしらい全体に重ね、中央の「&」の位置に大きく置く */
.treatments-title,
.treatments-content .jp-subtitle {
  grid-row: 1 / 4;
}

.treatments-content .jp-subtitle {
  align-self: center;
  /* ページの h1（ヒーローのキャッチコピー）は超えない大きさで、1行に収まる幅（10文字＋字間）を上限にする */
  font-size: min(calc(var(--heading-2-size) * 1.12), 9.2cqi);
  white-space: nowrap;
}

/* スマホ表示 */

/* END Clinic-Treatmentso-st */
/* clinic-card-st */
.treatment-cards {
  padding: 60px 0 var(--front-section-space);
  transform: scale(0.9);
}

.card-container {
  max-width: 1430px;
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 0;
  margin: auto;
}

/* 上段・下段の行 */
.card-row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  flex-direction: row;
  position: relative;
}

.revised-bottom-row .card p {
  margin: 20px 0 16px;
}

.small-card-box {
  display: flex;
  flex: 0 1 50%;
  flex-direction: row;
}

.small-card-container {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 10px;
  width: 100%;
}

.small-row .card {
  flex: 1 1 33%;
}

/* カード共通 */
.card {
  background: #fff;
  padding: 30px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-row .card {
  flex: 0 1 50%;
}

/* 治療カード画像 */
.card .treatment-card__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin-bottom: 12px;
}

.small-card img {
  width: 100%;
  height: auto;
  margin-bottom: 8px;
}

/* カードの中身 */
.card h3 {
  font-size: 24px;
  padding: 0 0.3em;
  border-radius: 3px;
  color: #6f7373;
  background: #fff;
  position: absolute;
  margin: 10px 0 20px 10px !important;
}

.card p {
  font-size: min(1vw, 18px);
  color: #646868;
  margin: 10px 0 16px;
}
.detail-button {
  padding: 8px 16px;
  border: 1px solid #7ab9a8;
  color: #646868;
  background: transparent;
  border-radius: 24px;
  text-decoration: none;
  font-size: 20px;
  text-align: center;
  transition: 0.3s;
}

.detail-button:hover {
  background: #94d0bf;
  color: #fff;
  border: 1px solid #94d0bf;
}

/* その他の検査カード（リスト型） */
.list-card {
  padding: 24px 16px;
}

/* mediumカード */
.medium-card h3 {
  font-size: 24px;
  color: #646868;
  position: relative;
  margin: 0 !important;
}

.medium-card img {
  width: 100%;
  max-width: 320px;
  border-radius: 12px;
  margin-bottom: 20px;
}

.revised-bottom-row .list-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 30px;
}

/* リスト見た目 */
.card-last ul {
  list-style: none;
  padding-left: 0;
  margin-top: 12px;
}

.card-last ul li {
  display: flex;
  align-items: center;
  font-size: 1.125rem;
  color: #6f7373;
  padding: 10px 0;
  position: relative;
}

.card-last ul li ::after {
  content: "";
  position: absolute;
  left: 1vw;
  bottom: 0;
  width: 85%;
  height: 1px;
  background-color: #68b4b3;
}

.list-card ul li::before {
  color: #1eaba2;
  font-size: 16px;
  position: absolute;
  left: 0;
  top: 0px;
}

.card-last h3 {
  font-size: 1.75rem;
  color: #6f7373;
  position: relative;
  margin: 0 !important;
}

.icon-box {
  width: 10px;
  height: 10px;
  background-color: #61c1bc;
  border-radius: 2px;
  margin-right: 10px;
  flex-shrink: 0;
}

/* SP Clinic-card-st*/

/* END Clinic-card-st*/
/* Clinic-organ-st */
/* organ-section */
.organ-section {
  background: linear-gradient(to bottom, #e2f9ff, #95e5e3, #f2f9fb, #fff);
  position: relative;
  opacity: 0.9;
  padding: var(--front-section-space) 0;
  overflow: hidden;
}

/* トップページでは基本情報カード上下の余白を他ページより詰める */
.clinic-summary {
  margin-block: var(--front-section-space);
}

.organ-sub {
  width: 100%;
  padding: 0;
  margin: 0 auto;
}

.organ-jp-title {
  margin-bottom: 0.5em;
}

/* 臓器カード：4列×2行 */
.organ-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  max-width: 1430px;
  width: 100%;
  margin: 0 auto;
}

/* カード共通 */
.organ-card {
  background: #fff;
  border-radius: 12px;
  padding: 24px 16px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition:
    transform 0.1s ease,
    box-shadow 0.1s ease;
}

.organ-card:hover .organ-icon img {
  transform: scale(1.2);
  transition: transform 0.1s ease;
}

.organ-icon {
  background: radial-gradient(circle, #d9f1f3 40%, transparent 41%);
  border-radius: 50%;
  width: 140px;
  height: 140px;
  margin: 24px auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.organ-icon img {
  width: min(82%, 115px);
  height: min(82%, 115px);
  object-fit: contain;
  transition: transform 0.1s ease;
  /* 通常時もスムーズに戻す */
}

.organ-card h3 {
  min-height: 2.8em;
  margin: 0;
  color: #4f5656;
  font-size: clamp(1.25rem, 1.7vw, 1.65rem);
  line-height: 1.4;
  display: flex;
  align-items: center;
  justify-content: center;
}

.organ-img {
  height: 100vh;
  display: block;
  position: absolute;
  z-index: -200;
  top: 0px;
  opacity: 0.3;
  object-fit: cover;
  width: 100%;
}

.organ-container {
  max-width: 1430px;
  width: 100%;
  margin: 0 auto;
}
/* END Sp Clinic-organ-st*/
/* END Clinic-organ-st*/
/*
 * Top-page desktop readability and layout corrections.
 *
 * The original desktop rules use viewport-relative type extensively. At the
 * narrow end of the desktop breakpoint that makes important copy smaller than
 * 16px. Keep these corrections isolated from the mobile presentation and from
 * the site's lower-level pages.
 */

@media (min-width: 1800px) {
  .overlay {
    max-width: 1500px;
  }
  .clinic-info-content {
    padding: 100px 50px;
  }

  .clinic-details h2 {
    font-size: min(2vw, 60px);
  }
  .card-container {
    max-width: 1430px;
  }
  .organ-container {
    max-width: 1430px;
  }
}

@media screen and (min-width: 1500px) {
  .clinic-content {
    max-width: 1430px;
    font-size: min(2vw, 42px);
  }
}

@media screen and (min-width: 1024px) {
  /* Hero: keep the message and benefit badges readable at every PC width. */
  .hero {
    min-height: 640px;
    height: min(90vh, 900px);
  }

  .overlay {
    box-sizing: border-box;
    padding-inline: clamp(32px, 5vw, 72px);
  }

  .hero h1 {
    font-size: clamp(2.75rem, 4vw, 4.5rem);
    line-height: 1.45;
  }

  .features {
    margin-bottom: 48px;
  }

  .feature {
    width: clamp(150px, 12vw, 190px);
    height: clamp(150px, 12vw, 190px);
  }

  .feature img {
    width: clamp(64px, 5vw, 80px);
    height: clamp(64px, 5vw, 80px);
  }

  .feature p {
    font-size: 1rem;
    line-height: 1.6;
    text-align: center;
  }

  /* Header and persistent reservation bar. */
  .nav-links li,
  .nav-links a,
  .global-nav li,
  .header-organ-item span {
    font-size: 1rem;
  }

  .nav-links li {
    margin-inline: clamp(10px, 1.3vw, 24px);
    padding-block: 28px;
  }

  .contact {
    width: auto;
    max-width: calc(100% - 24px);
    padding: 8px 12px;
  }

  .contact p,
  .contact a,
  .contact .web,
  .contact .recruit {
    font-size: 1rem !important;
    line-height: 1.5;
  }

  .contact p {
    margin: 0;
    padding: 10px 16px;
  }

  .contact a[href^="tel:"] {
    font-size: 1.25rem !important;
  }

  .contact .btn {
    min-height: 44px;
    box-sizing: border-box;
    padding: 8px 18px;
  }

  .contact .recruit {
    width: auto !important;
    min-width: 7em;
  }

  /* Treatments: use the available canvas instead of scaling the whole UI. */
  .treatment-section {
    width: min(calc(100% - 48px), 1430px);
  }

  .treatment-cards {
    padding-inline: 24px;
    transform: none;
  }

  .card p,
  .card-last ul li {
    font-size: 1rem;
    line-height: 1.8;
  }

  /* Organ cards */
  .organ-section .container {
    width: min(calc(100% - 48px), 1430px);
  }

  /* Access: remove the fixed-width overflow between tablet and wide PC. */
  .access-inner {
    width: min(calc(100% - 48px), 1200px);
  }

  .access-text-grid {
    justify-content: space-between;
    gap: clamp(40px, 8vw, 160px);
  }

  .access-text-heading,
  .access-text-paragraph {
    font-size: 1rem;
    line-height: 1.8;
  }

  /* Footer: enlarge navigation and stop the 15vw margins compressing it. */
  .footer-cta-section,
  .footer-section {
    width: min(calc(100% - 48px), 1430px);
    margin-inline: auto;
  }

  .footer-cta-text,
  .footer-info li,
  .footer-search li,
  .footer-info a,
  .footer-search a,
  .footer-services .footer-tags,
  .footer-tags a,
  .footer-address,
  .footer-credit {
    font-size: 1rem;
  }

  .footer-tags.grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-tags.grid-3 a::after,
  .footer-tags.grid-2 a::after {
    display: none;
  }
}

@media screen and (max-width: 1023px) {
  body {
    font-size: 16px;
  }

  .clinic-feature-card p:not(.clinic-feature-card__number) {
    font-size: 16px;
  }

  .br-pc {
    display: none !important;
  }

  .br-sp {
    display: block !important;
  }
  /* キャッチコピーが画面の左端に付かないよう余白をとる */
  .overlay {
    box-sizing: border-box;
    padding-inline: var(--page-gutter-sp);
  }

  .hero h1 {
    /* 1行10文字が画面幅に収まる大きさにする（スマホは下の479px以下で指定） */
    font-size: clamp(2rem, 6.4vw, 3.5rem);
    margin-bottom: auto;
    text-align: left;
  }
  .container {
    width: 100%;
    padding-inline: var(--page-gutter-sp);
  }
  #header .logo-box {
    display: block;
    height: auto;
  }

  .site-logo {
    width: 100%;
    height: inherit;
  }

  .logo-sp {
    display: block;
  }

  .logo-pc {
    display: none;
  }

  .nav-links {
    display: none;
  }

  .tel-text-sp {
    font-size: 14px;
    color: #444;
  }

  .tel-number-sp {
    color: #00a2a8;
  }

  .btn-sp.web-btn-sp {
    background-color: #fff;
    border: 1px solid #00a2a8;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 14px;
    display: flex;
    align-items: center;
    color: #00a2a8;
    text-decoration: none;
  }

  .btn-sp .icon-sp {
    margin-right: 6px;
  }

  .btn-sp .icon-sp img {
    width: 18px;
    height: 18px;
  }

  .contact-sp {
    position: absolute;
    right: 0;
    text-align: right;
    display: flex;
    gap: 5px;
    width: 100%;
    background: #95d0c0;
    align-items: center;
    justify-content: center;
    bottom: auto;
  }

  .contact-sp p {
    background: #fff;
    padding: 24px 20px;
    border-radius: 8px;
    color: #6f7373;
    font-size: 38px;
  }

  .contact-sp a {
    text-decoration: none;
    color: #68b4b3;
    font-size: 40px;
  }

  .contact-sp > .buttons-sp {
    display: flex;
    gap: 5px;
    justify-content: center;
    align-items: center;
    margin: 0;
  }

  .buttons-sp a {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    font-size: 14px;
    padding: 52px 20px;
  }

  .buttons-sp a {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    font-size: 40px !important;
    padding: 54px 40px;
  }

  .buttons-sp .btn .icon {
    width: 50px;
  }

  .buttons-sp .btn .icon img {
    width: 100%;
  }

  .recruit {
    display: none !important;
  }
  .clinic-philosophy {
    padding: 27px 0 0;
  }

  .clinic-philosophy .container {
    grid-template-columns: 1fr;
    gap: 32px;
    width: 100%;
    padding: 0 var(--page-gutter-sp);
  }

  .clinic-philosophy__heading {
    position: static;
  }

  .clinic-features {
    width: 100%;
    padding: 27px 0;
    box-sizing: border-box;
    position: relative;
    margin: auto;
    max-width: 1430px;
  }
  h3 {
    font-size: 4vw;
    color: #646868;
  }
  .clinic-features__decoration {
    position: absolute;
    width: 50%;
    top: -60px;
    z-index: -100;
    right: -50px;
  }
  .clinic-features__lead {
    margin-top: 36px;
    font-size: 1rem;
  }
  .clinic-content {
    max-width: 1430px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
  }

  /* 1列表示のカードは左右に余白をとって小さめに見せる */
  .clinic-feature-list {
    grid-template-columns: 1fr;
    gap: 58px;
    box-sizing: border-box;
    padding-inline: 20px;
  }

  .clinic-feature-card h3 {
    min-height: 0;
  }

  .clinic-element-bg {
    top: 0%;
    left: -120%;
    width: 1500vw;
    height: auto;
    overflow: hidden;
  }
  .note {
    font-size: 10px;
    margin: 0 0;
  }

  .clinic-info {
    padding: 30px 10px;
    transform: scale(1);
    max-width: 1430px;
    margin: auto;
    width: 100%;
  }

  .clinic-info-content {
    flex-direction: column;
    padding: 40px 30px;
    gap: 0;
  }

  .schedule,
  .clinic-details {
    width: 100%;
    padding: 0;
  }

  .clinic-details {
    margin-top: 20px;
  }

  .contact-box-p {
    border-radius: 6px;
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 0 auto 0;
    padding: 0px 0;
    align-items: baseline;
    gap: 5px;
  }

  .contact-box-p a {
    font-size: 4.8vw;
    color: #488864;
    margin-top: 5px;
    text-decoration: none;
  }

  .contact-box-inner {
    margin: 10px 0 0px;
  }

  .contact-box .btn {
    width: 100%;
    font-size: 16px;
    padding: 10px 0;
  }

  .contact-box > .buttons > .web {
    font-size: 4vw !important;
    width: 50% !important;
  }

  .clinic-details h2 {
    font-size: 4.4vw;
    text-align: center;
    justify-content: space-between;
  }
  .clinic-details h2 span {
    display: block;
    font-size: 12px;
    text-align: center;
  }

  .clinic-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0;
  }

  .clinic-details p {
    font-size: 2.6vw;
  }

  .clinic-details .map {
    padding: 0;
    font-size: 2.8vw;
    width: 45%;
  }

  .reservation-notice {
    font-size: 14px !important;
    margin-top: inherit;
  }

  .reservation-notice span {
    font-size: 28px;
    letter-spacing: 5px;
    margin: 0px 10px 0 10px;
  }
  .reservation-notice .dots span {
    font-size: 24px;
    letter-spacing: normal;
    margin: -5px 9px 0 0px;
  }

  .dots {
    position: absolute;
    top: -15px;
    left: 45%;
    transform: translateX(-50%);
    display: flex;
    gap: 0;
  }

  .highlight {
    font-size: 20px;
  }

  .dots span {
    font-size: 29px;
  }

  .schedule table {
    font-size: 2.9vw;
    margin-bottom: 10px;
  }

  .schedule th,
  .schedule td {
    padding: 6px;
  }

  .contact-box > .buttons > a {
    font-size: 6vw !important;
  }

  .line {
    width: 25%;
  }

  .buttons .line img {
    width: 25px;
    height: 25px;
  }

  .btn .icon {
    margin-right: 0px;
  }
  .card-container {
    max-width: 1430px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    margin: auto;
  }

  .treatment-cards {
    transform: scale(1);
    padding: 20px 0 10px;
  }

  .card-row {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 100%;
    align-items: center;
    margin-bottom: auto;
  }

  .card {
    width: 100%;
    max-width: -webkit-fill-available;
    padding: 20px;
    border-radius: 16px;
    background-color: #fff;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  }

  .card img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 12px;
  }

  .card h3 {
    font-size: min(5vw, 20px);
  }

  .card p {
    font-size: 16px;
    color: #6f7373;
    margin-bottom: 14px;
    text-align: justify;
  }

  .detail-button {
    display: inline-block;
    padding: 4px 0px;
    border: 1.5px solid #7ab8b1;
    color: #488864;
    border-radius: 30px;
    font-size: 14px;
    text-decoration: none;
  }
  .revised-bottom-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    margin-top: 0;
    margin-bottom: 0;
  }

  .small-card-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    justify-content: space-between;
    gap: 5px;
  }

  .small-card img {
    border-radius: 8px;
    margin-bottom: 16px;
  }

  .small-card p {
    font-size: 14px;
    color: #6f7373;
    margin-bottom: 14px;
  }

  .small-card .detail-button {
    margin-top: 10px;
  }

  .small-card ul {
    padding-left: 0;
    list-style: none;
    text-align: left;
    margin: 0;
  }

  .card-last ul li ::after {
    content: "";
    display: none;
  }

  .small-card ul li .icon-box {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: #7ab8b1;
    border-radius: 2px;
  }

  .small-card-box {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
  }

  .small-card-box .card {
    flex: 0 0 98%;
    padding: 16px;
    box-sizing: border-box;
    height: auto;
  }

  .small-card-box .card h3 {
    font-size: min(5vw, 20px);
    text-align: left;
    top: 0;
  }

  .small-card-box .card-last h3 {
    font-size: clamp(1.375rem, 5vw, 1.5rem);
  }

  .small-card-box .medium-card img {
    width: 100%;
    border-radius: 8px;
    margin: 16px auto;
    max-width: 500px;
  }

  .small-card-box .card ul {
    text-align: left;
    padding-left: 0;
    list-style: none;
    margin: 0;
  }

  .small-card-box .card ul li {
    font-size: clamp(1rem, 4vw, 1.125rem);
    margin-bottom: 0px;
  }

  .small-card ul li {
    position: relative;
    margin-bottom: 10px;
    font-size: 14px;
    color: #646868;
    padding-bottom: 6px;
    align-items: center;
  }

  .icon-box-inline::before {
    content: "";
    border: 1px solid #cfe3e6;
    width: 85%;
    left: 11vw;
  }

  .icon-box-top::before {
    content: "";
    border: 1px solid #cfe3e6;
    width: 75%;
    left: 7vw !important;
    top: 10vw !important;
  }
  .icon-box-bottom::before {
    content: "";
    border: 1px solid #cfe3e6;
    width: 85%;
    left: 10vw;
  }

  .list-card ul li::before {
    width: 75%;
    color: #1eaba2;
    font-size: 16px;
    position: absolute;
    left: 7vw;
    top: 9vw;
  }

  .small-card-box .card ul li .icon-box {
    position: relative;
    width: 14px;
    height: 14px;
    background-color: #7ab8b1;
    border-radius: 2px;
  }

  .small-card-box .detail-button {
    padding: 4px 0;
    font-size: 14px;
    width: auto;
    margin: 0;
  }

  .card-last h3 {
    font-size: 20px;
    color: #646868;
    position: relative;
    margin: 0 !important;
  }
  .organ-jp-title {
    margin: 0 0 0.5em;
  }

  .organ-container {
    max-width: 100%;
    width: 100%;
    margin: auto;
  }

  .organ-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .organ-card {
    padding: 10px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .organ-section {
    padding: 13px 0;
    height: auto;
  }

  .organ-sub {
    padding: 13px 0 0;
  }

  .organ-icon {
    width: min(20vw, 88px);
    height: min(20vw, 88px);
    margin: 10px auto 0;
  }

  .organ-icon img {
    width: min(18vw, 72px);
    height: min(18vw, 72px);
  }

  .organ-card h3 {
    font-size: clamp(1.25rem, 5vw, 1.6rem);
  }

  .organ-img {
    height: auto;
  }
}

@media screen and (max-width: 479px) {
  .clinic-feature-card {
    padding-inline: 18px;
  }

  .treatments-content,
  .clinic-content {
    min-width: 0;
  }
  .card-container,
  .small-card-box {
    width: 100%;
  }
  .buttons a {
    min-height: 44px;
  }
  .treatment-section {
    padding: 20px 0 0;
    width: 100%;
  }

  .card-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* 上段と下段の間も、行内のカード同士と同じ間隔にそろえる */
    gap: 5px;
    margin: 0;
  }

  .small-card-box .medium-card img {
    width: 100%;
    border-radius: 8px;
    margin: 36px auto;
    max-width: 500px;
  }

  .small-card-box .detail-button {
    padding: 8px 20px;
    font-size: 1rem;
    width: 80%;
    margin: auto;
  }

  .treatments-content {
    max-width: 1430px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
  }

  .hero {
    width: 100%;
    height: auto;
    min-height: max(600px, 100svh);
  }

  /* ヒーローの高さは内容で決まるため、スライダーは高さ指定に頼らず全面に重ねる */
  .hero .hero-slider {
    position: absolute;
    inset: 0;
    height: auto;
  }

  .hero .logo-box {
    top: 16px;
    left: 16px;
    width: clamp(200px, 58vw, 260px);
  }

  .feature p {
    font-size: 1rem;
    color: #6f7373;
  }

  /* 文字とアイコンを通常の流れに置き、ヒーローの高さに含める */
  .overlay {
    position: relative;
    top: auto;
    left: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    box-sizing: border-box;
    width: 100%;
    /* ヒーローと同じ高さにし、ラベルを画面の下のほうへ寄せる */
    min-height: max(600px, 100svh);
    /* キャッチコピーを画面上部20%あたりに置く */
    padding: 20svh 16px 80px;
    margin: auto;
    transform: none;
  }

  .hero__copy {
    /* 下のラベルとの最低限の間隔もここで確保する */
    margin-bottom: clamp(48px, 9svh, 80px);
  }

  .hero__lead {
    margin-top: 20px;
    font-size: clamp(0.875rem, 3.8vw, 1rem);
  }

  .hero h1 {
    margin: 0;
    font-size: clamp(1.75rem, 8vw, 2rem);
    line-height: 1.55;
    text-align: left;
    white-space: nowrap;
  }

  .features {
    gap: 8px;
    justify-content: center;
    width: 100%;
    margin: auto auto 0;
  }

  /* 縦長の角丸ラベル：アイコン、見出し（後半を大きく強調）、区切り線、英語の添え字 */
  .feature {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    margin-left: 0;
    padding: 20px 4px 22px;
    border: 1px solid #fff;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 6px 18px rgba(23, 123, 128, 0.12);
    box-sizing: border-box;
  }

  .feature img {
    width: clamp(56px, 16vw, 68px);
    height: clamp(56px, 16vw, 68px);
    padding: 6px;
    border-radius: 50%;
    background: #eef8f7;
    box-sizing: border-box;
  }

  .feature p {
    width: 100%;
    margin: 0;
    color: #4a5252;
    font-size: clamp(0.75rem, 3.4vw, 0.875rem);
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
  }

  .feature .feature__lead {
    color: inherit;
  }

  .feature .feature__key {
    display: block;
    color: #177b80;
    font-size: clamp(0.9375rem, 4.6vw, 1.25rem);
    letter-spacing: 0.04em;
    line-height: 1.4;
  }

  .feature .feature__en {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #6f7373;
    font-size: 0.5625rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    line-height: 1.2;
    text-transform: uppercase;
  }

  .feature__en::before {
    content: "";
    width: 18px;
    height: 2px;
    background: #177b80;
  }

  .contact {
    width: 100%;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px 8px;
    border-radius: 0;
    flex-direction: column;
  }

  .contact > .buttons {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 3px;
    width: 100%;
  }

  .contact p {
    width: 80%;
    font-size: 3.5vw;
    padding: 6px;
    margin: 10px 0;
    align-items: center;
    gap: 1vw;
  }

  .buttons a {
    width: auto;
    padding: 0;
    font-size: 5vw !important;
  }

  .buttons .icon img {
    width: 22px;
    height: 18px;
  }

  .buttons .web {
    padding: 15px 0;
    font-size: 1rem !important;
    gap: 0.5vw;
  }
  .contact-span-sp {
    text-align: justify;
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slider__slide {
    transition-duration: 0s;
  }

  .web,
  .nav-links a,
  .organ-card,
  .organ-card img {
    transition: none;
  }
}
