/*
 * 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);
}

.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);
}

.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);
}

@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);
}

.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: #fff;
}

.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: 300px;
  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);
  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: 1024px) {
  /* 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);
}

/* ------------------------------------------------------------------ *
 * 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 */
.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%);
  }

  /* the mega is static inside the burger panel, so only translate on desktop */
  .swift-mega {
    transform: translate(-50%, -6px);
  }
}

@media (max-width: 1024px) {
  .swift-mega {
    opacity: 1;
    transform: none;
  }
}

@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 {
  /* darker gold reserved for text; the original stays for rules and borders */
  --swift-gold-ink: #856d3e;
}

/* 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);
}

.swift-mega--grouped a:hover::before {
  transform: scaleX(1);
}

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

@media (max-width: 1024px) {
  .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:#ac9367;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:#6f7276;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%);
  }
}
