/* ========================================
   株式会社フルラフ コーポレートサイト
   医療・介護DX支援ページ（ビジュアル版）専用スタイル

   full-lafu.com の構成（全画面写真ヒーロー / 英字大見出し+和文 /
   円形キーワード+大判写真 / 写真タイル）を踏襲しつつ、
   配色は common.css のトークンのみを使う。アクセントは DX事業の
   テーマカラー（スレート）で、index.html の Service 04 と揃えている。
   ======================================== */

/* --- DX事業のテーマカラー ---
   index.html の Service 04（医療・介護DX支援）と同じスレート系に統一する。
   このファイルは service-visual.html でのみ読み込むため、他ページには影響しない。 */
:root {
  --dx-accent: var(--svc-slate-600);
  --dx-accent-strong: var(--svc-slate-700);
  --dx-accent-soft: var(--svc-slate-50);
}

/* ページ内の主要ボタン・見出し装飾もテーマカラーに合わせる
   （ヘッダーのお問い合わせボタンはサイト共通のブランド色なので触らない） */
.v-hero .btn--primary,
.service-contact .btn--primary {
  background: var(--dx-accent);
}

.v-hero .btn--primary:hover,
.service-contact .btn--primary:hover {
  background: var(--dx-accent-strong);
}

.v-section .section__label,
.v-section .section__title::after {
  color: var(--dx-accent);
}

/* --- ヒーロー --- */
.v-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 96px;
  overflow: hidden;
  background: var(--cream-50);
}

.v-hero__media {
  position: absolute;
  inset: 0;
}

.v-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* 実写が入るまでの暫定表示。写真を入れたら --pending を外すだけで切り替わる */
.v-hero__media--pending {
  background:
    radial-gradient(ellipse at 18% 22%, rgba(183, 85, 47, 0.14) 0%, transparent 58%),
    radial-gradient(ellipse at 82% 72%, rgba(74, 124, 89, 0.14) 0%, transparent 58%),
    linear-gradient(150deg, var(--cream-50) 0%, var(--cream-100) 55%, var(--oat-100) 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 84px;
}

.v-hero__media--pending::after {
  display: none;
}

.v-hero__pending {
  position: relative;
  z-index: 2;
  font-size: 12px;
  letter-spacing: 0.5px;
  color: var(--ink-500);
  border: 1px dashed var(--line);
  border-radius: 100px;
  padding: 6px 18px;
  background: rgba(250, 249, 245, 0.7);
}

/* 実写を入れたとき、文字が乗る範囲だけ明るい膜をかけて可読性を確保する
   （暗幕にすると全体が黒くなるため、クリーム側に寄せる） */
.v-hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(250, 249, 245, 0.9) 0%,
    rgba(250, 249, 245, 0.82) 45%,
    rgba(250, 249, 245, 0.92) 100%
  );
}

.v-hero__body {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.v-hero__eyebrow {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--ink-700);
  background: var(--cream-100);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 6px 22px;
  margin-bottom: 28px;
}

.v-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(30px, 5.2vw, 56px);
  font-weight: 600;
  color: var(--ink-900);
  line-height: 1.45;
  margin-bottom: 24px;
  /* 「システ / ムへ。」のような不自然な折り返しを避ける */
  text-wrap: balance;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.v-hero h1 em {
  font-style: italic;
  color: var(--dx-accent);
}

.v-hero__lead {
  font-size: clamp(15px, 1.6vw, 17px);
  color: var(--ink-700);
  line-height: 2;
  margin-bottom: 40px;
}

.v-hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* 未提供サービスのヒーローに置く注記 */
.v-hero__dev {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 12px 26px;
  border: 2px solid var(--dx-accent);
  border-radius: var(--radius-sm);
  background: var(--dx-accent-soft);
  font-size: 14px;
  color: var(--ink-900);
}

.v-hero__dev-badge {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--dx-accent-strong);
}

.btn--ghost {
  background: transparent;
  color: var(--ink-900);
  border: 1.5px solid var(--ink-700);
}

.btn--ghost:hover {
  background: var(--ink-900);
  color: var(--cream-50);
}

