@charset "utf-8";
/* ======= Smartphone styles (≤ 767.98px) ======= */

/* 横スクロール抑止（フルブリード要素・ナビ退避のはみ出し対策） */
html, body { overflow-x: hidden; }
:root { --container: 100vw; }

html, body { min-width: 0; }
body { font-size: 15px; }
.fixed-side-actions { display: none; }

body {
  padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
}

.fixed-bottom-actions {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 105;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: var(--c-contact);
  box-shadow: 0 -5px 18px rgba(30, 30, 30, .18);
  transition: opacity .2s ease;
}

.fixed-bottom-action {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 64px;
  padding: 8px 4px;
  border-right: 1px solid rgba(255, 255, 255, .38);
  border-radius: 0;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: .02em;
  text-align: center;
  white-space: nowrap;
}

.fixed-bottom-action:last-child { border-right: 0; }
.fixed-bottom-action--requirements { background: var(--c-requirements); }
.fixed-bottom-action--apply { background: var(--c-apply); }
.fixed-bottom-action--contact {
  flex-direction: column;
  gap: 1px;
  background: var(--c-contact);
}
.fixed-bottom-contact-label {
  font-size: 10px;
  font-weight: 600;
  line-height: 1.2;
}
.fixed-bottom-contact-phone {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: .02em;
}

body.nav-open .fixed-bottom-actions,
body.nav-closing .fixed-bottom-actions {
  opacity: 0;
  pointer-events: none;
}
.container { width: 92vw; margin: 0 auto; }
.k-container { width: 92vw; margin: 0 auto; }

/* Header / Hamburger / GlobalNav（全画面オーバーレイ） */
.header-wrap { height: 56px; position: relative; }
/* ロゴ枠のサイズ（横幅は端末に合わせて上限を設定する例） */
.logo {
  height: 50px;
  width: min(52vw, 280px);  /* 例：画面幅の約半分か280pxの小さい方 */
}

/* 画像は枠内で比率維持して収まる */
.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* 右上固定（前ターンの指定があればそのままでOK） */
.hamburger{
  display: block;
  position: fixed;
  top: calc(13px + env(safe-area-inset-top, 0px));
  right: 16px;
  transform: none;
  width: 44px;
  height: 44px;
  border-radius: 3px;
  background: #ec75a2;
  z-index: 110;
}

/* 線色：白背景でもピンクで視認性を確保（開閉とも同色でOK） */
.hamburger span{ background: #b84e76; }

/* 3本線→× のアニメ（既存の style.css の transform 指定が効きます） */
/* body.nav-open .hamburger span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
   body.nav-open .hamburger span:nth-child(2){ opacity: 0; }
   body.nav-open .hamburger span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); } */


body.nav-open .hamburger{
  /* background: transparent;     ピンクのオーバーレイに馴染ませる */
  border-color: rgba(255,255,255,.35);
  box-shadow: none;
}
body.nav-open .hamburger span{
  background: #fff;            /* × の線は白に */
}

/* 3本線→× のアニメ（style.css の変形をそのまま利用） */
/* 既に style.css にある以下の変形が効きます：
   body.nav-open .hamburger span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
   body.nav-open .hamburger span:nth-child(2){ opacity: 0; }
   body.nav-open .hamburger span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }
*/

/* これまでの nav#globalNav の transform/translateX 指定を削除し、以下に置換 */
nav#globalNav {
  position: fixed;
  inset: 0;                   /* 100vw x 100vh を完全に覆う */
  width: 100vw;
  height: 100vh;
  background: #fff;           /* 白で下層を完全に隠す */
  color: #b84e76;             /* テキストは濃いピンクで */
  display: flex;
  flex-direction: column;
  padding: 88px 24px 32px;    /* 上はヘッダー分 + 余白 */
  gap: 16px;
  opacity: 0;                 /* フェード制御 */
  visibility: hidden;
  pointer-events: none;
  transition: opacity .28s ease;  /* ← フェードイン */
  z-index: 100;
}
body.nav-open nav#globalNav {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
body.nav-open { overflow: hidden; }   /* オーバーレイ中の背面スクロール禁止 */

/* メニュー項目（縦1列） */
nav#globalNav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
	text-align: center;
}

/* テキストのみ（罫線/影なし、PC同様カラー）※募集要項以外 */
/* 1) 通常リンク（nav-cta以外）をセンタリング */
nav#globalNav a:not(.nav-cta) {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 0;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  color: #1a1a1a !important;
  font-weight: 700;
  text-align: center;           /* ← 追加：中央揃え */
}

