:root {
  --ink: #1c2733;
  --ink-soft: #55636f;
  --accent: #1e5aa8;
  --accent-deep: #143d75;
  --accent-soft: #e8f0fa;
  --bg: #f8fafc;
  --card: #ffffff;
  --line: #dde4ea;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.8;
}
.wrap { max-width: 880px; margin: 0 auto; padding: 0 20px; }

header {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  position: sticky; top: 0; z-index: 10;
}
header .wrap { display: flex; align-items: center; justify-content: space-between; }
.logo { font-weight: 700; font-size: 1.05rem; }
.logo a { color: inherit; text-decoration: none; }
.logo span { color: var(--accent); }
nav a {
  color: var(--ink-soft); text-decoration: none; font-size: 0.9rem; margin-left: 18px;
}
nav a:hover { color: var(--accent); }

.hero {
  padding: 64px 0 56px;
  background: linear-gradient(180deg, var(--accent-soft) 0%, var(--bg) 100%);
}
.hero-flex { display: flex; align-items: center; gap: 40px; }
.hero-text { flex: 1.15; }
.hero-art { flex: 1; min-width: 0; }
.hero-art img { width: 100%; height: auto; display: block; border-radius: 14px; }
@media (max-width: 700px) {
  .hero-flex { flex-direction: column; text-align: center; }
  .hero-art { max-width: 330px; margin: 0 auto; order: -1; }
}
.hero .badge {
  display: inline-block; background: var(--card); color: var(--accent);
  border: 1px solid var(--accent);
  font-size: 0.85rem; font-weight: 600; padding: 4px 14px; border-radius: 999px; margin-bottom: 20px;
}
.hero h1 { font-size: 1.9rem; line-height: 1.5; margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p { color: var(--ink-soft); max-width: 580px; margin: 0 0 28px; }
.hero .note {
  font-size: 0.85rem; color: var(--ink-soft);
  background: var(--card); border: 1px solid var(--line); border-radius: 8px;
  display: inline-block; padding: 8px 18px; margin-bottom: 28px;
}
.cta {
  display: inline-block; background: var(--accent); color: #fff; text-decoration: none;
  font-weight: 700; padding: 14px 36px; border-radius: 8px; font-size: 1rem;
}
.cta:hover { background: var(--accent-deep); }
.cta-note { font-size: 0.8rem; color: var(--ink-soft); margin-top: 10px; }

section { padding: 56px 0; }
section.alt { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2 { font-size: 1.4rem; text-align: center; margin-bottom: 8px; }
.h2-sub { text-align: center; color: var(--ink-soft); font-size: 0.9rem; margin-bottom: 36px; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 26px 22px;
}
section.alt .card { background: var(--bg); }
.card .icon { width: 44px; height: 44px; margin-bottom: 14px; color: var(--accent); }
.card .icon svg { width: 100%; height: 100%; }
.card h3 { font-size: 1.05rem; margin-bottom: 10px; }
.card p { font-size: 0.92rem; color: var(--ink-soft); }
.card .price { margin-top: 14px; font-weight: 700; color: var(--accent); font-size: 0.95rem; }
.card .price small { font-weight: 400; color: var(--ink-soft); }

.flow { list-style: none; counter-reset: step; max-width: 620px; margin: 0 auto; }
.flow li {
  counter-increment: step; position: relative; padding: 0 0 26px 58px;
}
.flow li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.flow li:not(:last-child)::after {
  content: ""; position: absolute; left: 19px; top: 42px; bottom: 4px; width: 2px; background: var(--line);
}
.flow b { display: block; }
.flow small { color: var(--ink-soft); }

.points li { margin-left: 1.4em; margin-bottom: 10px; }
.points b { color: var(--accent); }

.ng { list-style: none; max-width: 660px; margin: 0 auto; }
.ng li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.ng li:last-child { border-bottom: none; }
.ng b { display: block; }
.ng b::before { content: "✕ "; color: #b0483f; }
.ng small { color: var(--ink-soft); display: block; padding-left: 1.4em; }
.ng small::before { content: "→ "; color: var(--accent); font-weight: 700; }

.faq dt { font-weight: 700; margin-top: 22px; }
.faq dt::before { content: "Q. "; color: var(--accent); }
.faq dd { color: var(--ink-soft); margin-top: 4px; }
.faq dd::before { content: "A. "; font-weight: 700; }

.contact-box {
  max-width: 560px; margin: 0 auto; text-align: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 36px 28px;
}
.contact-box p { color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 20px; }

/* 制作事例ページ */
.page-hero { padding: 56px 0 40px; text-align: center;
  background: linear-gradient(180deg, var(--accent-soft) 0%, var(--bg) 100%); }
.page-hero h1 { font-size: 1.6rem; margin-bottom: 12px; }
.page-hero p { color: var(--ink-soft); max-width: 580px; margin: 0 auto; }
.disclaimer {
  max-width: 660px; margin: 0 auto 36px; font-size: 0.85rem; color: var(--ink-soft);
  background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 12px 18px;
}
.case {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 28px 26px; margin-bottom: 22px; max-width: 720px; margin-left: auto; margin-right: auto;
}
.case .tag {
  display: inline-block; background: var(--accent-soft); color: var(--accent);
  font-size: 0.78rem; font-weight: 600; padding: 2px 12px; border-radius: 999px;
  margin-bottom: 10px; margin-right: 6px;
}
.case h3 { font-size: 1.1rem; margin-bottom: 14px; }
.case dl div { display: flex; gap: 12px; margin-bottom: 8px; }
.case dt {
  flex: 0 0 84px; font-size: 0.82rem; font-weight: 700; color: var(--accent);
  background: var(--accent-soft); border-radius: 6px; text-align: center;
  align-self: flex-start; padding: 1px 0; margin-top: 5px;
}
.case dd { flex: 1; font-size: 0.92rem; color: var(--ink-soft); }

footer { padding: 28px 0 40px; text-align: center; color: var(--ink-soft); font-size: 0.8rem; }

@media (max-width: 600px) {
  .hero h1 { font-size: 1.45rem; }
  nav { display: none; }
  .case dl div { flex-direction: column; gap: 2px; }
  .case dt { flex: none; width: 84px; }
}

/* こんな状態、ありませんか？（共感セクション） */
section.trouble-sec { background: var(--accent-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trouble { display: flex; align-items: center; gap: 40px; }
.trouble-img { flex: 1.1; min-width: 0; }
.trouble-img img {
  width: 100%; height: auto; display: block;
  border-radius: 12px; border: 1px solid var(--line);
  box-shadow: 0 6px 20px rgba(20, 39, 51, 0.10);
}
.trouble-body { flex: 1; }
.trouble-list { list-style: none; margin: 0 0 22px; }
.trouble-list li {
  position: relative; padding: 9px 0 9px 30px;
  border-bottom: 1px dashed var(--line); color: var(--ink); font-size: 0.96rem;
}
.trouble-list li:last-child { border-bottom: none; }
.trouble-list li::before {
  content: "✓"; position: absolute; left: 0; top: 9px;
  color: var(--accent); font-weight: 700;
}
.trouble-lead { text-align: center; color: var(--ink-soft); font-size: 0.95rem; margin: 22px auto 0; max-width: 640px; }
.trouble-lead b { color: var(--accent); }
@media (max-width: 720px) {
  .trouble { flex-direction: column; gap: 26px; }
  .trouble-img { width: 100%; }
}

/* サービス活用の流れ（一部だけ残す） */
#usecase .h2-sub { margin-bottom: 42px; }
.uc-steps { max-width: 840px; margin: 0 auto; }
.uc-step { display: flex; align-items: center; gap: 40px; margin-bottom: 14px; }
.uc-step.rev { flex-direction: row-reverse; }
.uc-img { flex: 0 0 300px; max-width: 300px; }
.uc-img img {
  width: 100%; height: auto; display: block; border-radius: 14px;
  background: #fff; border: 1px solid var(--line);
}
.uc-text { flex: 1; }
.uc-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 0.9rem; margin-bottom: 10px;
}
.uc-step.concl .uc-num { background: #2e9e6b; }
.uc-text h3 { font-size: 1.12rem; margin-bottom: 8px; }
.uc-text p { color: var(--ink-soft); font-size: 0.95rem; }
.uc-cta { text-align: center; margin-top: 34px; }
.uc-cta .svc-note { color: var(--ink-soft); font-size: 0.9rem; margin-bottom: 14px; }
.uc-cta .svc-note b { color: var(--accent); font-weight: 700; }
@media (max-width: 680px) {
  .uc-step, .uc-step.rev { flex-direction: column; gap: 14px; text-align: center; margin-bottom: 30px; }
  .uc-img { flex: none; max-width: 240px; margin: 0 auto; }
}

/* サービスカードの「具体例を見る」ラベル */
.card .svc-more {
  display: inline-block; margin-top: 12px; color: var(--accent);
  font-size: 0.9rem; font-weight: 700; text-decoration: none;
}

/* クリック可能なサービスカード */
.card-clickable { cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.card-clickable:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(20, 39, 51, 0.13); border-color: var(--accent); }
.card-clickable:hover .svc-more { text-decoration: underline; }
.card-clickable:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* 具体例モーダル */
.uc-modal {
  border: none; border-radius: 16px; padding: 0; margin: auto;
  max-width: 620px; width: calc(100% - 32px);
  max-height: 88vh; overflow: hidden; color: var(--ink); background: var(--card);
  box-shadow: 0 24px 70px rgba(20, 39, 51, 0.38);
}
.uc-modal::backdrop { background: rgba(20, 39, 51, 0.55); }
.uc-modal-inner { overflow-y: auto; max-height: 88vh; padding: 42px 26px 32px; border-radius: 16px; }
.uc-modal h2 { font-size: 1.3rem; }
.uc-modal .h2-sub { margin-bottom: 30px; }
.uc-close {
  position: absolute; top: 12px; right: 14px; z-index: 3;
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; color: var(--ink); font-size: 1.25rem; line-height: 1; cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.uc-close:hover { background: var(--bg); }
/* モーダル内はビューポート幅に関わらず常に縦積み・コンパクトに */
.uc-modal .uc-steps { max-width: 440px; }
.uc-modal .uc-step, .uc-modal .uc-step.rev {
  flex-direction: column; text-align: center; gap: 12px; margin-bottom: 26px;
}
.uc-modal .uc-img { flex: none; max-width: 230px; margin: 0 auto; }
.uc-modal .uc-cta { margin-top: 26px; }