/* スクロール誘導 */
.v-hero__scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.v-hero__scroll span {
  display: block;
  width: 1px;
  height: 34px;
  background: var(--ink-500);
  animation: scrollHint 2s ease-in-out infinite;
  transform-origin: bottom;
}

@keyframes scrollHint {
  0%, 100% { transform: scaleY(0.3); opacity: 0.4; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* --- セクション枠 --- */
.v-section {
  padding: 104px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.v-section--alt {
  background: var(--oat-100);
  max-width: none;
}

.v-section--alt > * {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* --- 見出し（英字 + 和文） --- */
.v-title {
  text-align: center;
  margin-bottom: 56px;
}

.v-title__en {
  display: block;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(30px, 4.5vw, 46px);
  font-weight: 500;
  color: var(--dx-accent);
  line-height: 1.2;
  margin-bottom: 8px;
}

.v-title__ja {
  font-family: var(--font-serif);
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 600;
  color: var(--ink-900);
}

.v-lead {
  text-align: center;
  font-size: 16px;
  color: var(--ink-700);
  max-width: 700px;
  margin: -32px auto 48px;
}

.v-note {
  text-align: center;
  font-size: 13px;
  color: var(--ink-700);
  margin-top: 24px;
}

.v-badge {
  display: inline-block;
  margin-left: 8px;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 100px;
  background: var(--dx-accent-soft);
  color: var(--dx-accent-strong);
}

/* --- 写真プレースホルダー（実写を差し込むまでの枠） --- */
.photo-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 100%;
  min-height: 220px;
  padding: 24px;
  text-align: center;
  background:
    repeating-linear-gradient(
      45deg,
      var(--cream-100) 0px,
      var(--cream-100) 12px,
      var(--oat-100) 12px,
      var(--oat-100) 24px
    );
  border: 2px dashed var(--line);
  border-radius: var(--radius-md);
  color: var(--ink-500);
}

.photo-slot__icon {
  width: 34px;
  height: 34px;
  color: var(--ink-500);
}

.photo-slot__icon svg {
  width: 100%;
  height: 100%;
}

.photo-slot__label {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-700);
}

.photo-slot__spec {
  font-size: 12px;
  color: var(--ink-500);
}

/* aspect-ratio を効かせる。min-height を残すと min-content 幅が
   「min-height × 比率」まで膨らみ、グリッド列を押し広げて横スクロールになる */
.photo-slot--wide { aspect-ratio: 16 / 9; min-height: 0; }
.photo-slot--tile { aspect-ratio: 6 / 5; min-height: 0; }
.photo-slot--step { aspect-ratio: 3 / 2; min-height: 0; }

/* --- ビジョン --- */
.v-vision__grid {
  display: grid;
  grid-template-columns: 200px 1fr 200px;
  gap: 32px;
  align-items: center;
}

/* グリッド項目の既定 min-width:auto が列を押し広げないようにする */
.v-vision__grid > *,
.v-menu > *,
.v-gallery > *,
.v-split > *,
.v-case > * {
  min-width: 0;
}

.v-vision__photo {
  margin: 0;
}

.v-bubbles {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.v-bubble {
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--cream-50);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 12px;
  text-align: center;
}

.v-bubble__en {
  font-family: var(--font-serif);
  font-size: clamp(15px, 1.5vw, 19px);
  font-weight: 600;
  color: var(--dx-accent-strong);
  line-height: 1.25;
}

.v-bubble__ja {
  font-size: 12px;
  color: var(--ink-700);
}

.v-vision__text {
  text-align: center;
  font-size: 16px;
  color: var(--ink-700);
  line-height: 2;
  margin-top: 48px;
}

/* --- サービスメニュー（写真タイル） --- */
.v-menu {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.v-menu__item {
  display: block;
  background: var(--cream-50);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.v-menu__item:hover {
  box-shadow: var(--shadow-md);
}

.v-menu__media {
  position: relative;
  aspect-ratio: 6 / 5;
  overflow: hidden;
  background: var(--oat-100);
}

/* 未提供の機能は、画像の上に大きく明示して誤解を防ぐ */
.v-dev-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  background: rgba(250, 249, 245, 0.72);
}

.v-dev-overlay__main {
  font-family: var(--font-serif);
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--dx-accent-strong);
  border: 3px solid var(--dx-accent);
  border-radius: var(--radius-sm);
  padding: 10px 28px;
  background: rgba(250, 249, 245, 0.92);
  transform: rotate(-6deg);
}

.v-dev-overlay__sub {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-900);
  background: rgba(250, 249, 245, 0.92);
  border-radius: 100px;
  padding: 5px 18px;
}

/* スタンプの背後で写真枠の仕様テキストが透けると読みにくいので隠す
   （枠の役割は aria-label と、写真差し込み時に外す前提のこの overlay が担う） */
.v-menu__media--dev .photo-slot__icon,
.v-menu__media--dev .photo-slot__label,
.v-menu__media--dev .photo-slot__spec {
  visibility: hidden;
}

.v-menu__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  transition: transform 0.6s ease;
}