/* 2) 「募集要項」はフル幅をやめてボタンサイズに */
nav#globalNav a.nav-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: auto;                  /* ← 追加：フル幅解除 */
  padding: 10px 44px;
  text-align: center;
  background: var(--c-requirements);
  color: #fff;
  box-shadow: 0 10px 22px rgba(47,128,197,.35);
  border: none;
  border-radius: 3px;
  margin-top: 30px;
  font-weight: 800;
  align-self: center;           /* ← 追加：縦並びの中央に配置 */
}
nav#globalNav a.nav-cta > .recruitment-link-arrow {
  position: absolute;
  right: 16px;
}

nav#globalNav a.nav-cta--apply {
  background: var(--c-apply);
  box-shadow: 0 10px 22px rgba(236,117,162,.35);
}

nav#globalNav .nav-cta-item--apply .nav-cta {
  margin-top: 0;
}


/* ハンバーガー：3本線/× ともに白 */
.hamburger span { background: #ffffff !important; }
body.nav-open .hamburger span { background: #ffffff !important; }

/* 閉じるボタン（右上固定） */
nav#globalNav .nav-close{
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.5);
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  display: grid; place-items: center;
  box-shadow: 0 4px 12px rgba(0,0,0,.25);
}

/* 横スクロール抑止（フルブリード要素のはみ出し対策） */
html, body { overflow-x: hidden; }

/* ===== フェードで閉じる用の“閉じ中”状態 ===== */
/* 開いている間：body.nav-open …（既存）
   閉じはじめ：body.nav-closing … ここで opacity だけ 0 にして visibility は維持 */
body.nav-closing nav#globalNav{
  opacity: 0;
  visibility: visible;
  pointer-events: none; /* クリックは無効化 */
  transition: opacity .28s ease; /* 開く時と同じ時間で */
}

/* 閉じ中も背景スクロール禁止（開いている時と同等） */
body.nav-open,
body.nav-closing{
  overflow: hidden;
}


/* Hero */
.hero-bg { height: 420px; }
.hero-copy .copy-wrap { width: 92vw; }
/* SPでのみ改行させる */
.sp-br { display: inline; } /* br要素なので display指定はあってもOK（改行として効きます） */

/* ヒーローの文字サイズをvw基準で可変（下限/上限つき） */
.hero-title{
  font-size: clamp(20px, 7vw, 34px);
  line-height: 1.6;
}
.hero-sub{
  font-size: clamp(13px, 4.2vw, 18px);
  line-height: 1.9;
}
.hero-sub-sp-break { display: inline; }
/* hero-copy（テキスト）を前面、hero-logo（ロゴ）を背面へ */
.hero-copy{ z-index: 2; }
.hero-logo{ z-index: 1; }



/* News */
.news {
  width: 100%;
  padding: 36px 4vw;
}
.news-layout {
  width: 100%;
  min-height: 0;
  margin: 0;
  grid-template-columns: minmax(0, 1fr);
  row-gap: 30px;
}
.news-summary {
  align-items: center;
  justify-self: center;
  width: auto;
  max-width: 100%;
  margin: 0 auto;
  text-align: center;
}
.news-summary .section-title {
  margin: 8px 0 0;
  font-size: 32px;
}
.news-summary .eyebrow { margin-left: 0; font-size: 16px; }
.news-more {
  grid-column: 1;
  margin-top: 20px;
  text-align: center;
}
.news-more .btn-outline {
  width: 180px;
  min-height: 45px;
  padding: 8px 16px;
  white-space: nowrap;
}
.news-list {
  width: 100%;
  border-top: 1px dashed #d9d9d9;
}
.news-row {
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
  min-height: 0;
  padding: 16px 0;
}
.news-row:last-child { border-bottom: 0; }
.news-date { font-size: 14px; }
.news-title { font-size: 16px; font-weight: 500; line-height: 1.7; }

/* ===== About（SPでもPC同様：縦長3枚を横並び＋順次フェードイン） ===== */


