/* さくらメディカル：ヘッダー・FV・追従ボタン（平川型） */
/* =========================================================
   さくらメディカル FV 試作
   ・写真：images/fv-staff.png（背景を透過したスタッフ切り抜き）を置くと表示
   ・数字・ロゴ：○○ の箇所を差し替え
   ========================================================= */
:root {
  --smf-pink: #f76552;      /* メイン（コーラル） */
  --smf-pink-d: #e0503e;
  --smf-pink-l: #fbe7e3;    /* 淡いピンク */
  --smf-rose: #ffb3a6;
  --smf-brown: #6b4f4f;     /* 文字（茶） */
  --smf-cream: #fafaf0;
}
.smh, .smh *, .smh-drawer, .smh-drawer *, .smh-tab, .smh-tab *, .smf-subbar, .smf-subbar *, .smf-fv, .smf-fv *, .smf-spbar, .smf-spbar * { box-sizing: border-box; }
.smh, .smh-drawer, .smh-tab, .smf-subbar, .smf-fv, .smf-spbar { font-family: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif; color: var(--smf-brown); }

/* ---------- 仮ヘッダー（確認用・本番はテーマのヘッダー） ---------- */

/* ---------- ヘッダー（平川型） ---------- */
.smh { position: relative; z-index: 70; display: flex; align-items: stretch; width: 100%; height: 96px; background: #fff; border-bottom: 1px solid #efe3e0; }
.smh__logo { display: flex; align-items: center; padding: 0 36px; border-right: 1px solid #efe3e0; flex: 0 0 auto; }
.smh__logo img { display: block; width: 330px; height: auto; }
.smh__nav { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.smh__menu { display: flex; flex: 1; margin: 0; padding: 0; list-style: none; border-bottom: 1px solid #efe3e0; }
.smh__menu li { flex: 1; border-right: 1px solid #efe3e0; }
.smh__menu a { display: flex; align-items: center; justify-content: center; height: 100%; padding: 0 8px; color: var(--smf-brown); font-size: 15px; font-weight: 700; letter-spacing: .06em; text-decoration: none; white-space: nowrap; transition: color .2s, background .2s; }
.smh__menu a:hover { color: var(--smf-pink); background: #fff7f5; }
.smh__sub { height: 32px; display: flex; align-items: center; justify-content: flex-end; padding: 0 28px; }
.smh__sub a { position: relative; padding-left: 14px; color: var(--smf-brown); font-size: 13px; font-weight: 700; text-decoration: none; }
.smh__sub a::before { content: ""; position: absolute; left: 0; top: 50%; margin-top: -5px; border: 5px solid transparent; border-right: 0; border-left: 8px solid var(--smf-pink); }
.smh__shop {
  flex: 0 0 230px; display: flex; align-items: center; justify-content: center; gap: 12px;
  background: repeating-linear-gradient(135deg, #fde6e1 0 6px, #fff1ee 6px 12px);
  color: var(--smf-brown); text-decoration: none; transition: filter .2s;
}
.smh__shop:hover { filter: brightness(.97); }
.smh__shop svg { width: 34px; height: 34px; color: var(--smf-pink); }
.smh__shop strong { display: block; font-size: 19px; font-weight: 900; letter-spacing: .06em; }
.smh__shop small { display: block; font-size: 13px; font-weight: 700; text-align: center; }
.smh__toggle { display: none; }
.smf-fv__clip { display: contents; }
/* テーマの既存要素との調整 */
.smh a, .smh-drawer a, .smh-tab, .smf-spbar a { text-decoration: none; }
.smh__menu li::before, .smh-drawer li::before { display: none; }
.smh-drawer { display: none; }

/* 追従タブ（PC） */
.smh-tab {
  position: fixed; z-index: 65; top: 110px; right: 0;
  display: flex; align-items: center; gap: 10px;
  padding: 14px 26px 14px 18px;
  border: 4px solid #fff; border-right: 0; border-radius: 40px 0 0 40px;
  background: var(--smf-pink); color: #fff;
  font-size: 18px; font-weight: 900; letter-spacing: .08em; text-decoration: none;
  box-shadow: 0 4px 14px rgba(0,0,0,.15);
  transition: padding .2s;
}
.smh-tab:hover { padding-right: 34px; }
.smh-tab__icon { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: #fff; color: var(--smf-pink); font-size: 16px; }
@media (max-width: 1180px) {
  .smh__logo { padding: 0 20px; }
  .smh__logo img { width: 240px; }
  .smh__menu a { font-size: 13px; letter-spacing: .02em; }
  .smh__shop { flex-basis: 180px; }
}

/* ---------- サブ帯 ---------- */
.smf-subbar {
  width: 100%;
  padding: 12px 40px;
  background: #fff;
  border-bottom: 1px solid #f1e4e1;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .04em;
}
.smf-subbar h1 { margin: 0; font-size: inherit; font-weight: inherit; }

/* ---------- FV本体 ---------- */
.smf-fv {
  position: relative;
  width: 100%;
  min-height: 680px;
  overflow: hidden;
  /* 左側：斜めストライプの淡いピンク */
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.55) 0 6px, rgba(255,255,255,0) 6px 14px),
    linear-gradient(90deg, #fde0e2 0%, #f9c6cb 100%);
}
/* 右側の大きな円（グラデ） */
.smf-fv::before {
  content: "";
  position: absolute;
  top: -18%;
  left: 31%;
  width: 1400px;
  height: 1400px;
  border-radius: 50%;
  background: radial-gradient(circle at 28% 32%, #fff2f4 0%, #ffc9d2 28%, #ff9fb1 55%, #f5748d 78%, #e8557a 100%);
  box-shadow: 0 0 0 26px rgba(255,255,255,.35), 0 0 120px rgba(232,85,122,.35);
  z-index: 0;
}
/* 下部の円弧（次のセクションへのつなぎ） */
.smf-fv::after {
  content: "";
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -120px;
  height: 200px;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  background: #fff;
  z-index: 3;
}

.smf-fv__inner {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 52px 40px 120px;
  display: flex;
  align-items: flex-start;
}
.smf-fv__text { position: relative; z-index: 4; width: 62%; }

/* キャッチ */
.smf-fv__catch {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  color: #3d2626 !important;
  text-shadow: 0 0 2px #fff, 0 0 8px rgba(255,255,255,.95), 0 0 18px rgba(255,255,255,.8);
  margin: 0 0 30px;
  font-size: clamp(30px, 3.3vw, 46px);
  font-weight: 900;
  line-height: 1.65;
  white-space: nowrap;
  letter-spacing: .06em;
  color: var(--smf-brown);
}
.smf-fv__catch em { font-style: normal; color: var(--smf-pink); }

/* 実績バッジ（受領画像をそのまま配置） */
.smf-badges { display: flex; gap: 12px; margin: 0 0 22px; padding: 0; list-style: none; }
.smf-badges li { width: 184px; margin: 0; padding: 0; list-style: none; }
.smf-badges img { display: block; width: 100%; height: auto; filter: drop-shadow(0 6px 10px rgba(150,40,40,.18)); }

/* ロゴ枠（提携・メディア掲載など） */
.smf-partner { display: flex; align-items: center; gap: 16px; margin: 0 0 26px; }
.smf-partner__logo { flex: 0 0 auto; }
.smf-partner__logo img { display: block; height: 78px; width: auto; }
.smf-partner__text { margin: 0; font-size: 16px; font-weight: 900; line-height: 1.5; }
.smf-partner__text small { display: block; font-size: 12px; font-weight: 700; }

/* CTA */
.smf-cta {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  padding: 20px 34px 20px 44px;
  border-radius: 60px;
  background: var(--smf-pink);
  box-shadow: 0 6px 0 var(--smf-pink-d);
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: .06em;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s;
}
.smf-cta:hover { transform: translateY(3px); box-shadow: 0 3px 0 var(--smf-pink-d); }
.smf-cta__icon {
  width: 34px; height: 34px; border-radius: 50%; background: #fff; position: relative; flex: 0 0 34px;
}
.smf-cta__icon::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px;
  border-top: 3px solid var(--smf-pink); border-right: 3px solid var(--smf-pink);
  transform: translate(-65%, -50%) rotate(45deg);
}
.smf-fv__note { margin: 22px 0 0; font-size: 12px; font-weight: 500; }

/* 写真（スタッフ切り抜き） */
.smf-fv__photo {
  position: absolute;
  z-index: 2;
  right: max(0px, calc((100% - 1280px) / 2));
  bottom: 0;
  width: 46%;
  max-width: 680px;
  height: 92%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.smf-fv__photo img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; object-position: bottom; }
/* 人物画像が入ったとき：高さ基準で大きく見せる（右端は少し切れてOK） */
.smf-fv__photo.has-img { justify-content: flex-end; overflow: visible; }
.smf-fv__photo--pc.has-img { width: 60%; height: 78%; max-width: none; right: max(-40px, calc((100% - 1360px) / 2)); }
.smf-fv__photo.has-img img { height: 100%; width: auto; max-width: none; max-height: none; }
.smf-fv__photo--sp { display: none; }
/* 写真が無いときの仮枠 */
.smf-fv__photo.is-empty::before {
  content: "スタッフ写真（背景透過PNG）\A images/fv-staff.png";
  white-space: pre;
  display: flex; align-items: center; justify-content: center; text-align: center;
  width: 82%; height: 88%;
  border: 3px dashed rgba(255,255,255,.95);
  border-radius: 40% 40% 0 0;
  background: rgba(255,255,255,.18);
  color: #fff; font-size: 18px; font-weight: 700; line-height: 1.8;
}

/* 桜の花びら（飾り） */
.smf-petal { position: absolute; z-index: 1; width: 46px; height: 46px; opacity: .55; pointer-events: none; }
.smf-petal svg { width: 100%; height: 100%; }
.smf-petal--1 { top: 40px; left: 3%; transform: rotate(-20deg); }
.smf-petal--2 { top: 62%; left: 45%; width: 30px; height: 30px; transform: rotate(35deg); }
.smf-petal--3 { top: 18%; right: 6%; width: 36px; height: 36px; transform: rotate(80deg); z-index: 3; }

/* ---------- SP下部固定バー ---------- */
.smf-spbar { display: none; }

/* =========================================================
   印象を強める：色・動き
   ========================================================= */
/* 回転する点線リング */
.smf-ring {
  position: absolute; z-index: 1; pointer-events: none;
  top: calc(-18% - 60px); left: calc(31% - 60px);
  width: 1520px; height: 1520px; border-radius: 50%;
  border: 2px dashed rgba(232,85,122,.5);
  animation: smf-spin 90s linear infinite;
}
@keyframes smf-spin { to { transform: rotate(360deg); } }

/* キャッチ：1行ずつ表示＋マーカー */
.smf-line { display: block; opacity: 0; transform: translateY(24px); animation: smf-up .8s cubic-bezier(.2,.8,.2,1) forwards; }
.smf-line:nth-child(1) { animation-delay: .35s; }
.smf-line:nth-child(2) { animation-delay: .55s; }
.smf-line:nth-child(3) { animation-delay: .75s; }
.smf-fv__catch em { color: #e0335c; }
.smf-mark {
  background: linear-gradient(transparent 62%, rgba(255,214,102,.75) 62%, rgba(255,214,102,.75) 92%, transparent 92%) no-repeat 0 0 / 0% 100%;
  animation: smf-mark .9s ease-out 1.5s forwards;
}
@keyframes smf-mark { to { background-size: 100% 100%; } }
@keyframes smf-up { to { opacity: 1; transform: none; } }

/* 円：広がって出る */
.smf-fv::before { animation: smf-circle 1.2s cubic-bezier(.2,.8,.2,1) both; transform-origin: 30% 40%; }
@keyframes smf-circle { from { opacity: 0; transform: scale(.82); } to { opacity: 1; transform: none; } }

/* 人物：下から */
.smf-fv__photo.has-img img { opacity: 0; transform: translateY(40px); animation: smf-up 1s cubic-bezier(.2,.8,.2,1) .6s forwards; }

/* バッジ：順にポン → 時々キラッ */
.smf-badges li { opacity: 0; transform: scale(.6); animation: smf-pop .6s cubic-bezier(.3,1.6,.5,1) forwards; }
.smf-badges li:nth-child(1) { animation-delay: 1.1s; }
.smf-badges li:nth-child(2) { animation-delay: 1.3s; }
.smf-badges li:nth-child(3) { animation-delay: 1.5s; }
@keyframes smf-pop { to { opacity: 1; transform: none; } }
.smf-badges img { animation: smf-glint 4.5s ease-in-out 2.4s infinite; }
.smf-badges li:nth-child(2) img { animation-delay: 2.7s; }
.smf-badges li:nth-child(3) img { animation-delay: 3s; }
@keyframes smf-glint {
  0%, 82%, 100% { filter: drop-shadow(0 6px 10px rgba(150,40,40,.18)) brightness(1); transform: none; }
  88% { filter: drop-shadow(0 0 18px rgba(255,220,120,.9)) brightness(1.22); transform: scale(1.06) rotate(-2deg); }
  94% { filter: drop-shadow(0 6px 10px rgba(150,40,40,.18)) brightness(1); transform: none; }
}
.smf-partner { opacity: 0; animation: smf-up .8s ease-out 1.8s forwards; }

/* 舞う花びら（JSで生成） */
.smf-fall { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.smf-fall i {
  position: absolute; top: -40px; display: block;
  background: radial-gradient(circle at 30% 30%, #fff 0%, #ffd2d8 45%, #f9a3b1 100%);
  border-radius: 80% 0 80% 0;
  opacity: .85;
  animation: smf-fall linear infinite;
}
@keyframes smf-fall {
  0%   { transform: translate(0, -40px) rotate(0deg); }
  25%  { transform: translate(30px, 25vh) rotate(90deg); }
  50%  { transform: translate(-20px, 50vh) rotate(200deg); }
  75%  { transform: translate(40px, 75vh) rotate(290deg); }
  100% { transform: translate(0, 105vh) rotate(380deg); }
}

/* 動きを減らす設定の人には止める */
@media (prefers-reduced-motion: reduce) {
  .smf-ring, .smf-fall { display: none; }
  .smf-line, .smf-badges li, .smf-partner, .smf-fv__photo.has-img img, .smf-fv::before { animation: none; opacity: 1; transform: none; }
  .smf-mark { animation: none; background-size: 100% 100%; }
  .smf-badges img { animation: none; }
}

/* =========================================================
   SP（768px以下）
   ========================================================= */
@media (max-width: 768px) {
  /* ヘッダー（SP） */
  .smh { height: 64px; }
  .smh__logo { flex: 1; padding: 0 12px; border-right: 0; }
  .smh__logo img { width: 100%; max-width: 230px; }
  .smh__nav, .smh__shop { display: none; }
  .smh__toggle {
    display: flex; align-items: center; gap: 8px; align-self: center;
    margin-right: 8px; padding: 5px 14px 5px 5px;
    border: 2px solid #ddd; border-radius: 30px; background: #fff;
    color: var(--smf-brown); font-family: inherit; font-size: 13px; font-weight: 900; cursor: pointer;
  }
  .smh__burger { position: relative; display: block; width: 44px; height: 30px; border-radius: 20px; background: #7a6a6a; }
  .smh__burger i { position: absolute; left: 12px; right: 12px; height: 2px; background: #fff; transition: transform .25s, top .25s; }
  .smh__burger i:nth-child(1) { top: 11px; }
  .smh__burger i:nth-child(2) { top: 17px; }
  .smh__toggle[aria-expanded="true"] .smh__burger i:nth-child(1) { top: 14px; transform: rotate(30deg); }
  .smh__toggle[aria-expanded="true"] .smh__burger i:nth-child(2) { top: 14px; transform: rotate(-30deg); }
  .smh-drawer { display: block; position: fixed; z-index: 69; top: 64px; left: 0; right: 0; bottom: 0; overflow-y: auto; background: rgba(255,255,255,.98); padding: 10px 20px 120px; }
  .smh-drawer[hidden] { display: none; }
  .smh-drawer ul { margin: 0; padding: 0; list-style: none; }
  .smh-drawer a { display: block; padding: 16px 6px; border-bottom: 1px solid #f0e2de; color: var(--smf-brown); font-weight: 700; text-decoration: none; }
  .smh-tab { display: none; }
  .smf-subbar { padding: 10px 16px; font-size: 13px; }

  .smf-fv { min-height: 0; }
  .smf-fv::before { top: -60px; left: 8%; width: 760px; height: 760px; }
  .smf-fv::after { bottom: -60px; height: 100px; }

  .smf-fv__inner { display: block; padding: 0 16px 80px; }
  .smf-fv__text { width: 100%; }

  /* 上段：縦書きキャッチ＋写真 */
  .smf-fv__head { position: relative; height: 118vw; max-height: 560px; }
  .smf-fv__catch {
    position: absolute; z-index: 4; top: 24px; left: 4px;
    margin: 0;
    writing-mode: vertical-rl;
    font-size: 7.2vw;
    line-height: 1.6;
    letter-spacing: .1em;
    white-space: normal;
  }
  .smf-fv__row { display: block; }
  .smf-fv__photo { right: 0; width: 70%; height: 100%; max-width: none; }
  .smf-fv__photo--pc { display: none !important; }
  .smf-fv__photo--sp { display: flex; }
  .smf-fv__photo.is-empty::before { font-size: 13px; width: 92%; height: 82%; }
  .smf-fv__photo--sp.has-img { width: auto; height: 60%; right: -84px; left: auto; bottom: 0; }
  .smf-fv__head .smf-fv__photo--sp { bottom: 0; }
  .smf-fv__head { overflow: visible; }

  .smf-badges { gap: 6px; justify-content: center; margin: 20px 0 22px; }
  .smf-badges li { width: 32%; }

  .smf-partner { justify-content: center; gap: 12px; margin-bottom: 12px; }
  .smf-partner__logo img { height: 58px; }
  .smf-partner__text { font-size: 14px; }

  .smf-cta { display: none; } /* SPは下部固定バーで案内 */
  .smf-fv__note { text-align: center; font-size: 11px; }

  .smf-petal--2 { display: none; }
  /* SP：平川と同じく、人物は円の曲線で切れる */
  .smf-fv::before { top: -25vw; left: -10vw; width: 140vw; height: 140vw; background: radial-gradient(circle at 50% 45%, #fff2f4 0%, #ffc9d2 25%, #ff9fb1 50%, #f5748d 78%, #e8557a 100%); }
  .smf-ring { top: calc(-25vw - 16px); left: calc(-10vw - 16px); width: calc(140vw + 32px); height: calc(140vw + 32px); }
  .smf-fv__clip { position: absolute; inset: 0; z-index: 2; clip-path: circle(70vw at calc(60vw - 16px) 45vw); }
  .smf-fv__photo--sp.has-img { height: 64%; right: -84px; }
  .smf-mark { background: none !important; animation: none !important; }
  .smf-fv__catch { text-shadow: 0 0 2px #fff, 0 0 6px #fff, 0 0 14px rgba(255,255,255,.9); }

  .smf-ring { top: -110px; left: calc(8% - 50px); width: 860px; height: 860px; }
  .smf-mark {
    background: linear-gradient(90deg, transparent 6%, rgba(255,214,102,.75) 6%, rgba(255,214,102,.75) 36%, transparent 36%) no-repeat 0 0 / 100% 0%;
  }
  @keyframes smf-mark { to { background-size: 100% 100%; } }


  /* 下部固定バー */
  .smf-spbar {
    display: flex; gap: 8px; align-items: stretch;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 18px 10px calc(10px + env(safe-area-inset-bottom));
    background: linear-gradient(transparent, rgba(255,255,255,.95) 30%);
  }
  .smf-spbar a { display: flex; align-items: center; justify-content: center; text-decoration: none; font-weight: 900; border-radius: 40px; }
  .smf-spbar__main {
    position: relative; flex: 1; gap: 8px; padding: 14px 44px 14px 16px;
    background: var(--smf-pink); color: #fff; font-size: 19px; letter-spacing: .06em;
    border: 3px solid #fff; box-shadow: 0 4px 0 var(--smf-pink-d), 0 6px 14px rgba(0,0,0,.15);
  }
  .smf-spbar__main svg { width: 22px; height: 22px; flex: 0 0 22px; }
  .smf-spbar__main small {
    position: absolute; top: -15px; left: 50%; transform: translateX(-50%);
    padding: 3px 14px; border-radius: 20px; background: #f0a030; color: #fff;
    font-size: 11px; letter-spacing: .02em; white-space: nowrap;
  }
  .smf-spbar__main small::after { content: ""; position: absolute; left: 50%; bottom: -5px; margin-left: -5px; border: 5px solid transparent; border-bottom: 0; border-top-color: #f0a030; }
  .smf-spbar__arrow { position: absolute; right: 10px; top: 50%; width: 26px; height: 26px; margin-top: -13px; border-radius: 50%; background: #fff; }
  .smf-spbar__arrow::after { content: ""; position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; border-top: 2px solid var(--smf-pink); border-right: 2px solid var(--smf-pink); transform: translate(-65%, -50%) rotate(45deg); }
  .smf-spbar__sub {
    flex: 0 0 92px; flex-direction: column; gap: 2px; padding: 6px;
    border: 2px solid var(--smf-brown); background: #fff; color: var(--smf-brown);
    font-size: 13px; line-height: 1.25; text-align: center;
    box-shadow: 0 6px 14px rgba(0,0,0,.12);
  }
  .smf-spbar__yen { display: flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; border: 2px solid currentColor; font-size: 12px; }
  body { padding-bottom: 96px; }
}

@media (max-width: 768px) {
  /* ページトップボタンを下部バーの上へ */
  .pagetop { bottom: 110px !important; }
}

/* テーマの a:link（青・下線）を打ち消す */
a.smh__shop:link, a.smh__shop:visited,
.smh__menu a:link, .smh__menu a:visited,
.smh__sub a:link, .smh__sub a:visited,
.smh-drawer a:link, .smh-drawer a:visited { color: var(--smf-brown); text-decoration: none; }
a.smh-tab:link, a.smh-tab:visited,
a.smf-spbar__main:link, a.smf-spbar__main:visited { color: #fff; text-decoration: none; }
a.smf-spbar__sub:link, a.smf-spbar__sub:visited { color: var(--smf-brown); text-decoration: none; }
.smh__menu a:hover { color: var(--smf-pink); }

/* FV下端の曲線をページの背景色に合わせる（トップはクリーム色） */
.home .smf-fv::after { background: #fafaf0; }
