/* milike.jp v7（2026-11）トップの組み直しで足した部品
   3つのサービス＋事務所の案内／事例／進め方 */

/* ---------- ヒーロー ---------- */
.trust { max-width: 560px; }

/* ---------- サービスカード：サイト制作の画面 ---------- */
.card__media--shot {
  background: #e6e1d7;
  padding: 20px 22px 0;
}
.browser {
  height: 100%;
  background: #fff;
  border-radius: 8px 8px 0 0;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(43, 43, 40, 0.14);
}
.browser__bar {
  display: flex;
  gap: 5px;
  align-items: center;
  height: 18px;
  padding: 0 9px;
  background: #f4f2ee;
  border-bottom: 1px solid var(--line);
}
.browser__bar i { width: 6px; height: 6px; border-radius: 50%; background: #d3cec3; }
.browser img { width: 100%; height: auto; object-fit: cover; object-position: top; }

/* ---------- 書類と手続き（事務所の案内） ---------- */
.office-note {
  margin-top: 28px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-left: 6px solid var(--ink);
  padding: 32px 40px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px 40px;
  align-items: center;
}
.office-note__label {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--sub);
  margin-bottom: 6px;
}
.office-note__title { font-size: 20px; font-weight: 900; margin-bottom: 10px; }
.office-note__body { font-size: 14.5px; }
.office-note__link {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 12px 26px;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}
.office-note__link:hover { background: var(--ink); color: var(--bg); }

/* ---------- 事例 ---------- */
.works { display: grid; gap: 28px; margin-top: 48px; }

.work {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
}
.work:nth-child(even) .work__figure { order: 2; }

.work__figure {
  background: #e6e1d7;
  min-height: 340px;
  padding: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.work__body { padding: 46px 46px 44px; align-self: center; }

.work__tag {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--acc-press);
  background: var(--acc-soft);
  border-radius: 999px;
  padding: 4px 14px;
  margin-bottom: 16px;
}

.work__title { font-size: 25px; font-weight: 900; letter-spacing: 0.03em; line-height: 1.5; }

.work__text { font-size: 15px; margin-top: 16px; }

.work__ba { margin-top: 20px; display: grid; gap: 14px; }
.work__ba div { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 16px; align-items: start; }
.work__ba dt {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  line-height: 1;
  padding: 7px 0;
  margin-top: 4px;
  border-radius: 6px;
  color: var(--sub);
  background: var(--bg);
}
.work__ba div:last-child dt { color: #fff; background: var(--acc); }
.work__ba dd { font-size: 15px; }

.work__links { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 22px; }
.work__links a { font-family: var(--font-head); font-size: 14px; font-weight: 700; }
.work__links a::after { content: "\2192"; margin-left: 6px; }

.works__note { font-size: 13px; color: var(--sub); margin-top: 20px; }

/* 図1：いくつもの入口をひとつに */
.fig-gather {
  width: 100%;
  max-width: 460px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) 34px minmax(0, 1.2fr);
  gap: 14px;
  align-items: center;
}
.fig-gather__from { display: grid; gap: 10px; }
.fig-gather__from span {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 12px;
  box-shadow: 0 3px 10px rgba(43, 43, 40, 0.07);
}
.fig-gather__from span:nth-child(1) { transform: rotate(-3deg) translateX(-4px); }
.fig-gather__from span:nth-child(2) { transform: rotate(2deg) translateX(8px); }
.fig-gather__from span:nth-child(3) { transform: rotate(-1.5deg) translateX(-2px); }
.fig-gather__from span:nth-child(4) { transform: rotate(3deg) translateX(10px); }

.fig-arrow { width: 34px; color: var(--acc); }

.fig-app {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 10px 26px rgba(43, 43, 40, 0.14);
  overflow: hidden;
}
.fig-app__bar {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: var(--acc);
  padding: 9px 14px;
}
.fig-app__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px; }
.fig-app__grid span {
  font-family: var(--font-head);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink);
  background: var(--acc-soft);
  border-radius: 8px;
  padding: 16px 8px;
  text-align: center;
  line-height: 1.5;
}

