/* ============================================================
   MSYNC corporate site — design system
   医療の安心感（navy × 白 × 余白） + 技術力（精緻なディテール）
   ============================================================ */

:root {
  --teal: #00b4a0;
  --teal-deep: #00897d;      /* リンク・小テキスト用（コントラスト確保） */
  --teal-soft: #e2f5f2;
  --navy: #10303b;
  --navy-2: #16404e;
  --ink: #223842;
  --muted: #5c7078;
  --line: #dde8e6;
  --bg: #ffffff;
  --bg-alt: #f4f9f8;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(16, 48, 59, .05), 0 2px 8px rgba(16, 48, 59, .05);
  --shadow-md: 0 2px 6px rgba(16, 48, 59, .06), 0 12px 32px rgba(16, 48, 59, .10);
  --maxw: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-size: 16.5px;
  line-height: 1.85;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  letter-spacing: .015em;
}

img, svg { max-width: 100%; vertical-align: middle; }
a { color: var(--teal-deep); text-decoration: none; }
a:hover { opacity: .85; }
ul { list-style: none; }

:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 4px; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- reveal（JS有効時のみ発動・無効時は常時表示） ---------- */
html.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
html.js .reveal.in { opacity: 1; transform: none; }
html.js .reveal.d1 { transition-delay: .08s; }
html.js .reveal.d2 { transition-delay: .16s; }
html.js .reveal.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { height: 34px; width: auto; }
.brand-name { font-size: 22px; font-weight: 900; letter-spacing: .06em; color: var(--navy); }
.gnav { display: flex; align-items: center; gap: 30px; }
.gnav a:not(.btn) { color: var(--ink); font-weight: 500; font-size: 15px; position: relative; padding: 6px 0; }
.gnav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--teal); transform: scaleX(0); transition: transform .25s ease; transform-origin: left;
}
.gnav a:not(.btn):hover::after, .gnav a[aria-current="page"]::after { transform: scaleX(1); }
.nav-toggle { display: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; border-radius: 999px; cursor: pointer; border: 2px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  padding: 13px 30px; font-size: 15.5px; line-height: 1.4;
}
.btn-primary { background: var(--teal); color: #fff !important; box-shadow: 0 6px 18px rgba(0, 180, 160, .32); }
.btn-primary:hover { background: #00c4ae; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 180, 160, .38); opacity: 1; }
.btn-ghost { border-color: var(--navy); color: var(--navy) !important; background: transparent; }
.btn-ghost:hover { background: var(--navy); color: #fff !important; opacity: 1; }
.btn-white { background: #fff; color: var(--navy) !important; }
.btn-white:hover { transform: translateY(-2px); opacity: 1; }
.btn-lg { padding: 17px 42px; font-size: 17px; }
.btn .arrow { transition: transform .18s ease; }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1000px 460px at 88% -10%, rgba(0, 180, 160, .12), transparent 60%),
    radial-gradient(700px 420px at -8% 108%, rgba(16, 48, 59, .07), transparent 60%),
    linear-gradient(180deg, #fbfdfd 0%, #f2f8f7 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(16, 48, 59, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 48, 59, .045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(720px 480px at 78% 34%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(720px 480px at 78% 34%, #000 0%, transparent 72%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; gap: 48px; align-items: center; padding: 84px 0 92px; }
.hero-copy .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 16px; font-size: 13.5px; font-weight: 700; color: var(--teal-deep);
  box-shadow: var(--shadow-sm); margin-bottom: 26px;
}
.hero-copy .eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.hero-title { font-size: clamp(38px, 5.2vw, 58px); font-weight: 900; line-height: 1.32; color: var(--navy); letter-spacing: .02em; }
.hero-title em { font-style: normal; color: var(--teal); }
.hero-lead { margin-top: 22px; font-size: 17.5px; color: var(--muted); max-width: 34em; }
.hero-cta { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin-top: 14px; font-size: 13.5px; color: var(--muted); }

.hero-badges { margin-top: 40px; display: flex; gap: 10px; flex-wrap: wrap; }
.hero-badges li {
  display: inline-flex; align-items: center; gap: 7px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 9px 14px; font-size: 13.5px; font-weight: 700; color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.hero-badges svg { color: var(--teal); flex: none; }

/* hero visual: ブラウザモック */
.hero-visual { position: relative; }
.browser-mock {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow-md); overflow: hidden;
  transform: rotate(1.2deg);
}
.browser-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: #f7fafa; }
.browser-bar i { width: 11px; height: 11px; border-radius: 50%; background: #e3ecea; }
.browser-bar i:first-child { background: #f6c9c4; }
.browser-bar i:nth-child(2) { background: #f4e3b8; }
.browser-bar i:nth-child(3) { background: #c4e6cf; }
.browser-url { flex: 1; margin-left: 8px; background: #fff; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; padding: 4px 14px; color: var(--muted); }
.mock-body { padding: 22px; display: grid; gap: 14px; }
.mock-hero { border-radius: 10px; background: linear-gradient(120deg, var(--teal-soft), #d9f0ec 60%, #eef7f5); height: 120px; position: relative; overflow: hidden; }
.mock-hero::after { content: ""; position: absolute; left: 18px; top: 30px; width: 46%; height: 14px; border-radius: 7px; background: rgba(16, 48, 59, .28); box-shadow: 0 26px 0 -4px rgba(16, 48, 59, .14); }
.mock-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mock-card { border: 1px solid var(--line); border-radius: 10px; height: 74px; padding: 12px; }
.mock-card::before { content: ""; display: block; width: 26px; height: 26px; border-radius: 8px; background: var(--teal-soft); margin-bottom: 8px; }
.mock-card::after { content: ""; display: block; width: 80%; height: 8px; border-radius: 4px; background: #e8efee; }
.float-chip {
  position: absolute; display: flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow-md); padding: 12px 16px; font-size: 13px; font-weight: 700; color: var(--navy);
}
.float-chip svg { color: var(--teal); }
.chip-1 { top: -18px; right: -6px; transform: rotate(-1deg); }
.chip-2 { bottom: -16px; left: -10px; }

/* ---------- sections ---------- */
.section { padding: 92px 0; }
.section.alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.section-label {
  display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: .22em;
  text-transform: uppercase; color: var(--teal-deep); margin-bottom: 14px;
}
.section-title { font-size: clamp(26px, 3.4vw, 36px); font-weight: 900; color: var(--navy); line-height: 1.45; letter-spacing: .02em; }
.section-sub { margin-top: 16px; color: var(--muted); font-size: 16px; }

/* ---------- cards / grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px; box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card h3 { font-size: 19px; font-weight: 800; color: var(--navy); margin: 18px 0 10px; line-height: 1.5; }
.card p { color: var(--muted); font-size: 15px; }

.icon-badge {
  width: 56px; height: 56px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  background: var(--teal-soft); color: var(--teal-deep);
}

/* 悩みカード */
.worry-card { border-top: 4px solid var(--teal); }

/* 選ばれる理由 */
.reason-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.reason {
  display: flex; gap: 22px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 28px; box-shadow: var(--shadow-sm);
}
.reason .num {
  flex: none; font-size: 15px; font-weight: 900; color: var(--teal-deep);
  width: 52px; height: 52px; border-radius: 50%; background: var(--teal-soft);
  display: flex; align-items: center; justify-content: center; letter-spacing: .04em;
}
.reason h3 { font-size: 18px; font-weight: 800; color: var(--navy); margin-bottom: 8px; }
.reason p { color: var(--muted); font-size: 15px; }

/* サービスカード */
.service-card { display: flex; flex-direction: column; }
.service-card .check-list { margin: 14px 0 22px; flex: 1; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; font-size: 15px; color: var(--ink); }
.check-list svg { flex: none; margin-top: 5px; color: var(--teal); }
.text-link { font-weight: 700; color: var(--teal-deep); display: inline-flex; align-items: center; gap: 6px; }

/* サービス横長カード（AIデータ分析） */
.service-feature {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center;
  margin-top: 26px; padding: 42px 40px; border-left: 4px solid var(--teal);
}
.service-feature h3 { font-size: 21px; font-weight: 800; color: var(--navy); margin: 10px 0 12px; }
.service-feature .check-list { margin: 0; }
@media (max-width: 960px) { .service-feature { grid-template-columns: 1fr; gap: 20px; } }

/* ---------- works ---------- */
.work-card { overflow: hidden; padding: 0; display: flex; flex-direction: column; }
.work-thumb { position: relative; height: 190px; display: flex; align-items: center; justify-content: center; }
.work-thumb .site-name { font-weight: 900; font-size: 20px; letter-spacing: .04em; }
.thumb-dental { background: linear-gradient(135deg, #eaf4fb, #d7e9f6); color: #2b6a9e; }
.thumb-clinic { background: linear-gradient(135deg, #eef7ea, #ddeed6); color: #4a7a3d; }
.thumb-ortho { background: linear-gradient(135deg, #10303b, #1d4a5c); color: #9fd8ce; }
.thumb-derma { background: linear-gradient(135deg, #f7f2ea, #ece1d0); color: #8a6d3f; }
.thumb-derma .site-name { font-family: "Noto Serif JP", serif; font-weight: 700; letter-spacing: .12em; }
.thumb-kids { background: linear-gradient(135deg, #fff6e0, #ffe9ef 55%, #e3f4ff); color: #c26a2e; }
.thumb-mental { background: linear-gradient(135deg, #f5f2ea, #e2e6da); color: #5a6b52; }

/* AIレポートカードのサムネイル */
.thumb-report { background: linear-gradient(160deg, #f0f5f4, #e2ebe9); color: var(--navy); }
.report-mini {
  position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center;
  gap: 10px; padding-bottom: 34px; opacity: .85;
}
.report-mini i { display: block; width: 26px; border-radius: 5px 5px 0 0; background: var(--teal); }
.report-mini i.b { background: #3a5fc0; }
.thumb-report .site-name { position: relative; z-index: 1; }
.work-tag {
  position: absolute; top: 14px; left: 14px; background: rgba(255, 255, 255, .94);
  color: var(--navy); font-size: 11.5px; font-weight: 800; letter-spacing: .08em;
  border-radius: 6px; padding: 4px 10px;
}
.work-body { padding: 26px 26px 30px; display: flex; flex-direction: column; flex: 1; }
.work-body h3 { margin-top: 0; }
.work-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 20px; }
.work-tags span { font-size: 12px; font-weight: 700; color: var(--teal-deep); background: var(--teal-soft); border-radius: 999px; padding: 4px 12px; }

/* ---------- pricing ---------- */
.price-card { text-align: center; padding: 40px 30px; position: relative; }
.price-card .plan { font-size: 15px; font-weight: 800; color: var(--teal-deep); letter-spacing: .1em; }
.price-card .price { font-size: 34px; font-weight: 900; color: var(--navy); margin: 14px 0 6px; }
.price-card .price small { font-size: 16px; font-weight: 700; }
.price-card .note { color: var(--muted); font-size: 14px; }
.price-card.featured { border: 2px solid var(--teal); box-shadow: var(--shadow-md); }
.price-card.featured .ribbon {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--teal); color: #fff; font-size: 12.5px; font-weight: 800;
  border-radius: 999px; padding: 4px 18px; white-space: nowrap;
}

/* ---------- blog ---------- */
.post-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.post-head { padding: 22px 26px 0; display: flex; align-items: center; gap: 12px; }
.post-cat { font-size: 12px; font-weight: 800; color: var(--teal-deep); background: var(--teal-soft); border-radius: 999px; padding: 4px 12px; }
.post-date { font-size: 13px; color: var(--muted); }
.post-card h3 { padding: 0 26px; font-size: 17px; }
.post-card h3 a { color: var(--navy); }
.post-card p { padding: 0 26px 26px; font-size: 14px; }

/* 記事ページ */
.article { max-width: 780px; margin: 0 auto; }
.article-header { text-align: center; margin-bottom: 48px; }
.article-header h1 { font-size: clamp(24px, 3.2vw, 32px); font-weight: 900; color: var(--navy); line-height: 1.55; margin: 18px 0 14px; }
.article-meta { color: var(--muted); font-size: 14px; display: flex; gap: 16px; justify-content: center; }
.article-body h2 {
  font-size: 22px; font-weight: 800; color: var(--navy); margin: 52px 0 20px;
  padding: 14px 20px; background: var(--bg-alt); border-left: 5px solid var(--teal); border-radius: 0 8px 8px 0; line-height: 1.5;
}
.article-body h3 { font-size: 18.5px; font-weight: 800; color: var(--navy); margin: 38px 0 14px; padding-bottom: 8px; border-bottom: 2px solid var(--line); }
.article-body p { margin: 0 0 20px; }
.article-body ul { margin: 0 0 24px; padding-left: 4px; }
.article-body ul li { position: relative; padding: 5px 0 5px 26px; }
.article-body ul li::before { content: ""; position: absolute; left: 6px; top: 16px; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.article-body .note-box { background: var(--teal-soft); border-radius: 10px; padding: 22px 26px; margin: 28px 0; font-size: 15px; }
.article-cta { margin-top: 56px; text-align: center; background: var(--bg-alt); border-radius: var(--radius); padding: 40px 30px; }
.article-cta p { margin-bottom: 20px; font-weight: 700; color: var(--navy); }

/* --- 記事レイアウト（本文＋追従目次） --- */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 52px; align-items: start; max-width: 1060px; margin: 0 auto; }
.toc { position: sticky; top: 100px; border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; font-size: 13.5px; background: #fff; }
.toc h4 { font-size: 12px; font-weight: 800; letter-spacing: .18em; color: var(--teal-deep); text-transform: uppercase; margin-bottom: 12px; }
.toc a { display: block; padding: 6px 0 6px 14px; border-left: 2px solid var(--line); color: var(--muted); line-height: 1.6; transition: color .2s ease, border-color .2s ease; }
.toc a:hover { color: var(--navy); opacity: 1; }
.toc a.active { border-color: var(--teal); color: var(--teal-deep); font-weight: 700; }

.author-chip { display: inline-flex; align-items: center; gap: 8px; }
.author-chip .a-avatar {
  width: 28px; height: 28px; border-radius: 50%; background: var(--teal-soft);
  color: var(--teal-deep); font-size: 13px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
}

/* 要点サマリー */
.summary-box { border: 2px solid var(--teal); border-radius: 12px; padding: 24px 28px; margin-bottom: 40px; background: #fff; }
.summary-box h4 { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 800; color: var(--navy); margin-bottom: 12px; }
.summary-box ul { margin: 0; }
.summary-box li { position: relative; padding: 4px 0 4px 26px; font-size: 14.5px; }
.summary-box li::before { content: "✓"; position: absolute; left: 4px; color: var(--teal); font-weight: 900; }

/* コールアウト */
.callout { display: flex; gap: 12px; border-radius: 10px; padding: 18px 22px; margin: 28px 0; font-size: 14.5px; line-height: 1.9; }
.callout .c-icon { flex: none; font-size: 17px; }
.callout.point { background: var(--teal-soft); }
.callout.warn { background: #fbf1e2; }
.callout strong:first-child { display: block; margin-bottom: 2px; }
.callout.point strong:first-child { color: var(--teal-deep); }
.callout.warn strong:first-child { color: #a8672a; }
.article-body .callout strong { background: none; }

/* 記事内テーブル */
.article-body .table-scroll { overflow-x: auto; margin: 24px 0 32px; border: 1px solid var(--line); border-radius: 10px; }
.article-body table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 520px; }
.article-body th, .article-body td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.article-body thead th { background: var(--teal-soft); color: var(--navy); font-weight: 800; font-size: 13.5px; white-space: nowrap; }
.article-body tbody tr:last-child td { border-bottom: none; }
.article-body td strong { background: none; color: var(--teal-deep); }

/* 本文の強調はマーカー風 */
.article-body p strong, .article-body li strong { background: linear-gradient(transparent 64%, rgba(0, 180, 160, .25) 64%); font-weight: 700; }

/* FAQ */
.faq { margin-top: 48px; }
.faq h2 { margin-top: 0 !important; }
.faq details { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 12px; background: #fff; overflow: hidden; }
.faq summary { padding: 16px 20px; font-weight: 700; color: var(--navy); cursor: pointer; list-style: none; position: relative; padding-right: 44px; font-size: 15px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 20px; font-weight: 400; color: var(--teal-deep); transition: transform .25s ease; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 20px 18px; color: var(--muted); font-size: 14.5px; margin: 0; }
.faq summary .q { color: var(--teal-deep); font-weight: 900; margin-right: 8px; }

/* 関連記事 */
.related { margin-top: 64px; }
.related h2 { font-size: 18px; font-weight: 800; color: var(--navy); margin-bottom: 20px; }

@media (max-width: 960px) {
  .article-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .article-layout > * { min-width: 0; }
  .toc { position: static; order: -1; }
}

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 55%, #1a5a54 100%); padding: 84px 0; position: relative; overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 44px 44px;
}
.cta-inner { position: relative; text-align: center; }
.cta-inner h2 { color: #fff; font-size: clamp(24px, 3.2vw, 32px); font-weight: 900; line-height: 1.6; }
.cta-inner p { color: rgba(255, 255, 255, .82); margin: 16px 0 32px; font-size: 16px; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, .78); padding: 64px 0 32px; font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand .brand-name { color: #fff; }
.footer-brand p { margin-top: 16px; line-height: 2; }
.site-footer h4 { color: #fff; font-size: 14px; font-weight: 800; letter-spacing: .08em; margin-bottom: 16px; }
.site-footer li { padding: 5px 0; }
.site-footer a { color: rgba(255, 255, 255, .78); }
.site-footer a:hover { color: #fff; opacity: 1; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .14); padding-top: 26px; text-align: center; font-size: 13px; color: rgba(255, 255, 255, .5); }

/* ---------- page hero (下層) ---------- */
.page-hero { background: linear-gradient(180deg, #fbfdfd, #f0f7f6); padding: 72px 0; text-align: center; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(28px, 3.8vw, 40px); font-weight: 900; color: var(--navy); letter-spacing: .02em; }
.page-hero .lead { margin-top: 14px; color: var(--muted); }

/* ---------- about ---------- */
.philosophy { max-width: 800px; margin: 0 auto; text-align: center; }
.philosophy p { margin-bottom: 22px; color: var(--ink); }
.member-card { text-align: center; padding: 44px 34px; }
.member-avatar {
  width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--teal-soft), #cdeee8);
  display: flex; align-items: center; justify-content: center;
  font-size: 34px; font-weight: 900; color: var(--teal-deep);
}
.member-card .role { font-size: 13px; font-weight: 800; letter-spacing: .12em; color: var(--teal-deep); text-transform: uppercase; }
.member-card h3 { margin: 8px 0 14px; font-size: 21px; }
.member-card .mail { display: inline-block; margin-top: 14px; font-size: 14px; }

.company-table { width: 100%; max-width: 720px; margin: 0 auto; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.company-table th, .company-table td { padding: 18px 26px; text-align: left; border-bottom: 1px solid var(--line); font-size: 15px; }
.company-table tr:last-child th, .company-table tr:last-child td { border-bottom: none; }
.company-table th { width: 32%; background: var(--bg-alt); color: var(--navy); font-weight: 800; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.35fr; gap: 44px; align-items: start; }
.contact-info .point { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; }
.contact-info .point svg { flex: none; color: var(--teal); margin-top: 4px; }
.contact-info .point strong { display: block; color: var(--navy); font-size: 16px; }
.contact-info .point span { color: var(--muted); font-size: 14px; }
.contact-alt { margin-top: 26px; padding: 22px 26px; background: var(--bg-alt); border-radius: var(--radius); font-size: 14.5px; }

.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-md); padding: 40px 38px; }
.form-row { margin-bottom: 22px; }
.form-row label { display: block; font-weight: 700; font-size: 14.5px; color: var(--navy); margin-bottom: 8px; }
.form-row label .req { color: #d0482f; font-size: 12px; margin-left: 6px; font-weight: 800; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; border: 1.5px solid var(--line); border-radius: 10px;
  padding: 13px 16px; font-size: 16px; font-family: inherit; color: var(--ink); background: #fff;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(0, 180, 160, .14);
}
.form-row textarea { min-height: 150px; resize: vertical; }
.form-status { margin-top: 16px; font-weight: 700; font-size: 15px; display: none; }
.form-status.ok { display: block; color: var(--teal-deep); }
.form-status.ng { display: block; color: #d0482f; }

/* ============================================================
   Motion layer — MSYNC自身の技術力を見せる演出群
   すべて prefers-reduced-motion: no-preference 内に隔離
   ============================================================ */
@view-transition { navigation: auto; }

#scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 100%;
  transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--teal), #55d6c6);
  z-index: 300; pointer-events: none;
}

.site-header { transition: transform .35s ease, box-shadow .35s ease, background .35s ease; }
.site-header.hidden { transform: translateY(-100%); }
.site-header.scrolled { box-shadow: 0 4px 24px rgba(16, 48, 59, .09); }

@media (prefers-reduced-motion: no-preference) {

  body { animation: pageIn .5s ease both; }
  @keyframes pageIn { from { opacity: 0; } }

  /* --- ヒーローの段階的登場 --- */
  html.js .hero-copy > * { animation: heroUp .85s cubic-bezier(.22, .8, .3, 1) both; }
  html.js .hero-copy > *:nth-child(1) { animation-delay: .05s; }
  html.js .hero-copy > *:nth-child(2) { animation-delay: .18s; }
  html.js .hero-copy > *:nth-child(3) { animation-delay: .32s; }
  html.js .hero-copy > *:nth-child(4) { animation-delay: .46s; }
  html.js .hero-copy > *:nth-child(5) { animation-delay: .60s; }
  @keyframes heroUp { from { opacity: 0; transform: translateY(28px); filter: blur(4px); } }

  html.js .hero-visual { animation: heroVis 1s .35s cubic-bezier(.22, .8, .3, 1) both; }
  @keyframes heroVis { from { opacity: 0; transform: translateY(36px) scale(.96); } }

  /* 浮遊するブラウザモック＋チップ */
  .browser-mock { animation: mockBob 7s ease-in-out 1.6s infinite; }
  @keyframes mockBob {
    0%, 100% { transform: rotate(1.2deg) translateY(0); }
    50% { transform: rotate(1.4deg) translateY(-10px); }
  }
  .float-chip { animation: chipBob 5.4s ease-in-out 1s infinite; }
  .chip-2 { animation-delay: 2.2s; animation-duration: 6.4s; }
  @keyframes chipBob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -9px; } }

  /* モック内のシマー（作られていく感） */
  .mock-hero::before {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(100deg, transparent 32%, rgba(255, 255, 255, .6) 50%, transparent 68%);
    transform: translateX(-110%); animation: shimmer 3.4s ease-in-out 2.2s infinite;
  }
  @keyframes shimmer { 55%, 100% { transform: translateX(110%); } }

  /* ヒーロー背景のドリフトする光 */
  .hero::after {
    content: ""; position: absolute; width: 560px; height: 560px; border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 180, 160, .15), transparent 65%);
    top: -160px; right: -100px; pointer-events: none;
    animation: blobDrift 16s ease-in-out infinite alternate;
  }
  @keyframes blobDrift { to { transform: translate(-70px, 60px) scale(1.18); } }

  /* --- reveal強化: ぼかし付き --- */
  html.js .reveal {
    opacity: 0; transform: translateY(26px); filter: blur(6px);
    transition: opacity .8s ease, transform .8s cubic-bezier(.22, .8, .3, 1), filter .8s ease;
  }
  html.js .reveal.in { opacity: 1; transform: none; filter: none; }

  /* セクションラベルの下線ドロー */
  .section-head .section-label { position: relative; padding-bottom: 4px; }
  .section-head .section-label::after {
    content: ""; position: absolute; left: 50%; bottom: 0; height: 2px; width: 0;
    background: var(--teal); transform: translateX(-50%);
    transition: width .7s .35s cubic-bezier(.22, .8, .3, 1);
  }
  .section-head.reveal.in .section-label::after { width: 46px; }

  /* ボタンのシャイン */
  .btn-primary { position: relative; overflow: hidden; }
  .btn-primary::after {
    content: ""; position: absolute; top: 0; bottom: 0; width: 45%; left: -70%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .4), transparent);
    transform: skewX(-20deg); transition: left .55s ease;
  }
  .btn-primary:hover::after { left: 130%; }

  /* 事例サムネイルのシーン＋ズーム */
  .work-thumb::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(100deg, transparent 40%, rgba(255, 255, 255, .38) 50%, transparent 60%);
    transform: translateX(-130%); transition: transform .7s ease; pointer-events: none;
  }
  .work-card:hover .work-thumb::after { transform: translateX(130%); }
  .work-thumb .site-name { transition: transform .35s ease; }
  .work-card:hover .site-name { transform: scale(1.07); }

  /* アイコンバッジのポップ */
  .card .icon-badge { transition: transform .35s cubic-bezier(.34, 1.56, .64, 1), background .35s ease; }
  .card:hover .icon-badge { transform: translateY(-4px) rotate(-4deg) scale(1.08); background: var(--teal); color: #fff; }

  /* CTAバンドのグラデーションシフト＋グリッドドリフト */
  .cta-band { background-size: 180% 180%; animation: ctaShift 12s ease-in-out infinite alternate; }
  @keyframes ctaShift { to { background-position: 100% 60%; } }
  .cta-band::before { animation: gridDrift 26s linear infinite; }
  @keyframes gridDrift { to { background-position: 44px 44px; } }

  /* メンバーアバターの呼吸 */
  .member-card:hover .member-avatar { animation: avatarPulse 1.6s ease-in-out infinite; }
  @keyframes avatarPulse { 50% { transform: scale(1.06); box-shadow: 0 0 0 10px rgba(0, 180, 160, .1); } }
}

@media (prefers-reduced-motion: reduce) {
  #scroll-progress { display: none; }
  .site-header.hidden { transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; padding: 56px 0 64px; gap: 40px; }
  .hero-visual { max-width: 560px; }
  .grid-3, .reason-list { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .grid-3, .grid-2, .reason-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-card { padding: 28px 22px; }

  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 46px; height: 46px; background: none; border: none; cursor: pointer; align-items: center;
  }
  .nav-toggle span { display: block; width: 22px; height: 2.5px; background: var(--navy); border-radius: 2px; transition: transform .25s ease, opacity .25s ease; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

  .gnav {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 12px 24px 22px;
    box-shadow: var(--shadow-md);
  }
  .gnav.open { display: flex; }
  .gnav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 16px; }
  .gnav .btn { margin-top: 18px; }
}