/* 当院の魅力 */
.feature { padding: 48px 0; }
.feature-heading-en { font-size: 16px; }
.feature-heading h2 {
  margin-top: 8px;
  font-size: 30px;
}
.feature-list {
  row-gap: 48px;
  margin-top: 38px;
}
.feature-card,
.feature-card--long {
  width: 92vw;
  min-height: 0;
  margin-left: 4vw;
  padding: 0;
}
.feature-photo {
  inset: 0 -4vw 0 18vw;
  min-height: 100%;
  border-radius: 12px 0 0;
}
.feature-photo::after {
  background: linear-gradient(90deg,
    rgba(255,255,255,.82) 0%,
    rgba(255,255,255,.70) 50%,
    rgba(255,255,255,0) 100%);
}
.feature-content {
  width: 100%;
  max-width: none;
  padding: 0;
}
.feature-number { font-size: 40px; }
.feature-title {
  margin: 14px 0 0;
  font-size: 21px;
  line-height: 1.55;
}
.feature-title span { padding: 4px 8px; }
.feature-text {
  width: 100%;
  max-width: none;
  margin-top: 24px;
  padding: 0 8px;
  font-size: 14px;
  line-height: 2;
  letter-spacing: .04em;
}
.feature-text p { margin-bottom: 12px; }


/* Videos */
.videos { padding: 48px 0 110px; }
.video-grid { gap: 24px; }
.video-title { font-size: 24px; }
.video-cast { font-size: 20px; text-align: left; margin-bottom: 20px; }

.grad-a, .grad-b { width: 100%; margin: 0; padding-bottom: 20px; }
.grad-a {margin-bottom: 70px;}
.video-head { margin: 0 0 16px; padding-right: 0; }
.grad-b .video-title { padding-left: 0; }
.ytbox { width: 100%; }

.grad-b .ytbox {
  margin-left: 0;
}

.grad-b .video-head {
  padding-right: 0;
}

/* 数字で見る当院の魅力 */
.facts { padding: 48px 0 56px; }
.facts-kicker { font-size: 16px; }
.facts-heading h2 {
  margin-top: 8px;
  font-size: 28px;
}
.fact-grid {
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  margin-top: 32px;
}
.fact {
  --fact-head-width: 160px;
  min-height: 158px;
  padding: 20px 18px 16px;
  border-right: 0;
  border-bottom: 0;
}
.fact:not(:nth-child(3n)) {
  border-right: 0;
}
.fact:not(:last-child) {
  border-bottom: 1px dashed #d8d8d8;
}
.fact .head { font-size: 15px; }
.fact .body > div {
  grid-template-columns: var(--fact-head-width) minmax(0, 1fr) auto;
  min-height: 78px;
}
.fact .icon {
  width: var(--fact-head-width);
  height: 66px;
}
.fact .icon img {
  width: 50px;
  height: 50px;
}
.fact .value { font-size: 54px; }
.fact .unit {
  margin: 0 0 9px 4px;
  font-size: 16px;
}
.fact .value-word {
  grid-column: 2 / 4;
  font-size: 38px;
}
.fact .value-ring {
  width: 76px;
  height: 76px;
  font-size: 20px;
}
.fact .value-ring--long {
  font-size: 20px;
  line-height: 1.15;
}
.fact .desc {
  margin-top: 30px;
  padding-left: 0;
  font-size: 14px;
  line-height: 1.7;
  text-align: left;
}

/* 募集要項 */
.recruitment { padding: 64px 0 80px; }
.recruitment-heading { margin-bottom: 46px; }
.recruitment-kicker { font-size: 16px; }
.recruitment-heading h2 {
  margin-top: 8px;
  font-size: 30px;
}
.recruitment-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 54px;
}
.recruitment-card {
  min-height: 0;
}
.recruitment-card-heading { margin: 14px 0 0; }
.recruitment-card-heading h3 {
  font-size: 24px;
}
.recruitment-en {
  font-size: 14px;
}
.recruitment-photo {
  height: auto;
  aspect-ratio: 4 / 3;
}
.recruitment-body { padding: 15px 0 0; }
.recruitment-body p {
  margin-bottom: 24px;
  font-size: 14px;
  line-height: 1.8;
}
.recruitment-link {
  width: 190px;
  min-height: 48px;
  padding-inline: 42px;
}


/* Guide */
.guide { padding: 60px 0 80px; }
.guide-grid { grid-template-columns: 1fr; }
.guide-card img { height: 200px; }

/* Jobs */
.jobs { padding: 56px 0; }
.job-list { gap: 16px; }
.job { grid-template-columns: 1fr; gap: 10px; padding: 12px 0; }
.job .img { height: 160px; }
.job .txt { padding-right: 0; }
.job h3 { font-size: 22px; }
.job p { font-size: 15px; line-height: 1.9; }
/* 旧：記事最下部の線は使わない */
.job::after { content: none !important; }

