@charset "UTF-8";
/* ==========================================================
   05-about — mitokiとは（2カラム: 円形図 + テキスト + 実績3カード）
   ========================================================== */

.about {
  background: var(--white);
  padding: 72px 0 88px;
  line-break: strict; /* 行頭の小書きかな・長音を禁則（ナレ|ッジ等の泣き別れ防止） */
}

.about__head {
  margin-bottom: 24px; /* 右カラム内の見出し（円形図と高さを揃える構造） */
}

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 500px) minmax(0, 1fr);
  gap: 24px 64px;
  align-items: center;
}

/* ---------- 左: 円形フィールド+デバイスモック+機能バブル ---------- */
.about__figure {
  position: relative;
  width: 100%;
  max-width: 540px;
  aspect-ratio: 1 / 1;
  margin-inline: auto;
}

/* 背面の浅葱グラデ円形フィールド（白バブルをコントラストで浮かせる主役面） */
.about__field {
  position: absolute;
  left: 7%;
  top: 5%;
  width: 86%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: linear-gradient(155deg, #4CBFD6 0%, #00A5BF 78%);
}

/* 中央: PC+スマホのモック（バブルと離すためひと回り縮小・円の中心に配置） */
.about__mock {
  position: absolute;
  left: 10.5%;
  top: 21.1%; /* フィールド円(中心48%)に対してモックが垂直センターに来る位置 */
  width: 79%;
  height: auto;
  z-index: 1;
  filter: drop-shadow(0 18px 32px rgba(0, 0, 0, .16));
}

/* バブル = 白円(塗りアイコン) + 白ピルラベル。中心座標指定で等角に一周 */
.about__bubble {
  position: absolute;
  z-index: 2;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}
.about__bubble-circle {
  display: grid;
  place-items: center;
  width: 98px;
  height: 98px;
  border-radius: 50%;
  background: var(--white);
  border: 3.5px solid var(--asagi); /* 白背景上でも輪郭が立つように */
  box-shadow: 0 8px 22px rgba(0, 30, 40, .16);
}
.about__bubble-circle svg {
  width: 50%;
  height: 50%;
}
.about__bubble-label {
  background: var(--white);
  border: 2px solid var(--asagi); /* 円と同じ理由で輪郭を明示 */
  border-radius: 20px;
  padding: 4px 16px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink-strong);
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0, 30, 40, .14);
  font-feature-settings: "palt" 1;
}

/* 等角配置（一周・モックの縁から離した外周） */
.about__bubble--p1 { left: 50%;   top: 3%; }   /* 上:   お知らせ */
.about__bubble--p2 { left: 88.5%; top: 20%; }  /* 右上: マニュアル */
.about__bubble--p3 { left: 90.5%; top: 72%; }  /* 右下: 患者管理 */
.about__bubble--p4 { left: 50%;   top: 94%; }  /* 下:   採用 */
.about__bubble--p5 { left: 9.5%;  top: 72%; }  /* 左下: 教育 */
.about__bubble--p6 { left: 11.5%; top: 20%; }  /* 左上: 経営管理 */

/* ---------- 右: テキスト ---------- */
.about__lead {
  font-size: 26px;
  font-weight: 700;
  color: var(--asagi);
  line-height: 1.7;
  font-feature-settings: "palt";
  letter-spacing: .02em;
  text-wrap: pretty;
}

.about__block {
  margin-top: 24px;
}
.about__block-title {
  position: relative;
  padding-left: 20px; /* ●10px + 間隔10px（折返し行も頭が揃うようにぶら下げ） */
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.6;
  font-feature-settings: "palt";
  letter-spacing: .02em;
  text-wrap: pretty;
}
.about__block-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: calc(.8em - 5px); /* 1行目の光学中心（line-height1.6: (1.6em−10px)/2 = .8em−5px）に一致 */
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--asagi);
}
.about__block-text {
  margin-top: 8px;
  font-size: 18px;
  line-height: 1.9;
  text-wrap: pretty;
}

/* ---------- 実績3カード ----------
   構造: lead（手段・小）→ title（対象・太字＋短いルール）→ value（数値）
   title が flex:1 で余白を吸収し、見出しが1行/2行で揺れても数値行の底が3枚で揃う */
