/*
 * swift-clinic.com add-ons: pickup carousel + fixed booking bar.
 *
 * Kept in one shared file rather than the per-page inline <style> blocks so a
 * tweak does not mean re-deploying 49 HTML files. Uses the tokens already
 * declared on :root (--swift-navy / --swift-gold / --swift-playfair).
 */

/* ------------------------------------------------------------------ *
 * Pickup tiles — square cards under the hero on the top page.
 * Four across on desktop, two on phones, scroll-snap so the row stays
 * swipeable without script.
 * ------------------------------------------------------------------ */

.swift-pickup {
  padding: 52px 0 8px;
}

.swift-pickup__head {
  text-align: center;
  margin-bottom: 26px;
}

.swift-pickup__head-jp {
  display: block;
  font-size: 12px;
  letter-spacing: .22em;
  color:var(--swift-gold-ink);
}

.swift-pickup__head-en {
  display: block;
  font-family: var(--swift-playfair);
  font-size: clamp(24px, 4vw, 34px);
  color: var(--swift-navy);
  line-height: 1.25;
  margin-top: 6px;
}

.swift-pickup__viewport {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.swift-pickup__viewport::-webkit-scrollbar {
  display: none;
}

.swift-pickup__slide {
  position: relative;
  flex: 0 0 calc((100% - 14px) / 2);
  scroll-snap-align: start;
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 22px;
  border-radius: 3px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(150deg, #0a2a52 0%, #16457c 58%, #0a2a52 100%);
  text-decoration: none;
  transition: transform .3s ease, box-shadow .3s ease;
}

.swift-pickup__slide::after {
  /* soft gold corner so the flat navy does not read as a plain box */
  content: "";
  position: absolute;
  right: -26%;
  top: -30%;
  width: 92%;
  height: 92%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(172, 147, 103, .55), transparent 72%);
  pointer-events: none;
}

.swift-pickup__slide:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(11, 47, 91, .24);
}

.swift-pickup__label {
  position: relative;
  font-family: var(--swift-playfair);
  font-family: var(--swift-playfair);
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1;
  letter-spacing: .1em;
  color:var(--swift-gold-ink);
}

.swift-pickup__label::after {
  content: "";
  display: block;
  width: 26px;
  height: 1px;
  margin-top: 10px;
  background: var(--swift-gold);}

.swift-pickup__title {
  position: relative;
  display: block;
  font-size: clamp(20px, 2.9vw, 28px);
  font-weight: 600;
  line-height: 1.32;
  margin-top: 14px;
  letter-spacing: .02em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .18);
}

.swift-pickup__title em {
  font-style: normal;
  color: #e8d9bb;
}

.swift-pickup__lead {
  position: relative;
  display: block;
  font-size: 14px;
  line-height: 1.7;
  margin-top: 14px;
  color: rgba(255, 255, 255, .9);
}

.swift-pickup__lead em {
  font-style: normal;
  font-size: 1.32em;
  font-weight: 600;
  color: #e9d5ab;
  letter-spacing: .01em;
}

.swift-pickup__dots {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin-top: 24px;
}

.swift-pickup__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(11, 47, 91, .22);
  cursor: pointer;
  transition: background .25s ease, transform .25s ease;
}

.swift-pickup__dot.is-active {
  background: var(--swift-gold);
  transform: scale(1.25);
  color: var(--swift-navy);
}

@media (min-width: 700px) {
  .swift-pickup__slide {
    flex: 0 0 calc((100% - 28px) / 3);
  }
}

@media (min-width: 1000px) {
  .swift-pickup__slide {
    flex: 0 0 calc((100% - 42px) / 4);
    padding: 34px 30px;
  }
}

/* ------------------------------------------------------------------ *
 * Fixed booking bar.
 * The header booking button scrolls away, which left long treatment
 * pages with no reachable call to action.
 * ------------------------------------------------------------------ */

.swift-cta-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1200;
  display: flex;
  gap: 1px;
  background: rgba(11, 47, 91, .18);
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -6px 22px rgba(11, 47, 91, .16);
}

.swift-cta-bar__item {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 58px;
  padding: 8px 6px;
  background: #fff;
  color: var(--swift-navy);
  font-size: 13px;
  letter-spacing: .06em;
  text-decoration: none;
  transition: background .2s ease, color .2s ease;
}

.swift-cta-bar__item small {
  font-family: var(--swift-playfair);
  font-size: 10px;
  letter-spacing: .18em;
  color:var(--swift-gold-ink);
}

.swift-cta-bar__item:hover {
  background: #f4f2ee;
}

.swift-cta-bar__item--main {
  flex: 1.35 1 0;
  background: var(--swift-navy);
  color: #fff;
}

.swift-cta-bar__item--main small {
  color: #d8c49b;
}

.swift-cta-bar__item--main:hover {
  background: #08233f;
}

/* Keep the last of the page clear of the bar. */
body {
  padding-bottom: 62px;
}

@media (min-width: 900px) {
  .swift-cta-bar {
    left: auto;
    right: 24px;
    bottom: 24px;
    width: auto;
    gap: 10px;
    background: transparent;
    box-shadow: none;
  }

  .swift-cta-bar__item {
    flex: 0 0 auto;
    min-height: 0;
    padding: 12px 22px;
    border-radius: 3px;
    white-space: nowrap;
    box-shadow: 0 8px 24px rgba(11, 47, 91, .20);
  }

  .swift-cta-bar__item--main {
    flex: 0 0 auto;
  }

  body {
    padding-bottom: 0;
  }
}

@media print {
  .swift-cta-bar {
    display: none;
  }
}

/* ------------------------------------------------------------------ *
 * Contact form (福利厚生プラン).
 * Underline fields and a two-column grid, so it sits with the rest of the
 * site rather than looking like a bolted-on default form.
 * ------------------------------------------------------------------ */

.swift-formwrap {
  background: #f7f6f4;
}

.swift-form {
  max-width: 880px;
  margin: 0 auto;
  padding: 52px 56px 56px;
  background: #fff;
  border: 1px solid rgba(11, 47, 91, .09);
  box-shadow: 0 18px 46px rgba(11, 47, 91, .07);
}

.swift-form__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px 34px;
}

.swift-form__row--half {
  grid-column: span 1;
}

.swift-form__label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  letter-spacing: .12em;
  color: var(--swift-navy);
  margin-bottom: 10px;
}

.swift-form__req,
.swift-form__opt {
  font-family: var(--swift-playfair);
  font-size: 10px;
  letter-spacing: .14em;
  padding: 3px 9px;
  border-radius: 1px;
}

.swift-form__req {
  background: var(--swift-gold);
  color: var(--swift-navy);
}

.swift-form__opt {
  background: transparent;
  color: #a49b8b;
  border: 1px solid #ddd7cb;
}

.swift-form input[type="text"],
.swift-form input[type="email"],
.swift-form input[type="tel"],
.swift-form select,
.swift-form textarea {
  box-sizing: border-box;
  width: 100%;
  padding: 12px 2px;
  border: 0;
  border-bottom: 1px solid #d9d5cd;
  border-radius: 0;
  background: transparent;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.8;
  color: var(--swift-text);
  transition: border-color .2s ease;
}

.swift-form select {
  /* keep the native arrow from looking like a stray widget */
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--swift-gold) 50%),
                    linear-gradient(135deg, var(--swift-gold) 50%, transparent 50%);
  background-position: right 12px center, right 6px center;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 28px;
  cursor: pointer;
}

.swift-form textarea {
  min-height: 132px;
  resize: vertical;
  border: 1px solid #d9d5cd;
  padding: 14px 16px;
}

.swift-form input:focus,
.swift-form select:focus,
.swift-form textarea:focus {
  outline: none;
  border-color: var(--swift-gold);
}

.swift-form__error {
  margin: 8px 0 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: #c0392b;
}

.swift-form input.has-error,
.swift-form select.has-error,
.swift-form textarea.has-error {
  border-color: #c0392b;
}

.swift-form__submit {
  text-align: center;
  margin-top: 44px;
}

.swift-form__submit button {
  /* min-width は max-width より優先されるため、max-width では止められない。
     min() を使って min-width 自体を可変にする。
     広い画面では 300px、狭い画面では親幅（.swift-form__submit）に収まる。
     以前は 360px 幅で右端347px となり、ビューポート345pxを2px超えて
     ページ全体に横スクロールが出ていた。 */
  min-width: min(300px, 100%);
  box-sizing: border-box;
  padding: 18px 44px;
  border: 1px solid var(--swift-navy);
  border-radius: 2px;
  background: var(--swift-navy);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  letter-spacing: .16em;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22);
  transition: background .25s ease, transform .2s ease;
}

.swift-form__submit button:hover {
  background: #08233f;
  transform: translateY(-1px);
}

.swift-form__note {
  margin-top: 20px;
  font-size: 12.5px;
  line-height: 2;
  color: var(--swift-gray);
  text-align: center;
}

.swift-form__note a {
  color: var(--swift-navy);
  border-bottom: 1px solid var(--swift-gold);
}

.swift-form__status {
  max-width: 880px;
  margin: 0 auto 26px;
  padding: 18px 24px;
  border-radius: 2px;
  font-size: 14.5px;
  line-height: 1.9;
}

.swift-form__status--ok {
  color: #2c6b34;
  background: #f2f7f2;
  border: 1px solid #cfe0d0;
}

.swift-form__status--error {
  color: #b8382a;
  background: #fdf3f1;
  border: 1px solid #eed4cf;
}