/* 図2：PDFを読み込んで報告書に */
.fig-auto {
  width: 100%;
  max-width: 460px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px minmax(0, 1.25fr);
  gap: 14px;
  align-items: center;
}
.fig-auto__pile { position: relative; height: 150px; }
.fig-auto__pile i {
  position: absolute;
  left: 50%;
  width: 96px;
  height: 124px;
  margin-left: -48px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 3px 10px rgba(43, 43, 40, 0.08);
}
.fig-auto__pile i:nth-child(1) { top: 20px; transform: rotate(-8deg) translateX(-14px); }
.fig-auto__pile i:nth-child(2) { top: 14px; transform: rotate(5deg) translateX(12px); }
.fig-auto__pile i:nth-child(3) {
  top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-style: normal;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #c0553f;
}
.fig-sheet {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(43, 43, 40, 0.14);
  padding: 16px 16px 18px;
}
.fig-sheet p {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 900;
  color: var(--ink);
  margin-bottom: 10px;
}
.fig-sheet div {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 6px;
  padding: 7px 0;
  border-top: 1px solid var(--line);
}
.fig-sheet div b { height: 7px; border-radius: 4px; background: #e3e0d9; }
.fig-sheet div b:first-child { background: #cfcbc2; }
.fig-sheet div:first-of-type b { background: var(--acc); opacity: 0.55; }
.fig-caption {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px minmax(0, 1.25fr);
  gap: 14px;
  text-align: center;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  color: var(--sub);
}
.fig-caption b { color: var(--acc-press); }

/* 図3：デモ動画 */
.work__video {
  display: block;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(43, 43, 40, 0.16);
  transition: transform 0.3s ease;
}
.work__video:hover { transform: translateY(-3px); }
.work__video img { width: 100%; }

.work__award {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 18px;
  padding: 14px 18px;
  background: var(--bg);
  border-radius: 12px;
  font-family: var(--font-head);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
}
.work__award b { font-size: 22px; font-weight: 900; color: var(--acc-press); white-space: nowrap; }

/* ---------- 進め方 ---------- */
.flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.flow__item {
  position: relative;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 34px 32px 36px;
}
.flow__item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -18px;
  width: 12px;
  height: 12px;
  border-top: 2px solid var(--acc);
  border-right: 2px solid var(--acc);
  transform: translateY(-50%) rotate(45deg);
}
.flow__num {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 900;
  color: var(--acc);
  opacity: 0.5;
  line-height: 1;
}
.flow__item h3 { font-size: 21px; font-weight: 900; margin: 14px 0 10px; }
.flow__item p { font-size: 15px; }
.flow .flow__item:nth-child(2) { transition-delay: 0.14s; }
.flow .flow__item:nth-child(3) { transition-delay: 0.28s; }

/* ---------- スマホ・タブレット ---------- */
@media (max-width: 900px) {
  .office-note { grid-template-columns: 1fr; padding: 28px 26px; }
  .office-note__link { justify-self: start; }

  .work { grid-template-columns: 1fr; }
  .work:nth-child(even) .work__figure { order: 0; }
  .work__figure { min-height: 0; padding: 28px 22px; }
  .work__body { padding: 30px 26px 34px; }
  .work__title { font-size: 21px; }

  .flow { grid-template-columns: 1fr; gap: 26px; }
  .flow__item:not(:last-child)::after {
    top: auto;
    right: auto;
    bottom: -19px;
    left: 50%;
    transform: translateX(-50%) rotate(135deg);
  }
}

@media (max-width: 420px) {
  .fig-gather, .fig-auto, .fig-caption { grid-template-columns: minmax(0, 1fr) 22px minmax(0, 1.15fr); gap: 8px; }
  .fig-arrow { width: 22px; }
  .fig-gather__from span { font-size: 11px; padding: 8px 9px; }
  .fig-app__grid { gap: 6px; padding: 10px; }
  .fig-app__grid span { font-size: 10px; padding: 10px 2px; letter-spacing: 0; min-width: 0; }
  .fig-page { padding: 14px 12px 12px; }
  .fig-page__title { font-size: 13px; }
  .fig-auto__pile i { width: 78px; height: 104px; margin-left: -39px; }
  .work__award { flex-direction: column; gap: 2px; }
}

/* ---------- 事例：2つ並べる小さめの枠 ---------- */
.works-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.work--stack { grid-template-columns: 1fr; }
.work--stack .work__figure { order: 0 !important; min-height: 250px; padding: 30px 26px; }
.work--stack .work__body { padding: 34px 36px 38px; align-self: start; }
.work--stack .work__title { font-size: 21px; }
.works-duo .work:nth-child(2) { transition-delay: 0.14s; }

/* 図：スプレッドシートを案件にひもづける */
.fig-gather--sheets .fig-gather__from span { border-left: 4px solid #5fa67a; }
.fig-page {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 10px 26px rgba(43, 43, 40, 0.14);
  padding: 16px 16px 14px;
}
.fig-page__label {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1;
  color: var(--acc-press);
  background: var(--acc-soft);
  border-radius: 4px;
  padding: 4px 8px;
}
.fig-page__title { font-family: var(--font-head); font-size: 15px; font-weight: 900; color: var(--ink); margin: 6px 0 8px; line-height: 1.5; }
.fig-page__row {
  position: relative;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.5;
  padding: 8px 0 8px 18px;
  border-top: 1px solid var(--line);
}
.fig-page__row::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-radius: 2px;
  background: #5fa67a;
}

/* 図：SalesforceとNotionをつなぐ */
.fig-link {
  width: 100%;
  max-width: 460px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px minmax(0, 1.2fr);
  gap: 14px;
  align-items: center;
}
.fig-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 14px;
  text-align: center;
  box-shadow: 0 3px 10px rgba(43, 43, 40, 0.07);
}
.fig-box--main { border: 0; box-shadow: 0 10px 26px rgba(43, 43, 40, 0.14); padding: 20px 16px; }
.fig-box__name { font-family: var(--font-head); font-size: 15px; font-weight: 900; color: var(--ink); line-height: 1.4; }
.fig-box__sub { font-family: var(--font-head); font-size: 11.5px; font-weight: 500; color: var(--sub); line-height: 1.6; }
.fig-people { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 12px 0 10px; }
.fig-people i { width: 18px; height: 18px; border-radius: 50%; background: #cfcbc2; }
.fig-box--main .fig-people i { background: var(--acc); opacity: 0.75; }
.fig-box__note { font-family: var(--font-head); font-size: 11.5px; font-weight: 700; color: var(--sub); line-height: 1.5; }
.fig-box--main .fig-box__note { color: var(--acc-press); }

@media (max-width: 900px) {
  .works-duo { grid-template-columns: 1fr; }
  .work--stack .work__figure { min-height: 0; padding: 28px 22px; }
  .work--stack .work__body { padding: 30px 26px 34px; }
}
@media (max-width: 420px) {
  .fig-link { grid-template-columns: minmax(0, 1fr) 22px minmax(0, 1.15fr); gap: 8px; }
  .fig-box { padding: 14px 8px; }
  .fig-box__name { font-size: 13.5px; }
  .fig-people i { width: 14px; height: 14px; }
}

/* 見出しの最後の一文字だけが次の行に落ちないようにする */
.work__title, .section-title, .office-note__title { text-wrap: balance; }

/* ---------- 事例の図：本物の画面に近いモックアップ（窓の中は本物の色） ---------- */
.rm {
  width: 100%;
  max-width: 470px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px minmax(0, 1.08fr);
  gap: 12px;
  align-items: center;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", "Hiragino Sans", "Noto Sans JP", sans-serif;
  letter-spacing: 0;
  line-height: 1.4;
}
.rm .fig-arrow { width: 30px; }

/* 表計算の窓（重なって増えている様子） */
.rm-sheets { position: relative; padding: 34px 0 0 0; }
.rm-sheet {
  position: relative;
  background: #fff;
  border: 1px solid #dadce0;
  border-radius: 6px;
  box-shadow: 0 6px 16px rgba(60, 64, 67, 0.16);
  overflow: hidden;
}
.rm-sheet--b1, .rm-sheet--b2 { position: absolute; left: 0; right: 0; height: 60px; box-shadow: 0 2px 6px rgba(60, 64, 67, 0.1); }
.rm-sheet--b2 { top: 0; transform: translateX(14px) rotate(1.6deg); }
.rm-sheet--b1 { top: 17px; transform: translateX(-8px) rotate(-1.2deg); }
.rm-sheet__name { display: flex; align-items: center; gap: 5px; padding: 5px 7px 3px; color: #202124; font-size: 8.5px; font-weight: 500; white-space: nowrap; }
.rm-sheet__name i { flex: none; width: 8px; height: 10px; border-radius: 1.5px; background: #0f9d58; }
.rm-sheet__menu { display: flex; gap: 7px; padding: 0 7px 4px; color: #5f6368; font-size: 7px; border-bottom: 1px solid #e3e5e8; white-space: nowrap; overflow: hidden; }
.rm-sheet__grid p { display: grid; grid-template-columns: 14px 0.8fr 1.3fr 0.8fr; border-bottom: 1px solid #e3e5e8; }
.rm-sheet__grid span { min-width: 0; height: 15px; padding: 0 3px; border-right: 1px solid #e3e5e8; color: #202124; font-size: 7.5px; line-height: 15px; white-space: nowrap; overflow: hidden; }
.rm-sheet__grid span:first-child, .rm-sheet__grid p:first-child span { color: #5f6368; background: #f8f9fa; text-align: center; font-size: 7px; }
.rm-sheet__grid p:nth-child(2) span:not(:first-child) { font-weight: 700; }
.rm-sheet__tabs { display: flex; gap: 2px; padding: 3px 6px; background: #f8f9fa; color: #5f6368; font-size: 7px; white-space: nowrap; overflow: hidden; }
.rm-sheet__tabs b, .rm-sheet__tabs span { padding: 2px 5px; border-radius: 3px; }
.rm-sheet__tabs b { color: #188038; background: #e6f4ea; font-weight: 700; }

/* Notionの窓 */
.rm-notion {
  background: #fff;
  border: 1px solid rgba(55, 53, 47, 0.09);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(15, 15, 15, 0.1);
  overflow: hidden;
  color: #37352f;
}
.rm-notion__bar { display: flex; gap: 5px; align-items: center; height: 20px; padding: 0 9px; border-bottom: 1px solid rgba(55, 53, 47, 0.09); }
.rm-notion__bar span { width: 7px; height: 7px; border-radius: 50%; background: #ff5f57; }
.rm-notion__bar span:nth-child(2) { background: #febc2e; }
.rm-notion__bar span:nth-child(3) { background: #28c840; }
.rm-notion__body { padding: 10px 14px 10px; }
.rm-notion__crumb { color: #787774; font-size: 7.5px; }
.rm-notion__title { margin: 3px 0 7px; font-size: 16px; font-weight: 700; line-height: 1.3; }
.rm-notion__props { padding-bottom: 7px; border-bottom: 1px solid rgba(55, 53, 47, 0.09); }
.rm-notion__props p { display: grid; grid-template-columns: 58px minmax(0, 1fr); align-items: center; min-height: 18px; font-size: 8.5px; }
.rm-notion__props span { color: #787774; }
.rm-notion__props em { font-style: normal; }
.rm-notion__h { margin: 8px 0 4px; font-size: 9.5px; font-weight: 700; }
.rm-notion__list { border-top: 1px solid rgba(55, 53, 47, 0.09); }
.rm-notion__list p { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 5px; align-items: center; min-height: 21px; border-bottom: 1px solid rgba(55, 53, 47, 0.09); font-size: 8.5px; }
.rm-notion__list i { width: 8px; height: 10px; border: 1px solid #a5a39e; border-radius: 1.5px; }
.rm-notion__list span { font-weight: 500; text-decoration: underline; text-decoration-color: rgba(55, 53, 47, 0.25); text-underline-offset: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rm-notion__new { margin-top: 5px; color: #787774; font-size: 8px; }
.rm-tag { justify-self: start; display: inline-flex; align-items: center; height: 14px; padding: 0 5px; border-radius: 3px; font-size: 7.5px; font-weight: 500; white-space: nowrap; }
.rm-tag--blue { color: #183347; background: #d3e5ef; }
.rm-tag--green { color: #1c3829; background: #dbeddb; }
.rm-tag--yellow { color: #402c1b; background: #fdecc8; }
.rm-tag--purple { color: #412454; background: #e8deee; }
.rm-tag--gray { color: #32302c; background: #e3e2e0; }

@media (max-width: 480px) {
  .rm { grid-template-columns: 1fr; gap: 10px; max-width: 250px; }
  .rm .fig-arrow { transform: rotate(90deg); justify-self: center; }
}

/* 見出しは言葉の途中で折らない（対応していないブラウザではふつうの折り返し） */
.section-title, .work__title, .office-note__title, .cta__title { word-break: auto-phrase; }

/* ---------- 事例の図2：顧客管理の画面 → Notionのデータベース ---------- */
.rm-crm { background: #fff; border: 1px solid #d8dde6; border-radius: 6px; box-shadow: 0 6px 16px rgba(22, 50, 92, 0.14); overflow: hidden; color: #181818; }
.rm-crm__top { display: flex; align-items: center; gap: 9px; height: 22px; padding: 0 9px; background: #0b5cab; color: rgba(255, 255, 255, 0.78); font-size: 7.5px; white-space: nowrap; }
.rm-crm__top i { width: 9px; height: 9px; border-radius: 2px; background: repeating-linear-gradient(90deg, #fff 0 2px, transparent 2px 3.5px); opacity: 0.9; }
.rm-crm__top b { color: #fff; font-weight: 700; align-self: stretch; display: flex; align-items: center; border-bottom: 2px solid #fff; }
.rm-crm__body { padding: 8px 9px 6px; background: #f3f3f3; }
.rm-crm__title { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; font-size: 10px; font-weight: 700; line-height: 1.25; }
.rm-crm__title i { flex: none; width: 18px; height: 18px; border-radius: 4px; background: #5867e8; }
.rm-crm__title small { display: block; color: #5c5c5c; font-size: 7px; font-weight: 400; }
.rm-crm__table { background: #fff; border: 1px solid #e5e5e5; border-radius: 4px; overflow: hidden; }
.rm-crm__table p { display: grid; grid-template-columns: 1.3fr 1fr; min-height: 17px; align-items: center; border-bottom: 1px solid #ececec; font-size: 8px; }
.rm-crm__table p:last-child { border-bottom: 0; }
.rm-crm__table p:first-child { background: #fafaf9; color: #5c5c5c; font-size: 7.5px; font-weight: 700; }
.rm-crm__table span { padding: 0 6px; white-space: nowrap; overflow: hidden; }
.rm-crm__table p:not(:first-child) span:first-child { color: #0b5cab; }
.rm-crm__foot { display: flex; align-items: center; gap: 4px; padding: 6px 9px; border-top: 1px solid #e5e5e5; color: #5c5c5c; font-size: 7.5px; line-height: 1.3; }
.rm-crm__foot span { flex: 1; }
.rm-crm__foot i { flex: none; width: 13px; height: 13px; border-radius: 50%; background: #b0adab; }

.rm-notion__share { display: flex; align-items: center; margin-left: auto; color: #37352f; font-size: 7.5px; }
.rm-notion__share i { width: 11px; height: 11px; margin-left: -3px; border: 1.5px solid #fff; border-radius: 50%; background: #9ec5c0; }
.rm-notion__share i:nth-child(2) { background: #e5b9a5; }
.rm-notion__share i:nth-child(3) { background: #b8c4e0; }
.rm-notion__share i:nth-child(4) { background: #d9cf9c; }
.rm-notion__share i:nth-child(5) { background: #c9b3d6; }
.rm-notion__share b { margin-left: 5px; font-weight: 500; }
.rm-notion__views { display: flex; gap: 9px; margin-bottom: 4px; color: #787774; font-size: 8px; }
.rm-notion__views b { color: #37352f; font-weight: 500; border-bottom: 1px solid #37352f; }
.rm-db { border-top: 1px solid rgba(55, 53, 47, 0.09); }
.rm-db p { display: grid; grid-template-columns: 1.35fr 1fr 0.7fr; align-items: center; min-height: 20px; border-bottom: 1px solid rgba(55, 53, 47, 0.09); font-size: 8.5px; }
.rm-db p:first-child { min-height: 17px; color: #787774; font-size: 7.5px; }
.rm-db span { min-width: 0; padding-right: 4px; white-space: nowrap; overflow: hidden; }
.rm-db p:not(:first-child) span:first-child { font-weight: 500; }
.rm-notion__sync { display: inline-block; margin-top: 7px; padding: 2px 7px; border-radius: 3px; color: #183347; background: #d3e5ef; font-size: 7.5px; font-weight: 500; }

/* ---------- 事例の図3：ばらばらの入口 → スタッフ用アプリ ---------- */
.rm--app { grid-template-columns: minmax(0, 1fr) 30px 148px; max-width: 400px; }
.rm-links { display: grid; gap: 8px; }
.rm-links p { display: flex; align-items: center; gap: 8px; padding: 7px 9px; background: #fff; border: 1px solid #e2e0da; border-radius: 6px; box-shadow: 0 2px 6px rgba(43, 43, 40, 0.07); color: #2b2b28; font-size: 9px; font-weight: 600; line-height: 1.35; }
.rm-links p:nth-child(1) { transform: rotate(-2deg) translateX(-3px); }
.rm-links p:nth-child(2) { transform: rotate(1.5deg) translateX(7px); }
.rm-links p:nth-child(3) { transform: rotate(-1deg); }
.rm-links p:nth-child(4) { transform: rotate(2deg) translateX(8px); }
.rm-links small { display: block; color: #8a8a85; font-size: 7.5px; font-weight: 400; }
.rm-ic { flex: none; width: 16px; height: 20px; border-radius: 3px; background: #7b61c4; }
.rm-ic--sheet { background: #0f9d58; }
.rm-ic--folder { height: 14px; background: #e3b341; border-radius: 2px 5px 3px 3px; }
.rm-ic--pdf { background: #d6543f; }

.rm-phone { padding: 6px; background: #1f1f1d; border-radius: 22px; box-shadow: 0 12px 28px rgba(43, 43, 40, 0.22); }
.rm-phone__screen { position: relative; height: 262px; padding: 0 9px; background: #f6f5f1; border-radius: 17px; overflow: hidden; color: #2b2b28; }
.rm-phone__head { margin: 0 -9px 9px; padding: 20px 11px 9px; background: var(--acc); color: #fff; font-size: 11px; font-weight: 700; }
.rm-phone__notice { padding: 7px 8px; background: #fff; border-radius: 8px; font-size: 7.5px; line-height: 1.5; }
.rm-phone__notice b { display: block; color: var(--acc-press); font-size: 7px; }
.rm-phone__tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 8px; }
.rm-phone__tiles span { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 10px 2px 8px; background: #fff; border-radius: 9px; font-size: 7.5px; font-weight: 700; white-space: nowrap; }
.rm-phone__tiles i { width: 20px; height: 20px; border-radius: 6px; background: var(--acc-soft); border: 1.5px solid var(--acc); }
.rm-phone__nav { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-around; padding: 8px 20px 9px; background: #fff; border-top: 1px solid #e8e6e0; }
.rm-phone__nav i { width: 14px; height: 14px; border-radius: 4px; background: #d6d3cb; }
.rm-phone__nav i:first-child { background: var(--acc); }

/* ---------- 事例の図4：PDFの束 → 報告書 ---------- */
.rm--pdf { grid-template-columns: minmax(0, 0.85fr) 30px minmax(0, 1.15fr); max-width: 400px; }
.rm-pdfs { position: relative; padding: 14px 14px 0 6px; }
.rm-pdf { position: relative; height: 190px; padding: 12px 12px 0; background: #fff; border: 1px solid #e2e0da; border-radius: 4px; box-shadow: 0 6px 16px rgba(43, 43, 40, 0.14); }
.rm-pdf--b1, .rm-pdf--b2 { position: absolute; left: 6px; right: 14px; top: 14px; box-shadow: 0 2px 6px rgba(43, 43, 40, 0.1); }
.rm-pdf--b2 { transform: rotate(5deg) translate(12px, -6px); }
.rm-pdf--b1 { transform: rotate(-3.5deg) translate(-4px, -3px); }
.rm-pdf__badge { position: absolute; top: 9px; right: 9px; padding: 1px 5px; border-radius: 3px; background: #d6543f; color: #fff; font-size: 7px; font-weight: 700; }
.rm-pdf__t { margin-bottom: 9px; color: #2b2b28; font-size: 8.5px; font-weight: 700; }
.rm-pdf__lines { display: grid; gap: 7px; }
.rm-pdf__lines i { height: 4px; border-radius: 2px; background: #e4e2dc; }
.rm-pdf__lines i:nth-child(3n) { width: 62%; }
.rm-pdf__lines i:nth-child(4n) { width: 84%; background: #d3d0c8; }

.rm-report { padding: 14px 14px 12px; background: #fff; border-radius: 6px; box-shadow: 0 10px 24px rgba(43, 43, 40, 0.16); color: #2b2b28; }
.rm-report__t { margin-bottom: 8px; padding-bottom: 6px; border-bottom: 2px solid #2b2b28; font-size: 11px; font-weight: 700; text-align: center; letter-spacing: 0.2em; }
.rm-report__table { border: 1px solid #cfccc4; }
.rm-report__table p { display: grid; grid-template-columns: 0.8fr 1fr 1fr; border-bottom: 1px solid #cfccc4; font-size: 8.5px; }
.rm-report__table p:last-child { border-bottom: 0; }
.rm-report__table p:first-child { background: #f1efea; font-weight: 700; }
.rm-report__table span { padding: 4px 6px; border-right: 1px solid #cfccc4; text-align: right; font-variant-numeric: tabular-nums; }
.rm-report__table span:first-child, .rm-report__table p:first-child span { text-align: center; }
.rm-report__table span:last-child { border-right: 0; }
.rm-report__done { display: inline-block; margin-top: 9px; padding: 3px 9px; border-radius: 999px; color: var(--acc-press); background: var(--acc-soft); font-size: 8px; font-weight: 700; }

.work--stack .work__figure { min-height: 330px; }

@media (max-width: 900px) { .work--stack .work__figure { min-height: 0; } }
@media (max-width: 480px) {
  .rm--app, .rm--pdf { grid-template-columns: 1fr; max-width: 230px; }
  .rm-phone { width: 160px; justify-self: center; }
  .rm-links p:nth-child(n) { transform: none; }
  .rm-pdfs { padding-bottom: 6px; }
}

/* ---------- 事例の図：実寸で作った画面を、前と後で重ねて見せる ---------- */
.work { grid-template-columns: minmax(0, 1.22fr) minmax(0, 1fr); }
.work--stack { grid-template-columns: 1fr; }
.work__figure { padding: 40px 34px 34px; }
.work--stack .work__figure { padding: 38px 30px 32px; }
.shots { position: relative; width: 100%; max-width: 560px; aspect-ratio: 56 / 43; }
.shot { position: absolute; margin: 0; }
.shot img { display: block; width: 100%; height: auto; border-radius: 8px; background: #fff; }
.shot--before { left: 0; top: 0; width: 64%; }
.shot--before img { box-shadow: 0 4px 14px rgba(43, 43, 40, 0.14); opacity: 0.92; }
.shot--after { right: 0; bottom: 0; width: 79%; }
.shot--after img { box-shadow: 0 16px 38px rgba(43, 43, 40, 0.24); }
.shot figcaption {
  position: absolute;
  top: -11px;
  left: -9px;
  min-width: 34px;
  padding: 6px 9px;
  border-radius: 7px;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  color: var(--sub);
  background: #fff;
  box-shadow: 0 2px 8px rgba(43, 43, 40, 0.14);
}
.shot--after figcaption { color: #fff; background: var(--acc); }

/* スマホのアプリ：手前に端末を立てる */
.shots--phone { aspect-ratio: 56 / 46; }
.shots--phone .shot--before { width: 76%; }
.shots--phone .shot--after { width: 31%; right: 3%; padding: 5px; background: #1f1f1d; border-radius: 26px; box-shadow: 0 16px 38px rgba(43, 43, 40, 0.3); }
.shots--phone .shot--after img { border-radius: 21px; box-shadow: none; }
.shots--phone .shot--after figcaption { top: -9px; left: -16px; }

/* 書類：PDFの画面の手前に、できあがった報告書 */
.shots--doc { aspect-ratio: 56 / 46; }
.shots--doc .shot--before { width: 70%; }
.shots--doc .shot--after { width: 66%; }

@media (max-width: 900px) {
  .work { grid-template-columns: 1fr; }
  .work__figure, .work--stack .work__figure { padding: 34px 20px 26px; }
}

/* ---------- サイト制作：制作したサイト ---------- */
.site-exs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin-top: 48px; }
.site-ex { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.site-ex__shot { background: #e6e1d7; padding: 30px 30px 0; }
.site-ex__shot .browser { height: auto; aspect-ratio: 16 / 10; }
.site-ex__body { padding: 28px 32px 32px; }
.site-ex__body h3 { font-size: 20px; font-weight: 900; margin-bottom: 8px; }
.site-ex__body p { font-size: 15px; }
.site-ex__link { display: inline-block; margin-top: 14px; font-family: var(--font-head); font-size: 14px; font-weight: 700; }
.site-ex__link::after { content: "\2192"; margin-left: 6px; }
.site-exs .site-ex:nth-child(2) { transition-delay: 0.14s; }
#pricing .office-note { margin-top: 40px; }
@media (max-width: 900px) { .site-exs { grid-template-columns: 1fr; } .site-ex__shot { padding: 22px 20px 0; } }

/* トップの見本画面の注記 */
.hero__mock::after { content: "画面は見本です"; display: block; margin-top: 10px; font-size: 12px; color: #8a8a84; text-align: right; }