/* 線を「写真の下部」に被せる（SP） */
.job .img { position: relative; }
.job .img::after{
  content: "";
  position: absolute;
  bottom: 8px;           /* ← 上部→下部へ（SPは少し詰める） */
  left: 10px;
  right: 0;
  height: 1px;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,.92) 0 110px,
    #e0e5ea 110px 100%
  );
}

/* SPの job レイアウト：1行目=img, 2行目=txt+arrow */
.job{
  display: grid;
  grid-template-columns: 1fr auto;       /* ← txt / arrow */
  grid-template-areas:
    "img  img"
    "txt  arrow";
  gap: 10px;
}

/* それぞれの配置 */
.job .img   { grid-area: img; }
.job .txt   { grid-area: txt; align-self: center; }
.job .arrow { grid-area: arrow; align-self: center; }

/* 既存のPC用絶対配置を無効化（SPのみ） */
.job .arrow{
  position: static !important;
  transform: none !important;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(90deg, var(--c-primary), var(--c-primary-2));
  color: #fff;
  font-weight: 900;
  text-decoration: none;                /* リンク化対策 */
  margin-left: 10px;                    /* txtとの距離 */
}
/* カード全体をクリック可能にする透明ヒットエリア */
.job { position: relative; }
.job .job-hit{
  position: absolute;
  inset: 0;                /* 記事全体を覆う */
  z-index: 3;              /* 上に置いてクリック拾う（視覚は透明） */
  background: transparent;
  text-decoration: none;
  /* アクセシビリティ（キーボードフォーカス見えるように） */
  outline: none;
}
.job .job-hit:focus-visible{
  outline: 3px solid #f5b5c5;
  outline-offset: 4px;
  border-radius: 12px;     /* 角丸はお好みで */
}

/* 見た目（丸矢印）はそのまま。ボタンらしくカーソル */
.job .arrow{ cursor: pointer; }

/* クリック時の小さなフィードバック（任意） */
.job:active { transform: translateY(0.5px); }


/* Voices（フルブリード維持、余白調整） */
.slider {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 0 72px; /* 矢印下に画像が被らない余白 */
}
.track { gap: 18px; }
.voice { min-width: 82vw; max-width: 82vw; flex-basis: 82vw; }
.voice .thumb { height: 48vw; }
.slider .btn { width: 56px; height: 56px; font-size: 0; }
.slider .btn[data-prev] { left: 16px; }
.slider .btn[data-next] { right: 16px; }

/* CTA */
.jobs-cta { padding: 80px 0 100px; }
.job-cta-grid { grid-template-columns: 1fr; gap: 16px; }
.job-cta { padding: 20px; }
.job-cta .jp { font-size: 22px; }
.job-cta .en { font-size: 14px; }

/* Footer */
.footer-wrap { padding: 72px 0; }
.footer-top { grid-template-columns: 1fr; gap: 24px;  background-position: bottom center !important; /* 既存の top を上書き */
  background-repeat: no-repeat;
  background-size: cover; }
.footer-logo img { width: 240px; }
.footer-links { width: 100%; }
.footer-links ul { width: 100%; }

