/* シン・社内ポータル 事例ページ共通のスタイル（LP の色・文字・ヘッダー・フッターに合わせている） */
:root {
  --teal: #5BBBB7;
  --teal-dark: #2E7D7A;
  --sky: #54B6CC;
  --ink: #1C2B2A;
  --gray: #6B7B7A;
  --mist: #F1F6F7;
  --line: #DCE8E8;
  --magenta: #DC0451;
  --magenta-soft: #FDE7EF;
  --white: #FFFFFF;
  --grad: linear-gradient(115deg, #5BBBB7 0%, #57B9C2 55%, #54B6CC 100%);
  --radius-l: 28px;
  --radius-m: 18px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
body {
  margin: 0;
  font-family: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", Meiryo, sans-serif;
  font-weight: 500;
  color: var(--ink);
  background: var(--white);
  line-height: 1.9;
  font-size: 16px;
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--magenta); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 860px; }
br.sp { display: none; }

/* ---------- ボタン（LP と同じマゼンタのピル） ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 16px;
  padding: 10px 10px 10px 30px; border: none; border-radius: 999px;
  background: var(--magenta); color: var(--white);
  font-family: inherit; font-weight: 700; font-size: 17px; letter-spacing: .1em;
  text-decoration: none; cursor: pointer;
  box-shadow: 0 10px 24px -10px rgba(220,4,81,.6);
  transition: transform .2s, box-shadow .2s;
}
.btn::after {
  content: ""; width: 40px; height: 40px; border-radius: 50%; flex: none;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23DC0451' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 6l6 6-6 6M12 6l6 6-6 6'/%3E%3C/svg%3E") center / 18px no-repeat;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -10px rgba(220,4,81,.7); }
.btn.small { font-size: 14px; padding: 6px 6px 6px 20px; gap: 12px; }
.btn.small::after { width: 30px; height: 30px; background-size: 14px; }

/* ---------- ヘッダー ---------- */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
header.site .bar { display: flex; align-items: center; justify-content: space-between; height: 72px; padding: 0 24px; max-width: 1280px; margin: 0 auto; }
.brand { text-decoration: none; display: flex; align-items: baseline; gap: 12px; }
.brand b { font-size: 20px; font-weight: 800; letter-spacing: .08em; color: var(--teal-dark); }
.brand small { font-size: 12px; color: var(--gray); letter-spacing: .06em; }
nav.links { display: flex; gap: 28px; font-weight: 700; font-size: 14px; letter-spacing: .1em; }
nav.links a { text-decoration: none; }
nav.links a:hover, nav.links a[aria-current] { color: var(--teal-dark); }
.bar-right { display: flex; align-items: center; gap: 10px; }
.menu-btn {
  display: none; width: 44px; height: 44px; border: 2px solid var(--line); border-radius: 12px;
  background: var(--white); cursor: pointer; padding: 0; position: relative; flex: none;
}
.menu-btn span { position: absolute; left: 11px; right: 11px; height: 2.5px; border-radius: 2px; background: var(--teal-dark); transition: transform .2s, opacity .2s; }
.menu-btn span:nth-child(1) { top: 13px; }
.menu-btn span:nth-child(2) { top: 19.5px; }
.menu-btn span:nth-child(3) { top: 26px; }
header.site.open .menu-btn span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
header.site.open .menu-btn span:nth-child(2) { opacity: 0; }
header.site.open .menu-btn span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- パンくず ---------- */
.crumbs { margin: 0; padding: 10px 0 0; list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 12.5px; color: var(--gray); font-weight: 700; }
.crumbs li:not(:last-child)::after { content: "›"; margin: 0 8px; color: var(--line); font-weight: 800; }
.crumbs a { text-decoration: none; color: var(--teal-dark); }
.crumbs a:hover { text-decoration: underline; }

/* ---------- ページ冒頭 ---------- */
.top { padding: 8px 16px 0; max-width: 1280px; margin: 0 auto; }
.top-band {
  position: relative; overflow: hidden; border-radius: 36px; background: var(--grad);
  padding: 56px 56px 52px; margin-top: 14px;
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; align-items: center;
}
.top-band::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(-55deg, rgba(255,255,255,.10) 0 2px, transparent 2px 46px);
  mask-image: linear-gradient(90deg, #000 0%, transparent 55%);
  -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 55%);
  pointer-events: none;
}
.top-band > * { position: relative; }
.tag {
  display: inline-block; padding: 5px 16px; border-radius: 999px; background: var(--white);
  color: var(--teal-dark); font-weight: 800; font-size: 13px; letter-spacing: .12em; margin-bottom: 16px;
}
.top-band h1 {
  margin: 0 0 14px; font-size: clamp(24px, 3.2vw, 36px); font-weight: 800; line-height: 1.5; letter-spacing: .06em; color: var(--ink);
}
.top-band h1 em { white-space: nowrap; font-style: normal; background: linear-gradient(transparent 62%, rgba(255,255,255,.65) 62%); padding: 0 2px; }
.target { margin: 0; font-weight: 700; font-size: 14px; letter-spacing: .04em; }
.money {
  background: var(--white); border-radius: var(--radius-l); padding: 28px 26px 24px; container-type: inline-size;
  box-shadow: 0 24px 40px -28px rgba(28,43,42,.45);
}
.money .lbl { display: block; font-weight: 700; font-size: 14px; letter-spacing: .1em; color: var(--teal-dark); }
.money .val {
  display: block; font-weight: 800; white-space: nowrap; line-height: 1.05; letter-spacing: 0;
  font-size: clamp(40px, 19cqi, 72px); color: var(--white);
  -webkit-text-stroke: 2.5px var(--ink); paint-order: stroke fill;
  filter: drop-shadow(4px 4px 0 var(--magenta));
}
.money .unit { font-size: .42em; letter-spacing: .04em; }
.money .sub { display: block; margin: 8px 0 18px; font-weight: 700; font-size: 14px; letter-spacing: .06em; }