.v-menu__item:hover .v-menu__media img {
  transform: scale(1.04);
}

.v-menu__body {
  padding: 28px;
}

.v-menu__en {
  display: block;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 15px;
  color: var(--dx-accent);
  margin-bottom: 4px;
}

.v-menu__body h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink-900);
  margin-bottom: 10px;
}

.v-menu__body p {
  font-size: 15px;
  color: var(--ink-700);
  margin-bottom: 14px;
}

.v-menu__status {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 100px;
}

.v-menu__status--live {
  background: var(--svc-green-50);
  color: var(--svc-green-700);
  border: 1px solid var(--svc-green-600);
}

.v-menu__status--dev {
  background: var(--dx-accent-soft);
  color: var(--dx-accent-strong);
  border: 1px solid var(--dx-accent);
}

/* --- 製品ギャラリー --- */
.v-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.v-shot {
  margin: 0;
  background: var(--cream-50);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}

/* ブラウザのウィンドウ枠。画面写真であることが一目で伝わるようにする */
.v-frame {
  position: relative;
  padding-top: 30px;
  background: var(--oat-100);
  border-bottom: 1px solid var(--line);
}

.v-frame::before {
  content: '';
  position: absolute;
  top: 11px;
  left: 14px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink-500);
  box-shadow: 14px 0 0 var(--ink-500), 28px 0 0 var(--ink-500);
  opacity: 0.45;
}

.v-shot img {
  display: block;
  width: 100%;
  height: auto;
  border-bottom: 1px solid var(--line);
}

.v-frame img {
  border-bottom: none;
  border-top: 1px solid var(--line);
}

.v-shot figcaption {
  padding: 18px 22px;
  font-size: 14px;
  color: var(--ink-700);
  line-height: 1.8;
}

.v-shot figcaption strong {
  display: block;
  font-size: 15px;
  color: var(--ink-900);
  margin-bottom: 2px;
}

.v-shot--wide { grid-column: 1 / -1; }

/* 縦長のショットは高さを抑えて上部だけ見せる */
.v-shot--tall img,
.v-shot--phone img {
  max-height: 520px;
  object-fit: cover;
  object-position: top center;
}

.v-shot--phone img {
  background: var(--oat-100);
  object-fit: contain;
  padding: 20px 0;
}

/* --- 2カラム（臨床データ蓄積） --- */
.v-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.v-split__media {
  position: relative;
}

.v-split__body h3 {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink-900);
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.v-split__body h3 + p {
  font-size: 15px;
  color: var(--ink-700);
  margin-bottom: 12px;
}

.v-list {
  list-style: none;
  margin-bottom: 32px;
}

.v-list li {
  position: relative;
  padding: 5px 0 5px 20px;
  font-size: 14px;
  color: var(--ink-700);
}

.v-list li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 15px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--dx-accent);
}

/* --- 導入の流れ --- */
.v-flow {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 940px;
  margin: 0 auto;
}

.v-flow__item {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  align-items: center;
  background: var(--cream-50);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
}

.v-flow__num {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 600;
  color: var(--dx-accent-strong);
  background: var(--dx-accent-soft);
  border-radius: 100px;
  padding: 3px 16px;
  margin-bottom: 8px;
}

.v-flow__body h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--ink-900);
  margin-bottom: 6px;
}

.v-flow__body p {
  font-size: 14px;
  color: var(--ink-700);
}

/* --- 導入実績 --- */
.v-case {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
  background: var(--cream-50);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.v-case__media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}