/* トップページフッター */
.site-footer .footer-gallery {
  margin-bottom: -82px;
  padding-top: 46px;
  background: linear-gradient(to bottom, #fffaf2 0 calc(100% - 82px), transparent calc(100% - 82px));
}
.site-footer .footer-gallery-track {
  animation-duration: 28s;
}
.site-footer .footer-gallery-group {
  gap: 14px;
  padding-right: 14px;
}
.site-footer .footer-gallery-item {
  width: 244px;
  aspect-ratio: 1.48 / 1;
  border-radius: 12px;
}
.site-footer .footer-gallery-item:nth-child(even) {
  margin-top: 28px;
}
.site-footer .footer-gallery-group--clone .footer-gallery-item:nth-child(odd) {
  margin-top: 0;
}
.site-footer .footer-gallery-group--clone .footer-gallery-item:nth-child(even) {
  margin-top: 28px;
}
.site-footer .footer-main {
  padding-top: 142px;
}
.site-footer .footer-wrap {
  padding: 0 0 52px;
}
.site-footer .footer-top {
  display: block;
  background: none !important;
}
.site-footer .footer-brand {
  align-items: center;
  width: 100%;
  gap: 26px;
}
.site-footer .footer-action-buttons {
  flex-direction: column;
  gap: 14px;
}
.site-footer .footer-contact {
  font-size: 14px;
  text-align: center;
}
.site-footer .footer-logo {
  display: flex;
  justify-content: center;
  width: 100%;
}
.site-footer .footer-logo img {
  width: min(290px, 100%);
}
.site-footer .footer-navigation-area {
  align-items: center;
  margin-top: 54px;
}
.site-footer .footer-links {
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: 0;
  text-align: center;
}
.site-footer .footer-links ul {
  width: auto;
  text-align: center;
}
.site-footer .footer-links li,
.site-footer .footer-links li:last-child {
  margin-bottom: 16px;
}
.site-footer .footer-links a {
  font-size: 14px;
}
.site-footer .footer-apply-button,
.site-footer .footer-clinic-button {
  min-height: 54px;
  font-size: 14px;
}
.site-footer .footer-apply-button {
  width: 240px;
  max-width: 100%;
  min-height: auto;
  padding: 16px 38px;
  font-weight: 800;
}
.site-footer .footer-clinic-button {
  width: fit-content;
  align-self: center;
  margin-top: 16px;
}
.site-footer .footer-bottom-inner {
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  min-height: 0;
  padding-top: 11px;
  padding-bottom: calc(22px + env(safe-area-inset-bottom));
}
.site-footer .footer-bottom-inner a {
  align-self: center;
  text-align: center;
}
.site-footer .footer-bottom-inner small {
  align-self: center;
  width: 100%;
  margin-top: 30px;
  font-size: 11px;
  text-align: center;
}

.privacy-hero {
  min-height: 180px;
  padding: 0;
}
.privacy-hero-kicker {
  bottom: calc(100% + 7px);
  font-size: 12px;
}
.privacy-hero h1 {
  font-size: 27px;
  line-height: 1.5;
}
.privacy-policy {
  padding: 44px 0 68px;
}
.privacy-policy-intro {
  margin-bottom: 34px;
  font-size: 15px;
  line-height: 1.9;
}
.privacy-policy-item {
  padding: 24px 0;
}
.privacy-policy-item h2 {
  margin-bottom: 10px;
  font-size: 18px;
}
.privacy-policy-item p {
  font-size: 14px;
  line-height: 1.9;
}
.privacy-page .site-footer .footer-main {
  padding-top: 52px;
}

#pagetopwrap #pagetop {
  bottom: calc(112px + env(safe-area-inset-bottom, 0px));
}

/* Closing */
.closing .img { height: 50vh; border-radius: 0;}
/* ===== Closing（SP）：キャプションを幅100vw＆一行表示 ===== */
.closing .caption{
  top: 8vh;                 /* 最上部から30pxに固定 */
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  max-width: 100vw;
  box-sizing: border-box;
  padding: 0 4vw;
  text-align: center;
  /* もと white-space: nowrap; */
  white-space: wrap;
  font-size: clamp(14px, 5.2vw, 22px);
  line-height: 1.3;
}

/* 文字アニメ用の各文字spanが折り返し要因にならないよう念のため */
.closing .caption .char{
  white-space: inherit;         /* 親の nowrap を継承 */
}



.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 30px;
		flex-wrap: wrap;

}

.sec-head .desc {
  width: 100%;
  text-align: left;
  font-size: 16px;
  line-height: 1.8;
	margin-top: 0;
}


.section-title {
  font-size: 36px;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--c-section-title);
  line-height: 1.4;
	margin: 10px 0 0 0;
}

/* ヘッダー本体は固定せず、ハンバーガーボタンのみ固定表示 */
header{
  position: relative !important;
  top: auto;
  left: auto;
  right: auto;
  z-index: 50;
  background: #fff;
  backdrop-filter: none;
  border-bottom: 1px solid #fcecf1;
}

/* ヘッダーが通常フローに戻るため、固定ヘッダー用の余白を解除 */
body{
  padding-top: 0;
}

/* ロゴの上下に余白を確保 */
.header-wrap{
  height: auto;
  min-height: 50px;
  padding-top: calc(10px + env(safe-area-inset-top, 0px));
  padding-bottom: 10px;
  position: relative;
  align-items: center;
}

/* ロゴを見やすく（高さ基準で拡大） */
.logo { height: 50px; display: flex; align-items: center; }
.logo img{
  width: 100% !important;
  height: auto;
  max-height: 50px;
  object-fit: contain;
  object-position: left center;
  display: block;
}




