@charset "UTF-8";
/* ==========================================================
   02-hero — ヒーロー + 知能バンド
   ========================================================== */

/* ---------- hero main ---------- */
.hero__main {
  position: relative;
  overflow: hidden;
  background: var(--white);
}

/* 右側の薄浅葱「流れる輪」装飾（参照元の薄赤ロゴ曲線に相当） */
.hero__main::before,
.hero__main::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero__main::before {
  width: 920px;
  height: 920px;
  top: -420px;
  right: -180px;
  background: radial-gradient(
    closest-side,
    transparent 60%,
    color-mix(in srgb, var(--asagi) 8%, transparent) 61%,
    color-mix(in srgb, var(--asagi) 8%, transparent) 82%,
    transparent 83%
  );
}
.hero__main::after {
  width: 640px;
  height: 640px;
  bottom: -300px;
  right: 240px;
  background: radial-gradient(
    closest-side,
    transparent 56%,
    color-mix(in srgb, var(--asagi) 6%, transparent) 57%,
    color-mix(in srgb, var(--asagi) 6%, transparent) 80%,
    transparent 81%
  );
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 1680px; /* 参照実測: ヒーローのみ広幅コンテナ（他セクションは1280） */
  display: grid;
  grid-template-columns: minmax(0, 58%) minmax(0, 42%); /* コピー1行が保てる範囲で写真を大きく */
  gap: 48px;
  align-items: center;
  padding-top: 56px; /* 2026-09-16 原FB: 上部が詰まって狭く見える → 28→56 */
  padding-bottom: 32px;
  padding-inline: clamp(24px, 3.5vw, 64px); /* 端まで広げすぎない。1440pxで50px・1920pxで64pxの側余白 */
}

/* ---------- NEWピル ---------- */
.hero__news {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  box-shadow: var(--shadow-card);
  border-radius: 60px;
  padding: 8px 20px 8px 8px;
  transition: box-shadow .25s, transform .25s;
}
.hero__news:hover { transform: translateY(-2px); box-shadow: var(--shadow-btn); }
.hero__news-chip {
  flex: none;
  background: var(--hiiro);
  color: var(--white);
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 12px;
  line-height: 1;
  letter-spacing: .06em;
  border-radius: 60px;
  padding: 7px 14px;
}
.hero__news-text {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
}
.hero__news-arrow {
  flex: none;
  color: var(--ink);
  transition: transform .25s;
}
.hero__news:hover .hero__news-arrow { transform: translateX(4px); }

/* ---------- タグ ---------- */
.hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.hero__tag {
  background: var(--asagi);
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  border-radius: 60px;
  padding: 7px 16px;
}