@media (min-width: 720px) {
  .swift-form__grid {
    grid-template-columns: 1fr 1fr;
  }

  .swift-form__row--full {
    grid-column: 1 / -1;
  }
}

@media (max-width: 719px) {
  .swift-form {
    padding: 34px 22px 40px;
  }
}

/* ------------------------------------------------------------------ *
 * Grouped mega menu.
 * The in-clinic list outgrew a flat column of links, so it is split into
 * labelled groups. Loaded after the inline styles, so it overrides them.
 * ------------------------------------------------------------------ */

.swift-mega--grouped {
  grid-template-columns: repeat(4, minmax(148px, auto));
  gap: 4px 34px;
  align-items: start;
}

.swift-mega__group {
  display: flex;
  flex-direction: column;
}

.swift-mega__h {
  font-family: var(--swift-playfair);
  font-size: 11px;
  letter-spacing: .16em;
  color:var(--swift-gold-ink);
  margin: 0 0 4px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(172, 147, 103, .35);
}

.swift-mega__group + .swift-mega__group .swift-mega__h {
  margin-top: 0;
}

@media (max-width: 900px) {
  /* the header collapses to the hamburger panel, where a single column reads
     better than four cramped ones */
  .swift-mega--grouped {
    grid-template-columns: 1fr;
    gap: 2px 0;
  }

  .swift-mega__h {
    margin-top: 12px;
  }
}

/* ------------------------------------------------------------------ *
 * Round 1 refinements.
 * ------------------------------------------------------------------ */

/* The three feature blocks were a gold numeral and a paragraph, with nothing
   naming what the clinic actually leads with. */
.swift-feature__title {
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--swift-navy);
  margin: 14px 0 12px;
  line-height: 1.5;
}

.swift-feature__title::after {
  content: "";
  display: block;
  width: 30px;
  height: 1px;
  margin: 14px auto 0;
  background: var(--swift-gold);}

/* The fixed bar floats over the page; give the last section room so it never
   sits on top of content. */
@media (min-width: 900px) {
  body {
    padding-bottom: 92px;
  }
}

/* Navy type over the dark half of the hero photo was barely legible. */
.swift-hero__title,
.swift-hero .swift-hero__inner {
  text-shadow: 0 2px 24px rgba(0, 0, 0, .38);
}

/* The service cards on the top page were plain <article> blocks with no way
   through to the treatment pages. */
.swift-card--link {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: transform .3s ease, box-shadow .3s ease;
}

.swift-card--link:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(11, 47, 91, .13);
}

.swift-card--link:hover .swift-card__title {
  color:var(--swift-gold-ink);
}

/* ------------------------------------------------------------------ *
 * Motion.
 * Everything is opt-in via .swift-reveal, driven by IntersectionObserver,
 * and fully disabled under prefers-reduced-motion.
 * ------------------------------------------------------------------ */

.swift-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .85s cubic-bezier(.22, .61, .36, 1),
              transform .85s cubic-bezier(.22, .61, .36, 1);
  will-change: opacity, transform;
}

.swift-reveal.is-in {
  opacity: 1;
  transform: none;
}

/* stagger inside a row so tiles and cards arrive in sequence */
.swift-reveal[data-delay="1"] { transition-delay: .08s; }
.swift-reveal[data-delay="2"] { transition-delay: .16s; }
.swift-reveal[data-delay="3"] { transition-delay: .24s; }
.swift-reveal[data-delay="4"] { transition-delay: .32s; }
.swift-reveal[data-delay="5"] { transition-delay: .40s; }

/* the gold rule under a section heading draws itself in */
.swift-head__en::after {
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .9s cubic-bezier(.22, .61, .36, 1) .1s;
}

.swift-reveal.is-in .swift-head__en::after,
.swift-head.is-in .swift-head__en::after {
  transform: scaleX(1);
}

/* the pickup tile lifts and its gold sweep breathes */
.swift-pickup__slide {
  transition: transform .45s cubic-bezier(.22, .61, .36, 1),
              box-shadow .45s cubic-bezier(.22, .61, .36, 1);
}

.swift-pickup__slide::after {
  transition: transform .7s cubic-bezier(.22, .61, .36, 1),
              opacity .7s ease;
}

.swift-pickup__slide:hover::after {
  transform: scale(1.18) translate(-6%, 6%);
  opacity: .85;
}

.swift-pickup__slide:hover {
  transform: translateY(-6px);
}

.swift-pickup__title,
.swift-pickup__lead {
  transition: transform .45s cubic-bezier(.22, .61, .36, 1);
}

.swift-pickup__slide:hover .swift-pickup__title {
  transform: translateX(3px);
}

/* card images settle back rather than snapping */
.swift-card--link .swift-card__img {
  overflow: hidden;
}

.swift-card--link .swift-card__img img {
  transition: transform .9s cubic-bezier(.22, .61, .36, 1);
}

.swift-card--link:hover .swift-card__img img {
  transform: scale(1.055);
}

/* nav underline grows from the centre instead of blinking on */
.swift-nav__list > li > a {
  position: relative;
}

.swift-nav__list > li > a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: var(--swift-gold);
  transform: scaleX(0);
  transition: transform .35s cubic-bezier(.22, .61, .36, 1);}

.swift-nav__list > li:hover > a::after {
  transform: scaleX(1);
}

/* mega panel eases open
   ここは PC のメガメニュー専用の演出。
   以前はメディアクエリ無しで書いていたため、`:hover` を含む詳細度 0-3-0 が
   モバイル側の打ち消し（0-1-0 / 0-2-0）に勝ってしまい、
   スマホのドロワー内でサブメニューが自身の幅の50%だけ左へずれて
   左端が切れていた（実測 -110.75px / ドロワーから 83px はみ出し）。
   打ち消しを重ねるのではなく、そもそもPCにしか当てない。 */
@media (min-width: 901px) {
  .swift-mega {
    opacity: 0;
    transform: translate(-50%, -6px);
    transition: opacity .28s ease, transform .28s cubic-bezier(.22, .61, .36, 1);
  }

  .swift-nav__has-sub:hover .swift-mega {
    opacity: 1;
    transform: translate(-50%, 0);
  }

  .swift-mega a {
    transition: color .25s ease, transform .25s ease;
  }

  .swift-mega a:hover {
    transform: translateX(3px);
  }
}

/* the fixed bar slides up once the hero is behind you */
.swift-cta-bar {
  transition: transform .45s cubic-bezier(.22, .61, .36, 1), opacity .35s ease;
}

.swift-cta-bar.is-tucked {
  transform: translateY(115%);
  opacity: 0;
  pointer-events: none;
}