/* 導入前後の棒 */
.bars { display: grid; gap: 8px; margin-bottom: 14px; }
.bar-line { display: grid; grid-template-columns: 52px 1fr; align-items: center; gap: 10px; font-size: 12px; color: var(--gray); font-weight: 700; }
.bar { height: 30px; border-radius: 999px; display: flex; align-items: center; padding: 0 14px; font-weight: 800; font-size: 14px; white-space: nowrap; }
.bar.b { background: var(--line); color: var(--gray); }
.bar.a { background: var(--teal); color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 5px 13px; border-radius: 999px; background: var(--mist); font-size: 13px; font-weight: 700; }
.chip b { font-family: inherit; font-weight: 600; font-size: 16px; color: var(--magenta); margin-right: 2px; letter-spacing: 0; }

/* ---------- 本文 ---------- */
.sec { padding: 72px 0; }
.sec.tint { background: var(--mist); }
.sec-head { margin: 0 0 28px; }
.en {
  display: inline-block; font-weight: 700; font-size: 13px; line-height: 1; letter-spacing: .14em;
  color: var(--magenta); padding: 6px 14px; border-radius: 999px; background: var(--magenta-soft); margin-bottom: 12px;
}
.sec-head h2 { margin: 0; color: var(--teal); font-size: clamp(21px, 3vw, 30px); font-weight: 800; line-height: 1.5; letter-spacing: .08em; }
.lead { margin: 0 0 18px; font-size: 16px; color: #3d4f4e; }
.lead:last-child { margin-bottom: 0; }
.prose p { margin: 0 0 16px; color: #2f403f; }
.prose p:last-child { margin-bottom: 0; }

/* この事例のポイント */
.points { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; counter-reset: pt; }
.points li {
  position: relative; background: var(--white); border-radius: var(--radius-m); padding: 22px 22px 22px;
  font-weight: 700; font-size: 15.5px; line-height: 1.75; border: 2px solid var(--line);
}
.points li::before {
  counter-increment: pt; content: counter(pt, decimal-leading-zero);
  display: block; font-weight: 800; font-size: 26px; line-height: 1; color: var(--teal); margin-bottom: 10px;
}

/* お客様の情報 */
.client { display: grid; grid-template-columns: 180px 1fr; border-top: 2px solid var(--line); }
.client dt, .client dd { margin: 0; padding: 16px 4px; border-bottom: 1px solid var(--line); }
.client dt { font-weight: 800; color: var(--teal-dark); font-size: 14px; letter-spacing: .06em; }
.client dd { color: #2f403f; }

/* 経緯（タイムライン） */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.timeline li { position: relative; padding: 0 0 26px 44px; }
.timeline li::before {
  content: ""; position: absolute; left: 7px; top: 8px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--white); border: 4px solid var(--teal);
}
.timeline li:not(:last-child)::after { content: ""; position: absolute; left: 14px; top: 28px; bottom: 2px; width: 2px; background: var(--line); }
.timeline li:first-child::before { border-color: var(--magenta); }
.timeline h3 { margin: 0 0 4px; font-size: 17px; font-weight: 800; letter-spacing: .04em; line-height: 1.6; }
.timeline p { margin: 0; color: #3d4f4e; font-size: 15px; }

/* 着手前の課題 */
.issues { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.issues li { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; background: var(--white); border-radius: 14px; padding: 14px 18px; font-size: 15px; color: #2f403f; }
.issues .where { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--mist); color: var(--gray); font-size: 12px; font-weight: 700; white-space: nowrap; margin-top: 2px; }
.sum {
  margin: 22px 0 0; padding: 16px 20px; border-radius: 14px; background: var(--magenta-soft);
  font-weight: 800; font-size: 16px; letter-spacing: .04em; color: var(--ink);
}
.sum b { color: var(--magenta); font-size: 1.15em; }

/* 作ったもの */
.builds { display: grid; gap: 16px; counter-reset: bd; }
.build { background: var(--white); border-radius: var(--radius-m); padding: 26px 28px; border: 2px solid var(--line); }
.build h3 { margin: 0 0 10px; font-size: 19px; font-weight: 800; letter-spacing: .04em; line-height: 1.55; display: flex; gap: 12px; align-items: baseline; }
.build h3::before { counter-increment: bd; content: counter(bd, decimal-leading-zero); font-size: 15px; color: var(--magenta); font-weight: 800; flex: none; }
.build p { margin: 0 0 10px; color: #2f403f; font-size: 15px; }
.build p:last-child { margin-bottom: 0; }
.build ul { margin: 0 0 10px; padding-left: 1.2em; color: #2f403f; font-size: 15px; }
.build li { margin-bottom: 4px; }
.build .result {
  display: inline-block; margin-top: 4px; padding: 4px 14px; border-radius: 999px;
  background: var(--mist); font-weight: 800; font-size: 14px; color: var(--teal-dark);
}
.steps { list-style: none; margin: 4px 0 10px; padding: 0; display: grid; gap: 6px; counter-reset: st; }
.steps li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; font-size: 15px; color: #2f403f; }
.steps li::before {
  counter-increment: st; content: counter(st); width: 26px; height: 26px; border-radius: 50%;
  background: var(--teal); color: var(--white); font-weight: 800; font-size: 13px; display: grid; place-items: center; margin-top: 2px;
}

/* 品質と設計の工夫 / 役割分担 */
.checks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.checks li { position: relative; padding-left: 30px; font-size: 15px; color: #2f403f; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 5px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.roles { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 22px; }
.role { border-radius: var(--radius-m); padding: 20px 22px; background: var(--white); border: 2px solid var(--line); }
.role.human { border-color: var(--magenta); }
.role h3 { margin: 0 0 8px; font-size: 16px; font-weight: 800; letter-spacing: .06em; color: var(--teal-dark); }
.role.human h3 { color: var(--magenta); }
.role ul { margin: 0; padding-left: 1.2em; font-size: 15px; color: #2f403f; }

/* 時間の表 */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius-m); background: var(--white); border: 2px solid var(--line); }
table.hours { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 560px; }
table.hours th, table.hours td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.hours thead th { background: var(--mist); font-size: 12.5px; color: var(--gray); font-weight: 700; letter-spacing: .06em; white-space: nowrap; }
table.hours td.num { white-space: nowrap; font-weight: 700; }
table.hours td.after { color: var(--teal-dark); font-weight: 800; white-space: nowrap; }
table.hours td.per { color: var(--gray); font-size: 13px; }
table.hours .grp td { background: #FAFCFC; font-size: 12.5px; font-weight: 800; color: var(--teal-dark); letter-spacing: .06em; padding: 8px 14px; }
table.hours tfoot td { font-weight: 800; background: var(--magenta-soft); border-bottom: 0; }
table.hours tfoot td.after { color: var(--magenta); }
.totals { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 22px 0 0; }
.total { background: var(--white); border-radius: 16px; padding: 16px 16px 14px; text-align: center; border: 2px solid var(--line); }
.total .k { display: block; font-size: 12px; color: var(--gray); font-weight: 700; letter-spacing: .06em; }
.total .v { display: block; font-weight: 800; font-size: 24px; color: var(--magenta); line-height: 1.4; letter-spacing: 0; }
.total .v small { font-size: 13px; color: var(--ink); margin-left: 2px; }
.note { margin: 16px 0 0; font-size: 12px; color: var(--gray); line-height: 1.8; }
.more-results { margin-top: 22px; }

/* ---------- 相談の帯 ---------- */
.cta { padding: 0 16px 16px; max-width: 1280px; margin: 0 auto; }
.cta-band {
  border-radius: 36px; background: var(--grad); padding: 64px 24px; text-align: center; position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(-55deg, rgba(255,255,255,.10) 0 2px, transparent 2px 46px);
  pointer-events: none;
}
.cta-band > * { position: relative; }
.cta-kicker { display: inline-block; margin: 0 0 14px; padding: 5px 16px; border-radius: 999px; background: var(--white); color: var(--magenta); font-weight: 800; font-size: 14px; letter-spacing: .1em; }
.cta-band h2 { margin: 0 0 12px; font-size: clamp(22px, 3.2vw, 34px); font-weight: 800; line-height: 1.5; letter-spacing: .08em; }
.cta-band p { margin: 0 auto 28px; max-width: 640px; font-weight: 700; font-size: 15px; }

/* ---------- ほかの事例 ---------- */
.others { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.others-more { margin: 22px 0 0; text-align: center; }
.others-more a { font-weight: 800; font-size: 15px; color: var(--teal-dark); }
.other {
  display: flex; flex-direction: column; gap: 8px; text-decoration: none;
  background: var(--white); border-radius: var(--radius-m); padding: 22px 22px 20px; border: 2px solid var(--line);
  transition: border-color .15s, transform .15s;
}
.other:hover { border-color: var(--teal); transform: translateY(-2px); }
.other .type { align-self: flex-start; padding: 3px 12px; border-radius: 999px; background: var(--mist); color: var(--teal-dark); font-weight: 800; font-size: 12px; letter-spacing: .1em; }
.other h3 { margin: 0; font-size: 16.5px; font-weight: 800; line-height: 1.6; letter-spacing: .03em; }
.other .fig { margin: auto 0 0; font-weight: 800; font-size: 14px; color: var(--magenta); }
.other .go { font-size: 13px; font-weight: 700; color: var(--teal-dark); }

/* 一覧ページ */
.index-head { text-align: center; padding: 40px 0 8px; }
.index-head h1 { margin: 0 0 12px; color: var(--teal); font-size: clamp(24px, 3.6vw, 38px); font-weight: 800; line-height: 1.5; letter-spacing: .1em; }
.index-head p { margin: 0 auto; max-width: 680px; color: #3d4f4e; }
.index-total { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 26px 0 0; }
.index-total .total { min-width: 200px; }
.cards { display: grid; gap: 20px; }
.card {
  display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: center; text-decoration: none;
  background: var(--white); border-radius: var(--radius-l); padding: 22px; border: 2px solid var(--line);
  transition: border-color .15s, transform .15s;
}
.card:hover { border-color: var(--teal); transform: translateY(-2px); }
.card-visual {
  border-radius: var(--radius-m); background: var(--grad); padding: 22px 22px 20px; min-height: 190px;
  display: flex; flex-direction: column; justify-content: space-between; container-type: inline-size;
}
.card-visual .tag { margin: 0; align-self: flex-start; }
.card-visual .lbl { display: block; font-weight: 700; font-size: 13px; letter-spacing: .1em; }
.card-visual .val {
  display: block; font-weight: 800; white-space: nowrap; line-height: 1.05; letter-spacing: 0;
  font-size: clamp(34px, 20cqi, 58px); color: var(--white);
  -webkit-text-stroke: 2.2px var(--ink); paint-order: stroke fill; filter: drop-shadow(4px 4px 0 var(--magenta));
}
.card-visual .unit { font-size: .42em; }
.card h2 { margin: 0 0 6px; font-size: clamp(18px, 2.2vw, 22px); font-weight: 800; line-height: 1.55; letter-spacing: .04em; }
.card .target { color: var(--teal-dark); font-size: 13px; margin: 0 0 10px; }
.card p.desc { margin: 0 0 12px; font-size: 14.5px; color: #3d4f4e; }
.card .go { font-weight: 800; font-size: 14px; color: var(--magenta); }

/* ---------- フッター ---------- */
/* ---------- フッター（サイトマップ） ---------- */
footer.site { padding: 0 0 40px; font-size: 13px; color: var(--gray); background: var(--mist); margin-top: 16px; }
footer.site .fnav { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding: 52px 0 36px; }
.fnav-logo { display: inline-block; text-decoration: none; font-size: 20px; font-weight: 800; letter-spacing: .08em; color: var(--teal-dark); margin-bottom: 6px; }
.fnav-brand p { margin: 0 0 16px; font-size: 13px; color: #3d4f4e; line-height: 1.8; }
.fnav-h { margin: 0 0 10px; font-size: 13px; font-weight: 800; letter-spacing: .1em; color: var(--ink); }
.fnav-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.fnav-col a { text-decoration: none; color: #3d4f4e; font-weight: 700; font-size: 14px; }
.fnav-col a:hover { color: var(--teal-dark); text-decoration: underline; }
.fnav-col .fnav-more { margin-top: 6px; }
.fnav-col .fnav-more a { color: var(--teal-dark); font-weight: 800; }
footer.site .fbottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 0; }
footer.site .fbottom .copy { align-self: flex-end; }
footer.site b { color: var(--ink); font-size: 15px; letter-spacing: .08em; }
/* 「運営会社」はフッターメニューの見出しと同じ太字、会社名以下は薄字 */
.fop { display: block; margin: 0 0 8px; font-size: 13px; font-weight: 800; letter-spacing: .1em; color: var(--ink); }
footer.site .fbottom b { font-weight: 500; font-size: 13px; letter-spacing: .02em; color: var(--gray); }
@media (max-width: 960px) {
  footer.site .fnav { grid-template-columns: 1fr 1fr; }
  .fnav-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  footer.site .fnav { gap: 26px 18px; padding: 40px 0 28px; }
  .fnav-col a { font-size: 13.5px; }
}

/* ---------- 画面幅ごとの調整 ---------- */
@media (max-width: 1240px) and (min-width: 961px) {
  .brand small { display: none; }
  nav.links { gap: 20px; letter-spacing: .06em; }
}
@media (max-width: 960px) {
  .menu-btn { display: block; }
  nav.links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 6px 18px 14px;
    background: var(--white); border-top: 1px solid var(--line);
    box-shadow: 0 18px 30px -18px rgba(28,43,42,.35);
  }
  nav.links a { padding: 15px 6px; border-bottom: 1px solid var(--line); font-size: 15px; }
  nav.links a:last-child { border-bottom: 0; }
  header.site.open nav.links { display: flex; }
  .top-band { grid-template-columns: 1fr; padding: 44px 32px 36px; gap: 26px; }
  .points { grid-template-columns: 1fr; }
  .others { grid-template-columns: 1fr; }
  .totals { grid-template-columns: 1fr 1fr; }
  .card { grid-template-columns: 1fr; gap: 18px; padding: 16px; }
}
@media (max-width: 640px) {
  html { scroll-padding-top: 64px; }
  .wrap { padding: 0 18px; }
  .sec { padding: 56px 0; }
  br.sp { display: inline; }
  header.site .bar { padding: 0 14px; height: 64px; }
  .brand small { display: none; }
  .brand b { font-size: 16px; letter-spacing: .04em; }
  .bar-right { gap: 8px; }
  .bar-right .btn.small { padding: 5px 5px 5px 14px; gap: 8px; font-size: 13px; }
  .bar-right .btn.small::after { width: 26px; height: 26px; background-size: 12px; }
  .menu-btn { width: 40px; height: 40px; }
  .menu-btn span { left: 10px; right: 10px; }
  .menu-btn span:nth-child(1) { top: 11px; }
  .menu-btn span:nth-child(2) { top: 17.5px; }
  .menu-btn span:nth-child(3) { top: 24px; }
  .top { padding: 4px 10px 0; }
  .crumbs { padding-left: 8px; }
  .top-band { border-radius: 26px; padding: 34px 20px 24px; }
  .money { padding: 22px 18px 18px; }
  .client { grid-template-columns: 1fr; }
  .client dt { padding-bottom: 0; border-bottom: 0; }
  .client dd { padding-top: 4px; }
  .issues li { grid-template-columns: 1fr; gap: 6px; }
  .issues .where { justify-self: start; }
  .build { padding: 20px 18px; }
  .build h3 { font-size: 17px; }
  .checks { grid-template-columns: 1fr; }
  .roles { grid-template-columns: 1fr; }
  .cta { padding: 0 10px 10px; }
  .cta-band { border-radius: 26px; padding: 48px 16px; }
  .cta-band .btn { font-size: 15px; letter-spacing: .04em; padding-left: 22px; gap: 12px; }
  .index-total .total { min-width: 0; flex: 1 1 140px; }
}

/* ---------- 日本語の改行を文節で（対応ブラウザのみ） ---------- */
h1, h2, h3, .points li, .result, .sum, .other h3, .card h2 { word-break: auto-phrase; text-wrap: pretty; }
.top-band h1, .cta-band h2, .index-head h1 { text-wrap: balance; }

/* ---------- スマホでは表を縦積みに（横スクロールさせない） ---------- */
@media (max-width: 640px) {
  .table-wrap { overflow: visible; }
  table.hours { min-width: 0; font-size: 14px; }
  table.hours thead { display: none; }
  table.hours, table.hours tbody, table.hours tfoot { display: block; }
  table.hours tr { display: grid; grid-template-columns: auto auto 1fr; column-gap: 8px; row-gap: 2px; align-items: baseline; padding: 12px 14px; border-bottom: 1px solid var(--line); }
  table.hours td { display: block; padding: 0; border: 0; }
  table.hours td:first-child { grid-column: 1 / -1; font-weight: 700; }
  table.hours td.num { color: var(--gray); font-weight: 700; }
  table.hours td.num::after { content: "→"; margin-left: 8px; color: var(--gray); }
  table.hours td.per { grid-column: 1 / -1; font-size: 12.5px; }
  table.hours tr.grp { padding: 8px 14px; background: #FAFCFC; }
  table.hours tr.grp td { background: none; padding: 0; }
  table.hours tfoot tr { background: var(--magenta-soft); border-bottom: 0; }
  table.hours tfoot td { background: none; }
  table.hours tfoot td:last-child:not(.after) { grid-column: 1 / -1; }
}

/* 導入後の棒は実際の比率の長さにし、数字は棒の右に出す */
.bar-after { display: flex; align-items: center; gap: 10px; min-width: 0; }
.bar-after .bar.a { flex: none; min-width: 8px; padding: 0; }
.bar-val { font-weight: 800; font-size: 14px; color: var(--teal-dark); white-space: nowrap; }

/* iPhoneが住所や電話番号に勝手に付ける点線リンクを消す */
a[x-apple-data-detectors] { color: inherit !important; text-decoration: none !important; font: inherit !important; }

/* 冒頭カードのラベル（業種が長くても2行で崩れないように） */
.top-band .tag { border-radius: 16px; line-height: 1.6; }
@media (max-width: 640px) { .top-band .tag { letter-spacing: .04em; font-size: 12.5px; } }