.about__stats {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.about__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--asagi);
  border-radius: var(--radius);
  padding: 18px 12px 18px;
  text-align: center;
}
.about__stat-lead {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--gray);
  font-feature-settings: "palt";
  letter-spacing: .02em;
}
.about__stat-title {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  margin-top: 6px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink);
  font-feature-settings: "palt";
  letter-spacing: .02em;
}
/* 見出しは意味の切れ目（セグメント）でだけ折り返す。flex の子は text ブロックと ::after の2つ */
.about__stat-title-text {
  display: block;
}
.about__stat-title .seg {
  display: inline-block;
}
.about__stat-title::after {
  content: "";
  display: block;
  width: 28px;
  height: 2px;
  margin: 10px auto 0;
  border-radius: 1px;
  background: var(--asagi);
}
.about__stat-value {
  margin-top: 12px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  color: var(--asagi);
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
}
.about__stat-num {
  font-family: var(--font-en);
  font-size: 44px;
  font-weight: 700;
}
.about__stat-fix {
  font-size: 17px;
  font-weight: 700;
}
.about__stat-note {
  margin-top: 8px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--gray);
}
/* 3カード共通の注記 */
.about__stats-foot {
  margin-top: 12px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--gray);
  font-feature-settings: "palt";
}
/* 注記は意味の切れ目でだけ折り返す（セグメント単位） */
.about__stat-note .seg,
.about__stats-foot .seg {
  display: inline-block;
}

/* ---------- responsive ---------- */
/* 2カラム維持のまま右カラムが最も狭くなる帯域（〜460px）では
   数値行が折れてカード内で崩れるため、実績カードのみ縦積みに退避 */
@media (min-width: 1025px) and (max-width: 1160px) {
  .about__stats {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

@media (max-width: 1024px) {
  .about {
    padding: 80px 0;
  }
  .about__head {
    margin-bottom: 20px;
  }
  .about__grid {
    grid-template-columns: 1fr;
    gap: 64px; /* 上バブルの図上はみ出し(約56px)が統計カードに触れない間隔 */
  }
  /* 2026-09-17 村上FB: 縦積み時は 見出し → リード「“見て解ける”ように」→ 図 → 本文 → 実績カード の順。
     図は .about__body の外にあるため、.about__body を display:contents にして子要素をグリッドに直接並べ order で制御 */
  .about__body { display: contents; }
  .about__grid { gap: 0; } /* 間隔は各要素の margin で管理 */
  .about__head { order: 1; text-align: center; } /* 2026-09-17 村上FB: 縦積み時は他セクションと同じく中央揃え */
  .about__lead { order: 2; text-align: center; }
  .about__figure {
    order: 3;
    max-width: 460px;
    margin: 88px auto 40px; /* 上バブルの図上はみ出し(約56px)とリードの間に約30px確保 */
  }
  .about__block { order: 4; margin-top: 0; }
  .about__stats { order: 5; }
  .about__stats-foot { order: 6; text-align: center; }
  .about__bubble-circle {
    width: 88px;
    height: 88px;
  }
}

@media (max-width: 768px) {
  .about {
    padding: 64px 0 72px;
  }
  .about__head {
    margin-bottom: 16px;
  }
  .about__grid {
    gap: 48px; /* 同上: 上バブル(はみ出し約40px)とのクリアランス確保 */
  }
  .about__figure {
    max-width: 420px;
    margin: 52px auto 32px; /* 上バブルのはみ出し約40px分 */
  }
  .about__bubble { gap: 5px; }
  .about__bubble-circle {
    width: 68px;
    height: 68px;
  }
  .about__bubble-label {
    font-size: 13px;
    padding: 3px 12px;
  }
  .about__lead {
    font-size: 22px;
  }
  .about__block-title {
    font-size: 18px;
  }
  .about__block-text {
    font-size: 16px;
  }
  .about__stats {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 32px;
  }
  .about__stat {
    padding: 16px 12px 12px;
  }
  .about__stat-num {
    font-size: 40px;
  }
}