@media (min-width: 900px) {
  .swift-cta-bar.is-tucked {
    transform: translateY(150%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .swift-reveal,
  .swift-reveal.is-in {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .swift-head__en::after {
    transform: scaleX(1);
    transition: none;
  }

  .swift-pickup__slide,
  .swift-pickup__slide::after,
  .swift-card--link .swift-card__img img,
  .swift-cta-bar,
  .swift-mega {
    transition: none;
  }
}

/* ------------------------------------------------------------------ *
 * Readability pass.
 *
 * Measured on the live pages, not guessed:
 *   - gold #ac9367 as text is 2.95:1 on white and 2.71:1 on cream (needs 4.5)
 *   - white on the gold CTA button is 2.95:1; navy on the same gold is 4.53:1
 *   - the grey #8f8f8f notes are 3.5:1
 *   - body copy sits at 15px in a mincho face, which is thin on screen
 *   - centred lead paragraphs run to ~81 CJK characters per line
 * ------------------------------------------------------------------ */

:root {
  /* 文字用の金。面と罫の金（--swift-gold #ac9367）はそのまま残す。
     #856d3e は白で 4.93 だが、メガメニューの面 #f2f1ef の上では 4.37 で
     落ちていた（実測）。少し深くして、白5.53 / 生成り5.04 / #f2f1ef 4.90 */
  --swift-gold-ink: #7d6539;
}

/* Small gold labels above every section heading. */
.swift-head__jp,
.swift-pickup__head-jp,
.swift-clinic__note,
.swift-clinic__sub,
.swift-intro__note--gold {
  color: var(--swift-gold-ink);
}

/* The main conversion button: keep the gold, darken the type. */
.swift-cta__btn {
  color: var(--swift-navy);
  font-weight: 600;
}

.swift-cta__btn:hover {
  color: var(--swift-navy);
}

/* Grey notes were too faint to read comfortably. */
.swift-intro__note,
.swift-price__note,
.swift-prow__note {
  color: #6b6b6b;
}

/* on the navy footer, not the page background */
.swift-footer__copy {
  color: rgba(255, 255, 255, .72);
}

/* Body copy: 16px is the readable floor for a mincho face on screen. */
.swift-feature__text,
.swift-clinic__addr,
.swift-card__text,
.swift-info__body,
.swift-faq__a,
.swift-effect__text,
.swift-step__text {
  font-size: 16px;
  line-height: 1.95;
}

/* Cap the measure. Centred paragraphs ran the full 1132px container. */
.swift-intro__note,
.swift-cta__lead,
.swift-section > .swift-container > p,
.swift-lead {
  max-width: 40em;
  margin-left: auto;
  margin-right: auto;
}

/* Titles were set at the body's 1.9 leading, which reads slack. */
.swift-card__title,
.swift-trio-card__title,
.swift-info__title,
.swift-effect__title {
  line-height: 1.55;
}

/* The oversized English watermark was #dcdcdc, all but invisible. */
.swift-intro__en {
  color: #b9b0a0;
}

/* Larger tap targets on phones. */
@media (max-width: 700px) {
  .swift-footer__nav li {
    margin-bottom: 14px;
  }

  .swift-footer__nav a {
    display: inline-block;
    padding: 3px 0;
  }
}

/* ------------------------------------------------------------------ *
 * Footer: related service.
 * A sixth nav column overflows the container, so this sits on its own row.
 * ------------------------------------------------------------------ */

.swift-footer__related {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 10px 34px;
  margin: -18px 0 38px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  text-align: center;
}

.swift-footer__related-h {
  font-family: var(--swift-playfair);
  font-size: 11px;
  letter-spacing: .18em;
  color: #d8c49b;
}

.swift-footer__related > a {
  color: rgba(255, 255, 255, .88);
  font-size: 14px;
  letter-spacing: .04em;
  text-decoration: none;
  border-bottom: 1px solid rgba(216, 196, 155, .5);
  padding-bottom: 2px;
  transition: color .25s ease, border-color .25s ease;
}

.swift-footer__related > a:hover {
  color: #d8c49b;
  border-color: #d8c49b;
}

.swift-footer__related > a {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.swift-footer__related > a span {
  font-size: 12px;
  color: rgba(255, 255, 255, .62);
}

@media (max-width: 700px) {
  .swift-footer__related {
    flex-direction: column;
    gap: 6px;
  }

  .swift-footer__related > a span {
    display: block;
    margin: 4px 0 0;
  }
}

/* ------------------------------------------------------------------ *
 * Mega menu: icons and finish.
 * Icons ride on ::before as inline SVG, so the markup on 49 pages stays
 * untouched and a group's icon is a one-line change here.
 * ------------------------------------------------------------------ */

.swift-mega--grouped {
  padding: 30px 38px 28px;
  border-top: 2px solid var(--swift-gold);
  box-shadow: 0 18px 44px rgba(11, 47, 91, .18);
}

.swift-mega__h {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  padding-bottom: 9px;
  font-size: 11.5px;
  letter-spacing: .14em;
  color: var(--swift-gold-ink);
  border-bottom: 1px solid rgba(172, 147, 103, .32);
}

.swift-mega__h::before {
  content: "";
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: .95;
}

/* 肌・毛穴・シミ — a facet catching light */
.swift-mega__group:nth-child(1) .swift-mega__h::before {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23856d3e' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3.5c3.6 3.2 5.6 5.8 5.6 8.6A5.6 5.6 0 0 1 12 17.7a5.6 5.6 0 0 1-5.6-5.6c0-2.8 2-5.4 5.6-8.6z'/%3E%3Cpath d='M9.6 12.4a2.4 2.4 0 0 0 2.4 2.4'/%3E%3C/svg%3E");
}

/* たるみ・小顔 — a lifting arc */
.swift-mega__group:nth-child(2) .swift-mega__h::before {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23856d3e' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 16.5c2.6-6.4 9-9.4 15-7.6'/%3E%3Cpath d='M15.4 5.9L19 8.9l-3 3.6'/%3E%3C/svg%3E");
}

/* 注射・点滴 — a droplet on a line */
.swift-mega__group:nth-child(3) .swift-mega__h::before {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23856d3e' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v7'/%3E%3Cpath d='M12 21a3.4 3.4 0 0 0 3.4-3.4c0-2-3.4-5.6-3.4-5.6s-3.4 3.6-3.4 5.6A3.4 3.4 0 0 0 12 21z'/%3E%3Cpath d='M9.4 5.2h5.2'/%3E%3C/svg%3E");
}

/* 男性特有・その他 — a shield */
.swift-mega__group:nth-child(4) .swift-mega__h::before {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23856d3e' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3.2l6.6 2.6v5.4c0 4-2.8 7.2-6.6 8.6-3.8-1.4-6.6-4.6-6.6-8.6V5.8z'/%3E%3Cpath d='M9.3 11.9l1.9 1.9 3.6-3.7'/%3E%3C/svg%3E");
}

/* Links: a marker that grows in rather than a colour flick. */
.swift-mega--grouped a {
  position: relative;
  padding: 6px 2px 6px 13px;
  line-height: 1.5;
}

.swift-mega--grouped a::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 50%;
  width: 5px;
  height: 1px;
  background: var(--swift-gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .3s cubic-bezier(.22, .61, .36, 1);}

/* PC のメガメニュー専用の演出。メディアクエリ無しだとスマホのドロワーでも
   タップで発火し、リンクが横にずれる。 */
@media (min-width: 901px) {
  .swift-mega--grouped a:hover::before {
    transform: scaleX(1);
  }

  .swift-mega--grouped a:hover {
    transform: translateX(4px);
  }
}

@media (max-width: 900px) {
  .swift-mega--grouped {
    padding: 4px 0 10px 18px;
    border-top: 0;
    box-shadow: none;
  }

  .swift-mega__h {
    margin-top: 14px;
  }
}

/* ============ LANGUAGE SWITCH ============ */
/* Sends a reader to the English section. Added by scripts/swift-en-link.py. */
.swift-lang-en{
  display:inline-flex;align-items:center;justify-content:center;
  font-size:12px;letter-spacing:.08em;white-space:nowrap;
  padding:9px 13px;border:1px solid rgba(11,47,91,.22);border-radius:2px;
  color:#0b2f5b;transition:background .2s,border-color .2s;
}
.swift-lang-en:hover{background:rgba(11,47,91,.06);border-color:#ac9367;}
@media (max-width:560px){
  .swift-lang-en{padding:7px 9px;font-size:11px;letter-spacing:.04em;}
}

/* ============ 未承認医薬品の明示ブロック ============ */
/* 医療広告ガイドラインの限定解除要件。目立たせないと意味がないので、
   通常の説明ブロックと区別できる見た目にしている。 */
.swift-block--notice{
  background:#fbf9f4;
  border:1px solid rgba(172,147,103,.45);
  border-left:3px solid #ac9367;
  border-radius:2px;
  padding:20px 22px;
}
.swift-block--notice .swift-block__title{color:#8a6d3b;}
.swift-block--notice .swift-block__list li{font-size:13.5px;line-height:1.85;}

/* ============ MEGA MENU: はみ出し対策 ============ */
/* 経緯を残す。メニューは項目を基準に left:50% + translateX(-50%) で中央寄せ
   するため、ラベルを長くして幅が広がるとナビ左寄りの項目で画面外へ出た。
   位置の基準を .swift-header__inner や .swift-nav へ移す案を試したが、
   どちらも高さが項目より大きく top:100% が約30px下にずれ、項目とメニューの
   間に死角ができてホバーが切れた（実測）。
   よって基準は項目のまま（= ホバー挙動は元のまま）、幅を絞って解決する。 */
@media (max-width:1180px){
  .swift-mega--grouped{
    grid-template-columns:repeat(2,minmax(150px,max-content));
  }
}
@media (max-width:960px){
  .swift-mega--grouped{
    grid-template-columns:minmax(150px,max-content);
  }
}
/* 最後の保険。これ単体では左のはみ出しは防げないが、右は防げる。 */
.swift-mega{box-sizing:border-box;max-width:calc(100vw - 24px);}
/* 項目とメニューの隙間を埋めるホバー橋（メニューの子なので親の :hover が続く） */
.swift-mega::before{
  content:"";position:absolute;left:0;right:0;top:-14px;height:14px;
}
@media (max-width:820px){
  .swift-mega,.swift-mega--grouped{max-width:none;grid-template-columns:1fr;}
  .swift-mega::before{display:none;}
}

/* ============ 新橋銀座エリアからのアクセス ============ */
/* 院内治療ページはローカル検索の受け皿。所在地とアクセスをページ内に持たせる。 */
.swift-local{background:#f7f6f3;padding:52px 0;border-top:1px solid rgba(11,47,91,.08);}
.swift-local__h{
  font-size:clamp(18px,2.2vw,23px);line-height:1.6;color:#0b2f5b;
  font-weight:600;margin:0 0 16px;
}
.swift-local__lead{font-size:15px;line-height:1.95;color:#3a3c40;margin:0 0 24px;max-width:820px;}
.swift-local__lead strong{color:#0b2f5b;}
.swift-local__facts{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:1px;margin:0 0 18px;
}
.swift-local__facts > div{background:#fff;padding:14px 16px;box-shadow:0 0 0 1px rgba(11,47,91,.09);}
.swift-local__facts dt{
  font-size:11px;letter-spacing:.1em;color:var(--swift-gold-ink);margin:0 0 5px;
}
.swift-local__facts dd{margin:0;font-size:14.5px;line-height:1.7;color:#0b2f5b;font-weight:600;}
.swift-local__facts dd a{color:inherit;}
.swift-local__note{font-size:13px;line-height:1.9;color:#686d75;margin:0;}
.swift-local__note a{color:#0b2f5b;text-decoration:underline;text-underline-offset:3px;}
@media (max-width:560px){
  .swift-local{padding:40px 0;}
  .swift-local__facts{grid-template-columns:1fr;}
}

/* ============ MOBILE HEADER FIT ============ */
/* 390px 幅で計測したところ、ロゴ227px + EN37 + 予約80 + ハンバーガー42 に
   左右padding 24px ずつが乗り、必要幅426px に対して使える幅は323px。
   「予約する」が切れ、ハンバーガーは完全に画面外だった＝モバイルで
   ナビを開く手段が無い状態。EN ボタンを足したときに超えたと思われる。
   ロゴの高さを詰めて全体を収める。 */
@media (max-width:820px){
  .swift-header__inner{padding-left:14px;padding-right:14px;gap:10px;}
  .swift-logo img{height:28px;width:auto;}
  .swift-header__right{gap:8px;}
  .swift-lang-en{padding:6px 8px;font-size:11px;}
  .swift-header__right .swift-btn{padding:9px 12px;font-size:12px;}
  .swift-hamburger{width:30px;}
}
@media (max-width:420px){
  .swift-logo img{height:24px;}
  .swift-header__right .swift-btn{padding:8px 10px;font-size:11px;}
  .swift-lang-en{padding:6px 7px;}
}

/* ============ MOBILE TAP TARGETS ============ */
/* フッターとパンくずのリンクが高さ16px しかなく、指では狙いにくい。
   文字サイズは変えず、上下の余白だけで当たり判定を広げる。 */
@media (max-width:820px){
  .swift-footer__nav a,
  .swift-footer__col ul a,
  .swift-lp-crumb a,
  .swift-footer__related > a{
    display:inline-block;
    padding-top:7px;
    padding-bottom:7px;
  }
  .swift-local__note a{display:inline-block;padding:6px 0;}
}

/* ============ MOBILE TAP TARGETS 2 ============ */
@media (max-width:820px){
  /* ロゴは「トップへ戻る」の主要導線だが高さ24pxしかない。
     見た目は変えず、当たり判定だけ縦に広げる。 */
  .swift-logo{display:inline-flex;align-items:center;min-height:42px;}

  /* カルーセルのドットは10px、中心間18px。横に広げると隣を誤タップするので
     間隔を少し空けたうえで、当たり判定を縦方向へ伸ばす。 */
  .swift-pickup__dots{gap:14px;}
  .swift-pickup__dot{position:relative;}
  .swift-pickup__dot::after{
    content:"";
    position:absolute;left:50%;top:50%;
    width:24px;height:40px;
    transform:translate(-50%,-50%);
  }
}

/* ==================================================================== *
 * テーマ層 — 2026-08
 *
 * このファイルは50ページすべてで、各ページのインライン <style> より
 * 後に読み込まれる。つまりここで :root のトークンを再定義すれば、
 * 46ページ分のインラインCSSを1文字も触らずに全ページへ効く。
 * サイト共通の色と書体を1箇所で決めるための層。
 *
 * 実測して直したもの（WCAG AA = 通常文字4.5:1 / 大文字3.0:1）:
 *   --swift-gray  #8f8f8f → 3.23:1  白地の注記・補足で41箇所
 *   .swift-intro__en #b9b0a0 → 2.15:1  トップの大見出し。72pxでも
 *     大文字の基準3.0に届かない（前回のパスで#dcdcdcから上げた途中）
 *   本文が明朝15px。Windowsの游明朝は画面で細く、日本語のWebフォントは
 *   1つも読み込まれていなかった（表示は閲覧者のPCまかせ）
 * ==================================================================== */

:root {
  /* 3.23:1 → 5.20:1。わずかに青を含ませて紺の側に寄せる。
     白だけでなく、生成り #f7f5f1 と吹き出しの薄青 #eef1f5 の上でも
     4.5 を超える値を選んだ（#6b7078 だと薄青の上で 4.40 で落ちる） */
  --swift-gray: #686d75;

  /* 面の色。これまでリテラルで散っていた（#f7f5f1 が170回、#f2f1ef が46回） */
  --swift-surface: #f7f5f1;
  --swift-surface-2: #f2f1ef;
  --swift-line: rgba(11, 47, 91, .10);

  /* 日本語の本文・見出し共通。Yu Gothic は素の400が画面で薄いので、
     Windowsでは Medium を先に当てる（日本語Webフォントの読み込みが
     間に合わなかったときの受け皿として効く） */
  --swift-gothic: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN",
                  "Yu Gothic Medium", "Yu Gothic", Meiryo, sans-serif;

  --swift-header-h: 84px;
}

/* ---- 書体 ------------------------------------------------------- *
 * 日本語はすべてゴシック、英字の見出しは Playfair のまま。
 *
 * 最初は「見出しは明朝、本文はゴシック」で組もうとしたが、実測して
 * やめた。20ページの20px以上の日本語要素を全部拾ってみると、見出しと
 * 本文を分ける構造上の境目が無い。swift-cat__jp（セクション見出し）、
 * swift-cta__title（実体は導入文）、swift-drug__price（価格）が同じ
 * サイズ帯に混在していて、h1〜h4 でもクラス名の規則でも切り分けられない。
 * 中途半端に混ぜると、同じページの中で見出しの書体が揃わない。
 *
 * 品位は Playfair（.swift-head__en が223箇所）と紺・金・余白が担って
 * いるので、日本語を一本化しても軽くはならない。むしろ細い明朝と太い
 * セリフが同じ塊の中で競り合っていた状態が解消する。
 *
 * .swift-head__en などはクラス指定で Playfair を持っており、詳細度で
 * そちらが勝つので英字見出しは変わらない。
 * ---------------------------------------------------------------- */

body {
  font-family: var(--swift-gothic);
  /* palt: 日本語の約物（、。「」）の余白を詰める。これが無いと
     句読点の後ろに全角分の空白が空き、素人くさい組みになる */
  font-feature-settings: "palt" 1;
  letter-spacing: .02em;
}

/* 見出しの折り返しを均す。未対応ブラウザは黙って無視する */
h1, h2, h3, h4 {
  text-wrap: balance;
}

/* ---- 可読性 ----------------------------------------------------- */

/* トップの大見出し。前回のパスで #dcdcdc から #b9b0a0 へ上げたが、
   まだ2.15:1で、72pxの大文字に必要な3.0に届いていなかった。
   無彩色のグレーだと浮くので、金に寄せた暖色へ振って3.19:1にする */
.swift-intro__en {
  color: #a08e6e;
}

/* 固定ヘッダーの下にアンカー先が潜り込む。FAQ・料金・注意書きへの
   ページ内リンクが、飛んだ先で見出しの見えない位置に着地していた */
[id] {
  scroll-margin-top: var(--swift-header-h);
}

/* ---- 手ざわり --------------------------------------------------- */

::selection {
  background: rgba(172, 147, 103, .28);
}

/* キーボード操作時のフォーカス位置が一切見えなかった */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--swift-gold-ink);
  outline-offset: 3px;
  border-radius: 2px;
}

@media (max-width: 820px) {
  :root { --swift-header-h: 72px; }
}

/* ---- 金の文字が紺地に乗る例外 ------------------------------------ *
 * 前回のパスで .swift-head__jp を一律 --swift-gold-ink にしたが、
 * 実測すると8ページで地が紺だった（/acne の「選ばれる理由」、
 * 脱毛系5ページの MERIT、キャンペーン帯など）。紺地では暗い金は
 * 2.41:1 で読めない。逆に元の金なら 4.53:1 で通る。
 *
 * これらのセクションは同じクラス名でもページによって地が白のことが
 * ある。その場合は今の見え方（2.95:1）に戻るだけで、悪化はしない。
 * ---------------------------------------------------------------- */

.swift-reason .swift-head__jp,
.swift-camp .swift-head__jp,
.swift-campaign .swift-head__jp,
.swift-merit .swift-head__jp {
  color: var(--swift-gold);
}

/* 前回のパスで .swift-cta__btn を紺字にしたとき、背景が透明な派生まで
   巻き込んでいた。この派生の地は紺の帯そのもので、紺字だと消える。 */
.swift-cta__btn--ghost,
.swift-cta__btn--ghost:hover {
  color: #fff;
}

/* ---- トップのピックアップ枠、携帯での組み直し ---------------------- *
 * 390px幅で2枚並べると1枚155px、内側は左右22pxのpaddingを引いて111px
 * しか残らない。20pxの見出しは1行5.5文字しか入らず、「オンライン診療」が
 * 「オンライン診／療」で折れ、価格も「490／円」と数字と単位が分かれていた。
 * さらに枠は正方形固定（aspect-ratio:1/1）で高さ155pxしかなく、
 * 中身は最大205px必要で下が切れていた。
 *
 * 直し方は3つ。
 *   1. 正方形をやめ、中身なりの高さにする（横並びなので全枚そろう）
 *   2. 1枚を画面の7割強にして、1.4枚見える幅にする。文字が収まるうえ、
 *      右が途中で切れるので「横に送れる」ことが見た目で分かる
 *   3. 中身を上ぞろえにする。中央ぞろえだと、見出しが1行の枠と2行の枠で
 *      番号（01/02）の高さがずれる
 * ---------------------------------------------------------------- */

@media (max-width: 699px) {
  .swift-pickup__slide {
    aspect-ratio: auto;
    flex: 0 0 72%;
    justify-content: flex-start;
    padding: 22px 18px 24px;
  }

  /* 価格の数字と単位が行またぎで分かれないようにする */
  .swift-pickup__lead em,
  .swift-pickup__lead strong {
    white-space: nowrap;
  }
}

@media (max-width: 400px) {
  .swift-pickup__slide { flex: 0 0 76%; }
}

/* ---- 電話番号のリンクが指で狙いにくい ----------------------------- *
 * 高さ19px。文字の大きさは変えず、上下の余白だけで当たり判定を広げる。
 * カルーセルのドットは既に ::after で24×40を持っているので触らない。
 * ---------------------------------------------------------------- */

@media (max-width: 820px) {
  .swift-clinic-card__tel,
  .swift-info-card__tel,
  .swift-zd-clinic__tel,
  .swift-clinic-info a[href^="tel:"],
  .swift-lp-info a[href^="tel:"] {
    display: inline-block;
    padding: 7px 0;
  }
}

/* ---- 料金一覧の表、携帯では縦積みに ------------------------------- *
 * /price-list の表は5列（施術名・効果・期間・数量・料金）ある。
 * 360px幅では表の実寸が560〜657pxになり、横スクロールの容器に
 * 収まってはいるものの、いちばん見たい「料金」が画面の外にあって、
 * 行ごとに横へ送らないと値段が読めない状態だった。
 *
 * セルには既に用途別のクラス（swift-td-name / effect / meta / price）が
 * 付いているので、それを使って1行=1カードに組み替える。
 *
 *   施術・薬剤名 ............ 料金
 *   効果の説明
 *   期間  数量
 *
 * :has() で「料金セルを持つ表」だけに限定している。他ページの表は
 * 2列で携帯でも収まるので対象外。:has() が効かない環境では今までどおり
 * 横スクロールの表のままで、壊れる方向には倒れない。
 * ---------------------------------------------------------------- */

@media (max-width: 640px) {
  /* ページ側が min-width:560px で横スクロールを強制している。
     縦積みにするので、その下限を外す。 */
  .swift-table:has(.swift-td-price) {
    display: block;
    width: 100%;
    min-width: 0;
  }
  .swift-table:has(.swift-td-price) thead { display: none; }
  .swift-table:has(.swift-td-price) tbody { display: block; }

  .swift-table:has(.swift-td-price) tr {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 3px 10px;
    padding: 13px 2px;
    border-bottom: 1px solid var(--swift-line);
  }

  .swift-table:has(.swift-td-price) td {
    display: block;
    border: 0;
    padding: 0;
  }

  /* DOM順は 名前→効果→期間→数量→料金。効果が幅100%を取るので、
     order を振らないと料金が3行目まで送られる。 */
  .swift-table:has(.swift-td-price) .swift-td-name {
    order: 1;
    flex: 1 1 55%;
    font-weight: 600;
  }

  .swift-table:has(.swift-td-price) .swift-td-price {
    order: 2;
    flex: 0 0 auto;
    margin-left: auto;
    font-weight: 700;
    white-space: nowrap;
  }

  .swift-table:has(.swift-td-price) .swift-td-effect {
    order: 3;
    flex: 1 1 100%;
    font-size: 13px;
    line-height: 1.75;
    color: var(--swift-gray);
  }

  .swift-table:has(.swift-td-price) .swift-td-meta {
    order: 4;
    flex: 0 0 auto;
    font-size: 12.5px;
    color: var(--swift-gray);
  }

  /* 表そのものが画面に収まるので、横スクロールの容器は用済み */
  .swift-table-scroll:has(.swift-td-price) { overflow-x: visible; }
}

/* ---- 価格の数字がオールドスタイル数字になっていた ------------------ *
 * 価格表示の多くが Playfair Display を使っている。この書体の既定の数字は
 * オールドスタイル（7が下にはみ出し、0が小さい）で、「7,000」が
 * 「7,ooo」のように読める。携帯の実機幅で見て気づいた。
 *
 * 書体は変えず、数字だけライニング（高さのそろった数字）に切り替える。
 * 同時に等幅にして、縦に並ぶ金額の桁が揃うようにする。
 *
 * セクション番号（01 / 02）のような装飾の数字はそのまま。価格まわりの
 * クラス名だけに当てている。
 * ---------------------------------------------------------------- */

[class*="price"],
[class*="__yen"],
[class*="__amount"],
[class*="__val"],
[class*="__fee"],
.swift-num,
.swift-td-price,
.swift-table td {
  font-variant-numeric: lining-nums tabular-nums;
}

/* ---- Before / After の共通部品 ------------------------------------- *
 * これまで各ページが独自の作りで、しかも中身が破綻していた。
 * 同一画像をBeforeとAfterに並べる、前後が逆、ストックフォトを混ぜる、
 * 出典が無い——すべて実際に見つかったもの。
 *
 * そこで型を1つに決める。使う側は以下を必ず埋める。
 *   1. 誰の症例か（当院／メーカー提供）を最初に書く
 *   2. 施術内容・費用・主なリスク副作用・自由診療である旨
 *   3. 効果に個人差がある旨
 *
 * これらは医療広告ガイドラインの限定解除の要件で、欠けると
 * 治療前後の写真は掲載できない。CSSでは強制できないので、
 * .swift-ba に .swift-ba__note を必ず添えること。
 * ---------------------------------------------------------------- */

.swift-ba-set {
  display: grid;
  gap: 26px;
  margin: 0;
}

@media (min-width: 860px) {
  .swift-ba-set--2 { grid-template-columns: 1fr 1fr; }
}

.swift-ba-item {
  margin: 0;
  background: var(--swift-surface, #f7f5f1);
  border: 1px solid var(--swift-line, rgba(11, 47, 91, .10));
  border-radius: 4px;
  overflow: hidden;
}

.swift-ba-item img {
  display: block;
  width: 100%;
  height: auto;
}

.swift-ba-item figcaption {
  padding: 12px 16px 14px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--swift-gray, #686d75);
  background: #fff;
  border-top: 1px solid var(--swift-line, rgba(11, 47, 91, .10));
}

.swift-ba-item figcaption strong {
  color: var(--swift-navy, #0b2f5b);
}

/* 出典の帯。誰の症例かを画像より先に読ませる。 */
.swift-ba-source {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0 0 20px;
  padding: 13px 16px;
  background: #fff;
  border-left: 3px solid var(--swift-gold, #ac9367);
  box-shadow: 0 0 0 1px var(--swift-line, rgba(11, 47, 91, .10));
  font-size: 13.5px;
  line-height: 1.8;
}

.swift-ba-source::before {
  content: "出典";
  flex: 0 0 auto;
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--swift-gold-ink, #7d6539);
  padding-top: 3px;
}

/* 限定解除の要件をまとめる注記 */
.swift-ba__note {
  margin: 20px 0 0;
  font-size: 13px;
  line-height: 1.9;
  color: #333;
}

/* ---- 施術の条件を並べる部品 ---------------------------------------- *
 * 限定解除の要件（施術内容・費用・リスク副作用・自由診療）を、
 * これまで1つの段落に詰め込んでいた。必要な情報ではあるが、
 * 14pxで6行の塊になり、読む前に飛ばされる形だった。
 *
 * 項目ごとに行を分け、見出しを左に立てて拾い読みできるようにする。
 * 同じ形を /lazer-spot /dermapen /tarumi /medical-hair-removal
 * /parts-hair-removal でも使える。
 * ---------------------------------------------------------------- */

.swift-terms {
  margin: 0;
  border-top: 1px solid var(--swift-line, rgba(11, 47, 91, .10));
}

.swift-terms > div {
  display: grid;
  gap: 2px 18px;
  padding: 13px 0;
  border-bottom: 1px solid var(--swift-line, rgba(11, 47, 91, .10));
}

@media (min-width: 620px) {
  .swift-terms > div { grid-template-columns: 132px 1fr; }
}

.swift-terms dt {
  font-size: 12.5px;
  letter-spacing: .04em;
  color: var(--swift-gold-ink, #7d6539);
  padding-top: 2px;
}

.swift-terms dd {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.85;
  color: #333;
}

.swift-terms dd small {
  display: block;
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--swift-gray, #686d75);
}

/* 画像と条件を横に並べる。狭い画面では画像が上。 */
.swift-treat {
  display: grid;
  gap: 26px;
  align-items: start;
}

@media (min-width: 900px) {
  .swift-treat { grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 38px; }
}

.swift-treat__fig {
  margin: 0;
  background: #fff;
  border: 1px solid var(--swift-line, rgba(11, 47, 91, .10));
  border-radius: 4px;
  overflow: hidden;
}

.swift-treat__fig img { display: block; width: 100%; height: auto; }

.swift-treat__fig figcaption {
  padding: 10px 14px 12px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--swift-gray, #686d75);
  border-top: 1px solid var(--swift-line, rgba(11, 47, 91, .10));
}

/* ---- スマホのドロワー：閉じられなくなっていた --------------------- *
 * 開くと、閉じるための唯一の手段であるハンバーガーがドロワーの下に
 * 隠れる。閉じるボタンも無いので、左に残る幅82pxの帯（オーバーレイ）を
 * 狙って押すしか閉じる方法が無い状態だった。
 *
 * 原因は重なり順。実測すると .swift-nav はヘッダーの子要素で、
 *   .swift-nav        position:fixed  z-index:1100
 *   .swift-hamburger  position:static z-index:auto
 * となっている。同じ重なり文脈の中では、位置指定された z:1100 の要素が
 * 必ず前に来るので、DOMの順番に関係なくボタンが埋もれる。
 * ヘッダー自体の z-index を上げても、内側の順番は変わらないので効かない
 * （一度それで直そうとして外した）。
 *
 * ハンバーガーに重なり順を持たせて、ドロワーより前に置く。
 * 開いたボタンでそのまま閉じられる。
 * ---------------------------------------------------------------- */

@media (max-width: 900px) {
  .swift-hamburger {
    position: relative;
    z-index: 1200;
  }
}

/* ---- スマホのフッターが不揃い ------------------------------------- *
 * .swift-footer__nav は justify-content:center。列の幅は中身の長さで
 * 決まるため、折り返して縦に積まれると1列ずつ中央に置かれ、左端が
 * そろわない。実測（375px幅）で 117 / 104 / 117 / 117 / 107 px と
 * 最大13pxのばらつきが出ていた。見出しとリンクの頭が揃わないので、
 * 崩れて見える。
 *
 * 縦に積む幅では左そろえにし、列は横幅いっぱいを使う。
 * 横に並ぶ幅（>700px）では今までどおり中央に置く。
 * ---------------------------------------------------------------- */

@media (max-width: 700px) {
  .swift-footer__nav {
    justify-content: flex-start;
    width: 100%;
    gap: 26px 0;
  }

  .swift-footer__col {
    flex: 1 1 100%;
    min-width: 0;
  }
}

/* ============ DRAWER: 実機で崩れた件（保険） ============ */
/* 直接の原因はページ側のメディアクエリが「@media」の直後に空白なしで「(」を
   書いていたこと（この書き方を解釈しないブラウザがある）で、これを解釈しないブラウザではサブメニューがPC用の
   position:absolute のまま残り、390px幅で left が -32px になっていた。
   ドロワーは overflow-y:auto でスクロール枠なので、負の位置の中身は
   左端で切り落とされる。ラベルの尻だけが見え、短い「AGA/FAGA」は
   丸ごと消えていた（実機の写真と計算が一致）。

   原因側は scripts/swift-media-space.py で全ページ直したが、ドロワーの
   成立条件をページ側のCSSに預けたままにしない。ここは最後に読まれるので、
   同じ指定をもう一度、空白を入れた書き方で置く。 */
@media (max-width: 900px) {
  .swift-nav {
    overflow-x: hidden;          /* 負の位置に出ても横スクロールを生まない */
  }
  /* 詳細度を 0-3-0 まで上げてある。同型のPC用ホバールール（0-3-0）が
     将来また足されても負けないようにするため。!important は使わない。 */
  .swift-nav .swift-nav__has-sub .swift-mega,
  .swift-nav .swift-nav__has-sub .swift-mega--grouped {
    position: static;
    transform: none;
    inset: auto;
    min-width: 0;
    max-width: none;
    width: 100%;
    grid-template-columns: 1fr;
    background: transparent;
    box-shadow: none;
    padding: 4px 0 10px 18px;
    gap: 4px;
  }
  /* ホバーに依存させない。タップで開く端末では最初の一回が
     リンク遷移に化けるため、モバイルでは常に開いておく。 */
  .swift-nav__has-sub .swift-mega { display: grid; }
  .swift-nav .swift-mega a {
    white-space: normal;         /* 長いラベルは折り返す */
    word-break: auto-phrase;
  }
}

/* ============ LP: 読み物を分解する部品 ============ */
/* /beauty-injection-drip は表3つと長文だけで、写真も図もゼロだった。
   「どっちを選べばいいか」「自分はどれか」を文章から読み取らせる作りに
   なっていたので、そこだけ部品に置き換える。 */

/* --- 2択の比較（注射 / 点滴）。写真ではなく数字を主役にする --- */
.swift-duo {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin: 0 0 8px;
}
.swift-duo__card {
  background: #fff;
  border: 1px solid rgba(11, 47, 91, .12);
  border-top: 3px solid var(--swift-gold, #ac9367);
  border-radius: 3px;
  padding: 26px 24px 24px;
  display: flex;
  flex-direction: column;
}
.swift-duo__label {
  font-size: 11.5px;
  letter-spacing: .16em;
  color: var(--swift-gold-ink);
  margin: 0 0 10px;
}
.swift-duo__name {
  font-size: 21px;
  font-weight: 600;
  color: var(--swift-navy, #0b2f5b);
  letter-spacing: .04em;
  margin: 0 0 18px;
}
.swift-duo__facts {
  display: flex;
  gap: 26px;
  margin: 0 0 16px;
  padding: 0 0 16px;
  border-bottom: 1px solid rgba(11, 47, 91, .09);
}
.swift-duo__facts > div { min-width: 0; }
.swift-duo__k {
  display: block;
  font-size: 11px;
  letter-spacing: .1em;
  color: #686d75;
  margin: 0 0 4px;
}
.swift-duo__v {
  display: block;
  font-size: clamp(22px, 3.4vw, 30px);
  font-weight: 600;
  line-height: 1.1;
  color: var(--swift-navy, #0b2f5b);
  font-variant-numeric: lining-nums tabular-nums;
}
.swift-duo__v small { font-size: 14px; font-weight: 500; margin-left: 2px; }
.swift-duo__text {
  font-size: 14px;
  line-height: 1.9;
  color: #3a3c40;
  margin: 0;
}
.swift-duo__text strong { color: var(--swift-navy, #0b2f5b); }

/* --- 目的から選ぶ（写真つきカード） --- */
.swift-pick {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.swift-pick__item {
  background: #fff;
  border: 1px solid rgba(11, 47, 91, .1);
  border-radius: 3px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.swift-pick__fig {
  margin: 0;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #eceae6;
}
.swift-pick__fig img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.swift-pick__body { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.swift-pick__q {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--swift-navy, #0b2f5b);
  line-height: 1.6;
  margin: 0 0 10px;
}
.swift-pick__a { font-size: 13.5px; line-height: 1.85; color: #55585e; margin: 0 0 14px; }
.swift-pick__menu {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(11, 47, 91, .09);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.swift-pick__menu b { font-size: 13.5px; font-weight: 600; color: var(--swift-navy, #0b2f5b); }
.swift-pick__menu span {
  font-size: 17px;
  font-weight: 600;
  color: var(--swift-gold-ink);
  font-variant-numeric: lining-nums tabular-nums;
  white-space: nowrap;
}

/* --- 単独の写真 --- */
.swift-shot { margin: 0; }
.swift-shot img {
  width: 100%;
  height: clamp(200px, 34vw, 340px);
  object-fit: cover;
  display: block;
  border-radius: 3px;
}
.swift-shot figcaption {
  font-size: 12.5px;
  color: #686d75;
  margin-top: 10px;
  letter-spacing: .02em;
}

/* --- セットの説明を段落の羅列からカードへ --- */
.swift-defs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  margin-top: 22px;
  background: rgba(11, 47, 91, .1);
  border: 1px solid rgba(11, 47, 91, .1);
  border-radius: 3px;
  overflow: hidden;
}
.swift-defs > div { background: #fff; padding: 16px 18px; }
.swift-defs dt {
  font-size: 14px;
  font-weight: 600;
  color: var(--swift-navy, #0b2f5b);
  margin: 0 0 6px;
  letter-spacing: .03em;
}
.swift-defs dd { margin: 0; font-size: 13.5px; line-height: 1.85; color: #55585e; }

@media (max-width: 860px) {
  .swift-pick { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .swift-duo { grid-template-columns: 1fr; gap: 14px; }
  .swift-duo__card { padding: 22px 20px; }
  .swift-pick { grid-template-columns: 1fr; }
  .swift-pick__fig { aspect-ratio: 16 / 9; }
}

/* --- LP の料金表をスマホでカードに開く --- */
/* 3〜4列の表を390pxに押し込むと1文字ずつ折り返る。行をカードに開く。 */
@media (max-width: 620px) {
  .swift-lp-table { display: block; min-width: 0; }
  .swift-lp-table caption { display: block; }
  .swift-lp-table thead { display: none; }
  .swift-lp-table tbody, .swift-lp-table tr, .swift-lp-table td { display: block; }
  .swift-lp-table tr {
    padding: 14px 0;
    border-bottom: 1px solid rgba(11, 47, 91, .1);
  }
  .swift-lp-table td { border: 0; padding: 0; }
  .swift-lp-table td:first-child {
    font-size: 15px;
    font-weight: 600;
    color: var(--swift-navy, #0b2f5b);
    margin-bottom: 4px;
  }
  .swift-lp-table td:not(:first-child):not(.num) {
    font-size: 13px;
    color: #686d75;
    line-height: 1.75;
  }
  .swift-lp-table td.num {
    margin-top: 6px;
    font-size: 17px;
    font-weight: 600;
    color: var(--swift-gold-ink);
    text-align: left;
    font-variant-numeric: lining-nums tabular-nums;
  }
}

/* --- 交互の色帯。マークアップは前からあるのに、どのCSSにも定義が無く
       6ページで無効になっていた（実測）。読み物の切れ目を作る役なので定義する。 --- */
.swift-section--tint { background: var(--swift-surface, #f7f5f1); }

/* ============ /about の特徴3つ ============ */
/* ページの一番上で「通いやすさ」を先に見せる。番号は順序ではなく
   3つあることの目印なので、装飾として薄く置く。 */
.swift-usp {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(11, 47, 91, .1);
  border: 1px solid rgba(11, 47, 91, .1);
  border-radius: 3px;
  overflow: hidden;
}
.swift-usp__item {
  background: #fff;
  padding: 34px 30px 32px;
  display: flex;
  flex-direction: column;
}
.swift-usp__no {
  font-family: var(--swift-playfair, "Playfair Display", serif);
  font-size: 30px;
  line-height: 1;
  color: rgba(172, 147, 103, .45);
  font-variant-numeric: lining-nums;
  margin-bottom: 16px;
}
.swift-usp__h {
  font-size: clamp(17px, 2.1vw, 20px);
  font-weight: 600;
  line-height: 1.55;
  color: var(--swift-navy, #0b2f5b);
  letter-spacing: .03em;
  margin: 0 0 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(172, 147, 103, .4);
}
.swift-usp__t {
  font-size: 14.5px;
  line-height: 1.95;
  color: #4a4d53;
  margin: 0;
}
.swift-usp__t strong {
  color: var(--swift-navy, #0b2f5b);
  font-variant-numeric: lining-nums tabular-nums;
}
@media (max-width: 860px) {
  .swift-usp { grid-template-columns: 1fr; }
  .swift-usp__item { padding: 26px 22px 24px; }
  .swift-usp__no { font-size: 24px; margin-bottom: 10px; }
}

/* --- 料金表をスマホでカードに開く（data-th は swift-table-stack.py が入れる） --- */
/* 390px では枠が 325px しかなく、min-width 560〜640px の表が横スクロールに
   なっていた。壊れてはいないが、価格を見比べるのに横スクロールが要るのは
   読みづらい。行をカードに開いて、列の見出しを各値の肩に出す。 */
@media (max-width: 620px) {
  .swift-price__wrap,
  .swift-table-wrap { overflow-x: visible; }
  .swift-price__table:has(td[data-th]),
  .swift-ptable:has(td[data-th]) {
    display: block;
    min-width: 0;
    width: 100%;
    border-collapse: separate;
  }
  .swift-price__table:has(td[data-th]) thead,
  .swift-ptable:has(td[data-th]) thead { display: none; }
  .swift-price__table:has(td[data-th]) tbody,
  .swift-ptable:has(td[data-th]) tbody { display: block; }
  .swift-price__table:has(td[data-th]) tbody tr,
  .swift-ptable:has(td[data-th]) tbody tr {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
    gap: 4px 14px;
    padding: 14px 2px;
    border-bottom: 1px solid rgba(11, 47, 91, .1);
  }
  .swift-price__table:has(td[data-th]) tbody td,
  .swift-ptable:has(td[data-th]) tbody td {
    display: block;
    border: 0;
    padding: 0;
    font-size: 15px;
    font-variant-numeric: lining-nums tabular-nums;
  }
  .swift-price__table:has(td[data-th]) tbody td::before,
  .swift-ptable:has(td[data-th]) tbody td::before {
    content: attr(data-th);
    display: block;
    font-size: 10.5px;
    letter-spacing: .08em;
    color: #686d75;
    margin-bottom: 3px;
    font-variant-numeric: normal;
  }
  /* 1列目は部位名。行の見出しなので幅いっぱいに置き、肩ラベルは出さない。 */
  .swift-price__table:has(td[data-th]) tbody td:first-child,
  .swift-ptable:has(td[data-th]) tbody td:first-child {
    grid-column: 1 / -1;
    font-size: 15.5px;
    font-weight: 600;
    color: var(--swift-navy, #0b2f5b);
    margin-bottom: 2px;
  }
  .swift-price__table:has(td[data-th]) tbody td:first-child::before,
  .swift-ptable:has(td[data-th]) tbody td:first-child::before { display: none; }
}

/* JSが挿入するアコーディオンのトグル。既定では出さない。
   teardown が万一失敗しても、PC幅に素のボタンが残らないようにするため。 */
.swift-nav__toggle { display: none; }

/* ------------------------------------------------------------------ *
 * モバイルドロワーのアコーディオン
 *
 * ドロワー内では .swift-mega が position:static で常時展開されるため、
 * 「オンライン診療」「院内治療」のサブ項目が20件以上そのまま縦に並び、
 * ドロワーが極端に長くなっていた。
 *
 * 折りたたみは .swift-nav--accordion（swift-nav.js が付与）配下だけに
 * 書いてある。JSが読めない環境では従来どおり全展開のままなので、
 * サブ項目に到達できなくなる事故は起きない。
 * ------------------------------------------------------------------ */

/* ドロワー化（.swift-nav{position:fixed}）と .swift-mega の position:static
   リセットが 900px なので、アコーディオンもここに揃える。
   以前は 1024px で、901〜1024px はハンバーガーが出ないのにメガが
   display:none に潰され、+ ボタンだけが浮くという状態だった。 */
@media (max-width: 900px) {
  /* ドロワー内の要素が横に溢れないようにする */
  .swift-nav { overflow-x: hidden; }

  .swift-nav--accordion .swift-nav__has-sub { position: relative; }

  /* 親項目とトグルを同じ行に置く */
  .swift-nav--accordion .swift-nav__has-sub > a { padding-right: 52px; }

  .swift-nav--accordion .swift-nav__toggle { display: block; }

  .swift-nav__toggle {
    position: absolute;
    top: 0;
    right: 0;
    /* タップ領域を44px以上確保する */
    width: 48px;
    height: 48px;
    padding: 0;
    background: none;
    border: 0;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
  }
  .swift-nav__toggle::before,
  .swift-nav__toggle::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 13px;
    height: 1.5px;
    background: var(--swift-navy, #0b2f5b);
    transform: translate(-50%, -50%);
    transition: transform .25s ease;
  }
  .swift-nav__toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
  .swift-nav__has-sub.is-expanded > .swift-nav__toggle::after { transform: translate(-50%, -50%) rotate(0deg); }

  /* 既定は閉じる。開いた時だけ出す。 */
  .swift-nav--accordion .swift-nav__has-sub > .swift-mega { display: none; }
  .swift-nav--accordion .swift-nav__has-sub.is-expanded > .swift-mega { display: grid; }
  .swift-nav--accordion .swift-nav__has-sub.is-expanded > .swift-mega--grouped { display: block; }
}

/* ------------------------------------------------------------------ *
 * パンくず（サイトツリーをGoogleに伝える本体）
 *
 * ■ なぜ addons 側に置くか
 * 定義は swift-lp.css にもあるが、**そちらを読んでいるのは56ページ中5ページだけ**
 * （実測 2026-09-01）。パンくずは全ページ共通の部品なので、
 * 全ページが読む addons 側に置かないと、注入した先で素のリストになる。
 * swift-lp.css より後に読まれるので、5ページでは上書きされて同じ見た目になる。
 *
 * ■ ヘッダー回避
 * .swift-header は position:fixed（高さ71px実測）。パンくずは top:0 に置かれるため
 * **上71pxが完全に隠れていた**（/aga は高さ62pxで1pxも見えていなかった）。
 * --swift-header-h（84px / 820px以下72px）ぶん下げて実際に見えるようにする。
 *
 * ■ 二重余白の打ち消し
 * ヘッダー回避のため .swift-page-hero などは margin-top:67px を持っている。
 * パンくずが先頭に入るとその余白が重なるので、直後の要素だけ打ち消す。
 * ------------------------------------------------------------------ */

.swift-lp-crumb {
  border-bottom: 1px solid rgba(11, 47, 91, .1);
  background: #fff;
  margin-top: var(--swift-header-h);
}

.swift-lp-crumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  list-style: none;
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px 24px;
  font-size: 12px;
  line-height: 1.6;
  color: #686d75;
}

.swift-lp-crumb li { display: flex; align-items: center; }
.swift-lp-crumb li + li::before {
  content: "／";
  margin-right: 8px;
  color: rgba(11, 47, 91, .25);
}
.swift-lp-crumb a { color: inherit; text-decoration: none; }
.swift-lp-crumb a:hover { color: var(--swift-navy); text-decoration: underline; }

/* パンくず直後の要素は、ヘッダー回避用の上マージンを持つ必要がない */
body > .swift-lp-crumb + * { margin-top: 0; }

@media (max-width: 820px) {
  .swift-lp-crumb ol { padding: 8px 16px; font-size: 11.5px; }
}


/* === swift: 料金表の合計行（tfoot） === */
/* 「初回お支払いの目安」を出すための行。
   スマホのカード化ルールに tfoot が入っておらず、tfoot だけ
   table-footer-group のまま残って表が崩れていたので明示する。 */
.swift-lp-table tfoot td {
  border-top: 2px solid var(--swift-navy, #0b2f5b);
  background: rgba(11, 47, 91, .04);
  font-size: 14.5px;
}
.swift-lp-table tfoot td.num {
  color: var(--swift-gold-ink);
  font-size: 16px;
}
@media (max-width: 620px) {
  .swift-lp-table tfoot,
  .swift-lp-table tfoot tr,
  .swift-lp-table tfoot td { display: block; }
  .swift-lp-table tfoot tr {
    padding: 14px 0 0;
    margin-top: 4px;
    border-bottom: 0;
    border-top: 2px solid var(--swift-navy, #0b2f5b);
  }
  .swift-lp-table tfoot td {
    border: 0;
    padding: 0;
    background: transparent;
  }
  .swift-lp-table tfoot td.num { margin-top: 6px; font-size: 18px; }
}


/* === swift: 薬剤サマリー（写真＋薬剤名＋特徴＋価格） === */
/* /ed と /ed-medication の薬剤リスト。元は ed-medication のインライン定義だったが
   2ページで使うことになったので共通化した。
   サムネは正方形ではなく3:2。製剤写真が 924x600 / 600x390 でどちらも3:2のため、
   正方形にすると object-fit:cover で左右が35%切れてしまう。
   ed.html は --swift-navy 等を定義していないので var() には必ず既定値を書くこと。 */
.swift-summary { background: var(--swift-surface, #f7f5f1); }
.swift-summary__list {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.swift-summary__item {
  display: flex;
  align-items: center;
  gap: 24px;
  background: #fff;
  border: 1px solid var(--swift-line, rgba(11, 47, 91, .10));
  border-left: 4px solid var(--swift-gold, #ac9367);
  border-radius: 6px;
  padding: 22px 30px;
  box-shadow: 0 8px 24px rgba(11, 47, 91, .06);
}
.swift-summary__thumb {
  width: 120px;
  height: 80px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  background: #f1ede6;
}
.swift-summary__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.swift-summary__main { flex: 1; min-width: 0; }
.swift-summary__name {
  font-size: 20px;
  color: var(--swift-navy, #0b2f5b);
  font-weight: 600;
  letter-spacing: .03em;
  margin-bottom: 6px;
}
.swift-summary__desc { font-size: 14px; color: #555; line-height: 1.7; }
.swift-summary__price {
  flex-shrink: 0;
  text-align: right;
  font-family: var(--swift-playfair, "Playfair Display", serif);
  color: var(--swift-gold-ink, #7d6539);
  white-space: nowrap;
}
.swift-summary__price strong {
  display: block;
  font-size: 26px;
  font-weight: 600;
  color: var(--swift-navy, #0b2f5b);
  letter-spacing: .02em;
}
.swift-summary__price span { font-size: 13px; color: var(--swift-gray, #8f8f8f); letter-spacing: .05em; }
@media (max-width: 768px) {
  .swift-summary__item { flex-wrap: wrap; gap: 16px 20px; padding: 20px; }
  .swift-summary__price { text-align: left; width: 100%; }
  .swift-summary__price strong { display: inline-block; margin-right: 6px; }
}
@media (max-width: 520px) {
  .swift-summary__thumb { width: 96px; height: 64px; }
  .swift-summary__name { font-size: 18px; }
}


/* === swift: スマホで表の列名を出す === */
/* 620px以下では thead を消して各セルを縦積みにしているため、
   3列を超える比較表だと「どの値が何なのか」が分からなくなる（/ed の比較表で実測）。
   data-label を持つセルだけ、値の前に列名を出す。
   属性が無い既存の表は今までどおりの見え方のまま。 */
@media (max-width: 620px) {
  .swift-lp-table td[data-label]::before {
    content: attr(data-label) "：";
    color: var(--swift-gold-ink, #7d6539);
    font-weight: 600;
  }
}

/* ------------------------------------------------------------------ *
 * Pick Up: バナー画像版（トップ index.html のみ）
 *
 * 施術名・条件・価格はバナー画像に焼き込まれているので、HTML側は文字を
 * 持たない。文字情報は img の alt が担う（各施術ページへの内部リンクの
 * アンカーテキストも alt が代わりになる）。
 *
 * 段組みが素の .swift-pickup より1段ずつ少ないのは実測の結果:
 *   バナー内のタイトル行は画像幅の 9.05%、副文言行は 5.08%。
 *   副文言を 14px 以上にするにはスライド幅 280px 以上が要る。
 *   現行の SP 2列(235px)だと 11.9px まで落ちて潰れる。
 *
 * 既存の .swift-pickup__slide 系は一切書き換えず、viewport の modifier
 * 配下だけに閉じてある。実マークアップを持つのは index.html だけだが、
 * CSS は全72ページ共通なので巻き込み事故を構造的に防いでいる。
 * ------------------------------------------------------------------ */

.swift-pickup__viewport--banner {
  gap: 12px;
}

.swift-pickup__viewport--banner .swift-pickup__slide {
  flex: 0 0 86%;          /* 次の1枚が少し見えて「送れる」と分かる幅 */
  aspect-ratio: 3 / 2;    /* バナー原寸 1536x1024 と同じ。トリミングしない */
  padding: 0;
}

/* 画像枠には単色背景もゴールドの円も要らない */
.swift-pickup__viewport--banner .swift-pickup__slide--banner {
  background: none;
}

.swift-pickup__viewport--banner .swift-pickup__slide--banner::after {
  content: none;
}

.swift-pickup__slide--banner picture,
.swift-pickup__slide--banner img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.swift-pickup__slide--banner img {
  transition: transform .9s cubic-bezier(.22, .61, .36, 1);
}

.swift-pickup__slide--banner:hover img {
  transform: scale(1.04);
}

/* 画像が未到着の枠（02 オンライン診療）だけは従来のネイビータイルのまま。
   3:2 に伸びるぶん、中身は上ぞろえではなく中央に戻す。 */
.swift-pickup__viewport--banner .swift-pickup__slide:not(.swift-pickup__slide--banner) {
  padding: 22px 20px;
  justify-content: center;
}

/* 価格の注記。画像内に税表記が無く、初回・トライアル価格に条件があるため。 */
.swift-pickup__note {
  margin: 16px auto 0;
  max-width: 680px;
  text-align: center;
  font-size: 12px;
  line-height: 1.8;
  color: #666;
}

@media (min-width: 700px) {
  .swift-pickup__viewport--banner {
    gap: 14px;
  }
  .swift-pickup__viewport--banner .swift-pickup__slide {
    flex: 0 0 calc((100% - 14px) / 2);
  }
}

@media (min-width: 1000px) {
  .swift-pickup__viewport--banner .swift-pickup__slide {
    flex: 0 0 calc((100% - 28px) / 3);
  }
}

@media (prefers-reduced-motion: reduce) {
  .swift-pickup__slide--banner img {
    transition: none;
  }
}

/* mega menu: columns as wide as their longest item (2026-09-26).
   The panel is absolutely positioned inside a narrow <li>, so its shrink-to-fit
   width collapsed to the min-content of the tracks: 148px each. Long items
   (新橋銀座の医療ダイエット 189px, テストステロン補充療法, インフルエンザ予防接種)
   ran past the column, and the longest one past the panel edge.
   Letting the panel be max-content widens only the column that needs it.
   Below 1181px the 2-column / 1-column rules above already use max-content. */
@media (min-width: 1181px) {
  .swift-mega--grouped { width: max-content; }
}
/* 2026-09-28 言語ボタン4つ */
@media (max-width:480px){html:not([lang="zh-Hans"]) .swift-header a[hreflang="zh-Hans"]:not([aria-current]),html[lang="zh-Hans"] .swift-header a[hreflang="zh-Hant"]:not([aria-current]){display:none}}

/* ============ NARROW DESKTOP HEADER FIT ============ */
/* 901–1360pxではロゴ・8項目nav・3言語・予約が同居できずnavが2段になる。
   既存のドロワーをこの幅だけ先行表示し、ヘッダーを常に1段に保つ。 */
@media (min-width:901px) and (max-width:1360px){
  .swift-hamburger{display:flex;}
  .swift-nav{
    position:fixed;
    top:0;right:-100%;
    width:78%;max-width:340px;
    height:100vh;height:100dvh;
    background:#fff;
    box-shadow:-8px 0 30px rgba(0,0,0,.15);
    padding:90px 28px 40px;
    overflow-y:auto;
    transition:right .35s ease;
    z-index:1100;
  }
  .swift-nav.is-open{right:0;}
  .swift-nav__list{
    flex-direction:column;
    align-items:flex-start;
    gap:0;
    font-size:15px;
  }
  .swift-nav__list li{width:100%;}
  .swift-nav__list a{
    display:block;
    padding:13px 0;
    border-bottom:1px solid rgba(11,47,91,.08);
    width:100%;
  }
  .swift-nav-overlay{
    position:fixed;inset:0;
    background:rgba(11,47,91,.4);
    opacity:0;visibility:hidden;
    transition:.3s;
    z-index:999;
  }
  .swift-nav-overlay.is-open{opacity:1;visibility:visible;}
  .swift-header__right .swift-btn{padding:9px 13px;font-size:12px;}
  .swift-badge{display:none;}
  .swift-mega,.swift-mega--grouped{
    position:static;transform:none;min-width:0;max-width:none;
    grid-template-columns:1fr;box-shadow:none;background:transparent;
    padding:4px 0 10px 18px;gap:4px;
  }
  .swift-mega::before{display:none;}
}

/* ============ SMALL MOBILE HEADER SAFETY ============ */
/* 390px viewportでもスクロールバー・フォント差で右端が欠けないよう、
   420px以下だけロゴと各コントロールの余白を詰める。 */
@media (max-width:420px){
  .swift-header__inner{padding-left:10px;padding-right:10px;gap:4px;}
  .swift-logo img{height:21px;width:auto;}
  .swift-header__right{gap:4px;}
  .swift-lang-en{padding:5px 6px;font-size:10.5px;}
  .swift-header__right .swift-btn{padding:7px 8px;font-size:10.5px;}
  .swift-hamburger{width:26px;}
}

/* ============ TINY MOBILE HEADER SAFETY ============ */
/* 320px端末でもロゴ・予約・ハンバーガーを欠けさせない。 */
@media (max-width:340px){
  .swift-logo img{height:18px;width:auto;}
  .swift-header__right .swift-btn{padding-left:6px;padding-right:6px;font-size:10px;}
  .swift-hamburger{width:24px;}
}

/* ============ MOBILE HEADER EDGE SAFETY ============ */
/* 421px境界のサブピクセル差と、320px端末のフォント差を吸収する。 */
@media (max-width:480px){
  .swift-header__inner{padding-left:8px;padding-right:8px;gap:3px;}
  .swift-logo img{height:20px;width:auto;}
  .swift-header__right{gap:3px;}
  .swift-header__right .swift-btn{padding:6px 7px;font-size:10px;}
  .swift-hamburger{width:24px;}
}
@media (max-width:340px){
  html[lang="ja"] .swift-header a[hreflang="zh-Hant"],
  html[lang="ja"] .swift-header a[hreflang="zh-Hans"]{display:none!important;}
  .swift-logo img{height:18px;width:auto;}
}