/* ---------- 左側の背景装飾（うっすいドット+リング、ゆっくり漂う） ---------- */
.hero__deco {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.hero__deco-dots {
  position: absolute;
  left: -24px;
  top: 10%;
  width: 380px;
  height: 70%;
  background-image: radial-gradient(circle, color-mix(in srgb, var(--asagi) 22%, transparent) 1.6px, transparent 1.7px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 90% 85% at 20% 45%, #000 30%, transparent 78%);
  mask-image: radial-gradient(ellipse 90% 85% at 20% 45%, #000 30%, transparent 78%);
  animation: hero-drift 16s ease-in-out infinite alternate;
}
.hero__deco-ring {
  position: absolute;
  left: -190px;
  bottom: -200px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(
    closest-side,
    transparent 62%,
    color-mix(in srgb, var(--asagi) 7%, transparent) 63%,
    color-mix(in srgb, var(--asagi) 7%, transparent) 84%,
    transparent 85%
  );
  animation: hero-drift 20s ease-in-out infinite alternate-reverse;
}
@keyframes hero-drift {
  from { transform: translateY(-10px); }
  to   { transform: translateY(12px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__deco-dots, .hero__deco-ring { animation: none; }
}

/* ---------- コピーブロック（メイン+サブの頭とお尻を揃える） ---------- */
.hero__copy { width: fit-content; }

/* ---------- 見出し ---------- */
.hero__title {
  margin-top: 16px;
  font-size: clamp(44px, 4.3vw, 88px); /* 2026-09-17: 写真の大きさはコピーに従うので伸び率を抑え、1440以下で写真のシェイプに触れないようにする（1440≈62px・1920≈83px） */
  font-weight: 800;
  line-height: 1.4;
  color: var(--ink-strong);
  font-feature-settings: "palt" 1; /* 約物詰め（イラレ調整版準拠） */
  letter-spacing: .02em;
}
.hero__title-line { display: block; white-space: nowrap; } /* PC/タブレットは1行厳守（SPで解除） */
.hero__title-mark {
  font-style: normal;
  /* ベースライン任せにせず、漢字のオプティカルセンターへボックスごと数値合わせ */
  display: inline-flex;
  align-items: center;
  height: 1.3em;
  line-height: 1;
  vertical-align: middle;
  transform: translateY(-0.148em); /* 漢字の光学中心と一致するよう実測補正済み */
  font-family: "Avenir Next Cyr", "Avenir Next", "Montserrat", sans-serif;
  font-size: 1.12em; /* 「医院を、まるごと」より少し大きく */
  font-weight: 700;
  background: var(--asagi);
  color: var(--white);
  padding: 0 .22em;
  margin-left: .08em;
}

/* ---------- サブキャッチ・注記 ---------- */
.hero__catch {
  margin-top: 16px;
  font-size: clamp(24px, 2.3vw, 45px); /* 見出しの約0.53倍（ジャスティファイが破綻しない上限比率） */
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.6;
  color: var(--ink-strong);
  font-feature-settings: "palt" 1;
  /* メイン行と頭・お尻を揃える（字間に均等配分するジャスティファイ） */
  text-align: justify;
  text-align-last: justify;
}
.hero__catch .u-nowrap { display: inline; white-space: normal; } /* justifyを字間へ効かせる */
.hero__note {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--gray);
}

/* ---------- ボタン ---------- */
.hero__btns {
  display: flex;
  gap: 24px;
  margin-top: 32px; /* カンプ実測の縦リズムに一致 */
}
.hero__btn { min-width: 320px; } /* 参照実測: 320x70 */

/* ---------- 右カラム（製品画像+バッジ） ---------- */
.hero__visual {
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 770px; /* 参照実測 */
}
.hero__product {
  display: block;
  width: 100%;
  filter: drop-shadow(0 24px 40px color-mix(in srgb, var(--ink-strong) 22%, transparent));
}
.hero__badge {
  position: absolute;
  right: -12px;
  bottom: -36px;
  width: 200px;
  z-index: 2;
}
.hero__badge .ph {
  border-radius: 50%;
  box-shadow: var(--shadow-card);
}

/* ==========================================================
   ≤1024px（タブレット）: 1カラム縦積み・画像先頭
   ========================================================== */
@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 44px;
    padding-bottom: 56px;
  }
  .hero__visual {
    order: -1;
    justify-self: center;
    max-width: 560px;
  }
  .hero__badge {
    right: 0;
    bottom: -16px;
    width: 160px;
  }
  .hero__content { text-align: center; }
  .hero__copy { margin-inline: auto; }
  .hero__tags { justify-content: center; }
  .hero__btns { justify-content: center; }
  .hero__note { text-align: left; }
  .hero__title { font-size: clamp(44px, 5.4vw, 56px); } /* 2026-09-17 村上FB: タブレットだけ小さかった（38px固定→1024pxで55px・800pxで44px。SPの44pxと連続） */
  .hero__catch {
    font-size: clamp(26px, 3vw, 32px); /* 同上。SPの28pxと連続 */
    text-align: center;
    text-align-last: auto; /* 中央寄せ構成ではジャスティファイ解除（幅不足で折り返すため） */
  }

}

/* ==========================================================
   ≤768px（SP）: 参照 mf-sp-hero
   画像→ピル→タグ→H1→注記→ボタン縦積み（リードは非表示）
   ========================================================== */
@media (max-width: 768px) {
  .hero__inner {
    padding-top: 24px;
    padding-bottom: 48px;
    gap: 28px;
  }
  .hero__main::before {
    width: 560px;
    height: 560px;
    top: -260px;
    right: -160px;
  }
  .hero__main::after { display: none; }
  .hero__deco-dots { display: none; } /* SPは側余白が無いためドットは非表示 */
  .hero__deco-ring { width: 320px; height: 320px; left: -160px; bottom: -140px; }

  .hero__visual { max-width: 420px; }
  .hero__badge {
    width: 120px;
    right: 0;
    bottom: 24px;
  }
  .hero__news {
    gap: 10px;
    padding: 7px 16px 7px 7px;
  }
  .hero__news-text { font-size: 14px; }
  .hero__tags { margin-top: 20px; }
  .hero__title {
    font-size: clamp(24px, 7.4vw, 32px);
    margin-top: 12px;
  }
  /* SPは読点位置で2行に。テキスト折返しはインラインブロック境界で
     ブレークしないことがあるため、flexの折返しで確実に制御する */
  .hero__title-line {
    white-space: normal;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: baseline;
  }
  .hero__catch {
    font-size: 19px;
    margin-top: 14px;
    text-align: center;
    text-align-last: auto; /* SPはジャスティファイ解除して中央揃え */
  }
  .hero__catch .u-nowrap { display: inline-block; white-space: nowrap; } /* 読点で折り返し */

  .hero__btns {
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: 28px;
  }
  .hero__btn {
    width: 100%;
    min-width: 0; /* PCの320px下限を解除。360px幅の端末で列が広がり横スクロールになるのを防ぐ */
    max-width: 400px;
    font-size: 19px;
    padding: 13px 24px;
  }

}

/* ==========================================================
   写真FV（2026-09-17 支給素材）
   PC: 画像は .hero__main 基準で絶対配置（DOM上は .hero__content 内）。上0・右0・下0でヒーローの高さに
       合わせ、幅は比率のまま（切らない）。ヒーローの高さはコピー＋上下余白で決まるので、画像の大きさは
       テキストのスケールに従う。左29.6%の透過部分がコピーと重なるため pointer-events を切る
   ≤1024: 文中（サブコピーの下・ボタンの上）に全幅バナーとして置く
   ========================================================== */
.hero__main { isolation: isolate; } /* 背景装飾を z-index:-1 で本文の下に沈めるための積層コンテキスト */
.hero__main::before,
.hero__main::after,
.hero__deco { z-index: -1; }
.hero__inner {
  position: static; /* 画像を .hero__main 基準で置くため（z-index も不要に） */
  z-index: auto;
  padding-top: clamp(28px, 2.7vw, 52px);
  padding-bottom: clamp(28px, 2.7vw, 52px);
}
.hero__content { position: static; z-index: auto; }
.hero__visual--photo {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  width: auto;
  max-width: none;
  margin: 0;
  pointer-events: none; /* 透過部分がボタンに被ってもクリックを妨げない */
}
.hero__visual-crop,
.hero__visual-crop picture { display: block; height: 100%; }
.hero__visual-img {
  display: block;
  height: 100%;
  width: auto;
  max-width: none;
  margin: 0;
}
/* 1025〜1200px: ボタン2つの行（320+24+320）が写真の青いシェイプに当たるので少し詰める */
@media (min-width: 1025px) and (max-width: 1200px) {
  .hero__btn { min-width: 270px; }
  .hero__inner { padding-top: 24px; padding-bottom: 24px; }
}
@media (min-width: 1025px) and (max-width: 1100px) {
  .hero__inner { padding-top: 16px; padding-bottom: 16px; } /* 2カラムの下限。写真のシェイプとコピーの間を確保 */
}

@media (max-width: 1024px) {
  .hero__inner { padding-top: 32px; }
  /* タブレット/SP: 全幅バナー素材（hero-visual-mobile.png）をサブコピーの下に、側余白を打ち消して幅いっぱいで */
  .hero__visual--photo {
    position: static;
    width: auto;
    height: auto;
    margin: 28px calc(-1 * clamp(24px, 3.5vw, 64px)) 0;
    pointer-events: auto;
  }
  .hero__visual-crop,
  .hero__visual-crop picture { height: auto; }
  .hero__visual-img { width: 100%; height: auto; }
}
@media (max-width: 768px) {
  .hero__inner { padding-top: 28px; }
  /* 2026-09-17 村上FB: SPは最初に見出しを見せる。並びを 見出し → サブコピー → タグ → 写真 → ボタン に */
  .hero__content { display: flex; flex-direction: column; align-items: stretch; }
  .hero__copy { order: 1; margin-inline: auto; }
  .hero__tags { order: 2; margin-top: 18px; }
  .hero__visual--photo { order: 3; }
  .hero__btns { order: 4; }
  .hero__title { margin-top: 0; }
  /* 2026-09-17 村上FB: SPは見出し・サブコピーをもっと大きく、見出しは「医院を、まるごと／AI・DX」の2行 */
  .hero__title {
    font-size: clamp(32px, 10.4vw, 44px); /* 375pxで39px */
    line-height: 1.3;
    margin-top: 0; /* 見出しが先頭に来るので上余白なし */
  }
  .hero__title .u-nowrap { display: contents; } /* 「まるごと」と「AI・DX」を別々の折返し単位にして読点の後ろで切れないようにする */
  .hero__title-mark {
    transform: none; /* 単独行なので漢字との光学合わせは不要 */
    margin-left: 0;
    margin-top: .08em;
  }
  .hero__catch {
    font-size: clamp(20px, 6.4vw, 28px); /* 375pxで24px */
    line-height: 1.5;
    margin-top: 12px;
  }
  .hero__visual--photo { margin-top: 24px; }
  .hero__btns { margin-top: 24px; }
}