.v-case__label {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink-900);
  margin-bottom: 12px;
}

.v-case__text {
  font-size: 15px;
  color: var(--ink-700);
  margin-bottom: 20px;
}

.v-case__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 15px;
  font-weight: 600;
  color: var(--dx-accent);
}

.v-case__link:hover {
  color: var(--dx-accent-strong);
  text-decoration: underline;
}

/* --- メッセージ --- */
.v-message__body {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.v-message__body p {
  font-size: clamp(15px, 1.7vw, 17px);
  color: var(--ink-700);
  line-height: 2.1;
  margin-bottom: 12px;
}

.v-message__body strong {
  color: var(--ink-900);
  font-weight: 700;
  /* 下線で強調（色だけに頼らない） */
  border-bottom: 2px solid var(--dx-accent);
  padding-bottom: 1px;
}

.v-message__sign {
  margin-top: 28px;
  font-family: var(--font-serif);
  font-size: 14px !important;
  color: var(--ink-500) !important;
}

/* --- 問い合わせ（フォームのみ） ---
   このページは service.css を読み込まないため、共通部品の見え方をここで整える */
.service-contact {
  background: var(--oat-100);
  text-align: center;
}

.service-contact .section__label {
  color: var(--dx-accent);
}

.service-contact .section__title::after {
  background: var(--dx-accent);
}

.service-contact__lead {
  font-size: 16px;
  color: var(--ink-700);
  line-height: 2;
  max-width: 620px;
  margin: 0 auto 32px;
}

.service-contact__actions {
  display: flex;
  justify-content: center;
}

.service-contact__note {
  font-size: 13px;
  color: var(--ink-500);
  margin-top: 18px;
}

.btn--wide {
  min-width: 280px;
}

/* 追従CTAを1列にする（common.css は 1fr 1.4fr の2列） */
.mobile-cta--single {
  grid-template-columns: 1fr;
}

.pc-only { display: inline; }

/* --- レスポンシブ --- */
@media (max-width: 900px) {
  .v-vision__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* 円形キーワードは横並び2つに畳む */
  .v-bubbles {
    flex-direction: row;
    justify-content: center;
  }

  .v-bubble {
    width: 150px;
    flex: 0 0 150px;
  }

  .v-vision__photo { order: -1; }

  .v-menu,
  .v-gallery,
  .v-split,
  .v-case {
    grid-template-columns: 1fr;
  }

  .v-flow__item {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .v-hero {
    min-height: 88vh;
    padding: 100px 20px 80px;
  }

  .v-section {
    padding: 64px 20px;
  }

  .v-title { margin-bottom: 36px; }

  .v-lead { margin-top: -20px; }

  .v-hero__actions .btn { width: 100%; }

  .v-shot--tall img,
  .v-shot--phone img { max-height: 420px; }

  .v-case { padding: 20px; }

  .pc-only { display: none; }

  /* 追従CTAバーの高さぶん、最後の要素が隠れないようにする */
  .footer { padding-bottom: 72px; }
}

/* --- 印刷（検討資料として配布されるため、操作UIを除き紙面を整える） --- */
@media print {
  .header,
  .mobile-cta,
  .page-top,
  .v-hero__scroll,
  .v-hero__actions {
    display: none !important;
  }

  .v-hero {
    min-height: auto;
    padding: 0 0 24px;
    background: #fff;
  }

  .v-hero__media { position: static; height: 260px; }
  .v-hero__media::after { display: none; }

  .v-hero h1,
  .v-hero__lead,
  .v-hero__eyebrow {
    color: #000 !important;
    text-shadow: none !important;
    border-color: #000 !important;
  }

  .v-section,
  .v-section--alt,
  .v-menu__item,
  .v-shot,
  .v-flow__item,
  .v-case {
    background: #fff !important;
    box-shadow: none !important;
  }

  .service-contact {
    background: #fff !important;
    color: #000 !important;
  }

  .service-contact .section__title,
  .service-contact__lead,
  .service-contact__tel,
  .service-contact__note {
    color: #000 !important;
  }

  .v-shot,
  .v-menu__item,
  .v-flow__item,
  .v-case,
  .photo-slot {
    break-inside: avoid;
    page-break-inside: avoid;
  }
}
