:root {
  --bg: #0b0b0b;
  --surface: #141414;
  --text: #f4f3f0;
  --muted: #97958f;
  --line: rgba(244,243,240,0.14);
  --line-strong: rgba(244,243,240,0.28);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html {
  font-size: 18px;
  scroll-behavior: smooth;
  scroll-padding-top: env(safe-area-inset-top, 0px);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans JP", "Manrope", -apple-system, sans-serif;
  line-height: 1.85;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  overflow-x: hidden;
}
.en { font-family: "Manrope", "Noto Sans JP", sans-serif; }
a { color: inherit; }
.nw { display: inline-block; }
img, svg { max-width: 100%; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---- header ---- */
header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(11,11,11,0.82); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px; max-width: 1080px; margin: 0 auto;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo svg { width: 26px; height: 26px; }
.logo span { font-family: "Manrope", sans-serif; font-weight: 800; font-size: 1.05rem; letter-spacing: -0.01em; }
nav { display: none; gap: 28px; font-size: 0.88rem; color: var(--muted); }
nav a { text-decoration: none; }
nav a:hover { color: var(--text); }
@media (min-width: 760px) { nav { display: flex; } }

/* ---- hero ---- */
.hero {
  position: relative;
  padding: 96px 24px 88px;
  overflow: hidden;
}
.hero-mark {
  position: absolute; right: -60px; top: 40%; transform: translateY(-50%);
  width: 380px; height: 380px; opacity: 0.06; pointer-events: none;
}
.corner-accent {
  position: absolute; width: 46px; height: 46px; opacity: 0.35;
}
.corner-accent.tl { top: 28px; left: 24px; }
.corner-accent.br { bottom: 28px; right: 24px; transform: rotate(180deg); }
.hero-inner { max-width: 1080px; margin: 0 auto; position: relative; }
.eyebrow-line { width: 40px; height: 1px; background: var(--line-strong); margin-bottom: 28px; }
h1.headline {
  font-family: "Manrope", "Noto Sans JP", sans-serif;
  font-weight: 800;
  font-size: clamp(2.1rem, 7vw, 3.6rem);
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin: 0 0 28px;
}
.sub {
  color: var(--muted);
  font-size: clamp(1.05rem, 2.8vw, 1.25rem);
  max-width: 34ch;
  margin: 0 0 40px;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--text); color: var(--bg);
  padding: 14px 26px; border-radius: 999px;
  font-weight: 700; font-size: 0.92rem; text-decoration: none;
}
.btn-secondary {
  color: var(--muted); font-size: 0.88rem; text-decoration: none;
  border-bottom: 1px solid var(--line-strong); padding-bottom: 2px;
}

/* ---- section shell ---- */
section { padding: 76px 0; border-top: 1px solid var(--line); }
.section-head { margin-bottom: 44px; }
.section-head .kicker { color: var(--muted); font-size: 0.85rem; margin-bottom: 10px; }
@media (max-width: 699px) {
  section { padding: 56px 0; }
  .section-head { margin-bottom: 28px; }
  .hero { padding: 72px 24px 64px; }
}
.section-head h2 {
  font-family: "Manrope", "Noto Sans JP", sans-serif;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800; margin: 0; letter-spacing: -0.01em;
}

/* ---- problems ---- */
.problem-list { display: grid; gap: 0; }
.problem-row {
  display: grid; grid-template-columns: 2.4rem 1fr; gap: 18px;
  padding: 22px 0; border-top: 1px solid var(--line);
}
.problem-row:last-child { border-bottom: 1px solid var(--line); }
.problem-row .num { color: var(--muted); display: flex; align-items: flex-start; padding-top: 3px; }
.problem-row .num svg { width: 20px; height: 20px; }
.problem-row p { margin: 0; font-size: 1.1rem; }
.problem-row .lead { font-weight: 700; margin-bottom: 6px; }
.problem-row .detail { color: var(--muted); font-size: 1rem; }
.problem-row.no-icon { grid-template-columns: 1fr; }

/* ---- services ---- */
.service-grid {
  display: grid; gap: 32px; grid-template-columns: 1fr;
}
@media (min-width: 760px) { .service-grid { grid-template-columns: 1fr 1fr; } }
.service-card {
  border: 1px solid var(--line); border-radius: 4px; padding: 28px;
}
.service-card h3 { margin: 0 0 14px; font-size: 1.25rem; }
.service-card p { color: var(--muted); font-size: 1.02rem; margin: 0; }

/* ---- pricing ---- */
.price-table { border-top: 1px solid var(--line-strong); }
.price-row {
  display: grid; grid-template-columns: 1fr; gap: 6px;
  padding: 26px 0; border-bottom: 1px solid var(--line);
  position: relative;
}
@media (min-width: 700px) {
  .price-row { grid-template-columns: 1.1fr 1fr 1fr 1.4fr; align-items: center; gap: 20px; }
}
.price-row .plan-name { font-family: "Manrope", sans-serif; font-weight: 800; font-size: 1.3rem; display: flex; align-items: center; gap: 10px; }
.plan-name .badge {
  font-size: 0.72rem; font-weight: 700; color: var(--bg); background: var(--text);
  padding: 3px 12px; border-radius: 999px;
}
.price-row .price-num { font-family: "Manrope", sans-serif; font-size: 1.55rem; font-weight: 700; }
.price-row .price-label { color: var(--muted); font-size: 0.85rem; }
.price-row .price-detail { color: var(--muted); font-size: 1rem; }

/* ---- campaign ---- */
.campaign {
  border: 1px solid var(--line-strong); border-radius: 4px;
  padding: 40px 28px; display: flex; flex-direction: column; gap: 18px;
}
.campaign .tag { color: var(--muted); font-size: 0.9rem; }
.campaign h3 { font-size: 1.7rem; margin: 0; font-family: "Manrope", sans-serif; font-weight: 800; }
.campaign ul { margin: 0; padding-left: 20px; color: var(--muted); font-size: 1.02rem; }
.campaign li { margin-bottom: 6px; }

/* ---- portfolio ---- */
.work-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .work-grid { grid-template-columns: 1fr 1fr; } }
.work-card {
  border: 1px solid var(--line); border-radius: 4px; overflow: hidden;
}
.work-thumb {
  aspect-ratio: 16/10; background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 0.82rem;
  border-bottom: 1px solid var(--line);
}
.work-info { padding: 20px; }
.work-info h3 { margin: 0 0 6px; font-size: 1.2rem; }
.work-info p { margin: 0; color: var(--muted); font-size: 1rem; }

/* ---- why ---- */
.why-grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .why-grid { grid-template-columns: repeat(3, 1fr); } }
.why-item .mark { width: 22px; height: 22px; margin-bottom: 16px; opacity: 0.8; }
.why-item h3 { margin: 0 0 10px; font-size: 1.15rem; }
.why-item p { margin: 0; color: var(--muted); font-size: 1rem; }

/* ---- about ---- */
.about-grid { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .about-grid { grid-template-columns: 1fr 1fr; } }
.about-meta { color: var(--muted); font-size: 1.02rem; }
.about-meta div { display: flex; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.about-meta div:last-child { border-bottom: 1px solid var(--line); }
.about-meta .k { width: 6.5em; flex-shrink: 0; color: var(--text); }
.about-grid > * { min-width: 0; }
.about-meta span:not(.k) { min-width: 0; overflow-wrap: anywhere; }
.people { display: flex; flex-direction: column; gap: 18px; }
.person { border: 1px solid var(--line); border-radius: 4px; padding: 18px 20px; }
.person .role { color: var(--muted); font-size: 0.95rem; }
.person .name { font-size: 1.05rem; font-weight: 700; margin-top: 4px; }

/* ---- contact ---- */
.contact-block { display: flex; flex-direction: column; gap: 14px; }
.contact-link {
  display: flex; align-items: center; justify-content: space-between;
  border: 1px solid var(--line); border-radius: 4px; padding: 20px 22px;
  text-decoration: none; font-size: 1rem;
}
.contact-link .arrow { color: var(--muted); flex: none; margin-left: 12px; }
.cl-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cl-main { font-weight: 700; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.cl-badge { font-size: 0.72rem; font-weight: 700; border: 1px solid var(--line-strong); border-radius: 99px; padding: 1px 8px; }
.cl-sub { color: var(--muted); font-size: 0.85rem; }

/* ---- 無料ホームページ診断 ---- */
.shindan-grid { display: grid; gap: 36px; }
.sub-head { font-size: 1rem; margin: 0 0 12px; color: var(--muted); font-weight: 700; letter-spacing: 0.04em; }
.shindan-note { color: var(--muted); font-size: 0.95rem; margin: 28px 0 22px; }
.shindan-note a { color: inherit; }
#shindan .cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 860px) { .shindan-grid { grid-template-columns: 1fr 1fr; gap: 48px; } }
.contact-link:hover { border-color: var(--line-strong); }

footer {
  border-top: 1px solid var(--line); padding: 32px 0 calc(32px + env(safe-area-inset-bottom, 0px));
  color: var(--muted); font-size: 0.8rem;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
footer .logo svg { width: 18px; height: 18px; opacity: 0.7; }

/* ---- animation ---- */
@media (prefers-reduced-motion: no-preference) {
  .hero-inner > * { opacity: 0; transform: translateY(16px); animation: rise 0.8s cubic-bezier(.16,.8,.3,1) forwards; }
  .hero-inner .eyebrow-line { animation-delay: .05s; }
  .hero-inner h1 { animation-delay: .15s; }
  .hero-inner .sub { animation-delay: .3s; }
  .hero-inner .cta-row { animation-delay: .45s; }

  #mark path {
    stroke-dasharray: 220;
    stroke-dashoffset: 220;
    animation: draw 1.6s cubic-bezier(.3,.6,.2,1) forwards;
  }
  header #mark path { animation-delay: .1s; }
  .hero-mark path { animation-delay: .5s; animation-duration: 2.2s; }
  .why-item .mark path { animation-duration: 1.4s; }

  .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.16,.8,.3,1), transform .7s cubic-bezier(.16,.8,.3,1); }
  .reveal.in-view { opacity: 1; transform: translateY(0); }
  .reveal-item { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
  .reveal-item.in-view { opacity: 1; transform: translateY(0); }

  .corner-accent line { stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw-line 1.2s ease-out .6s forwards; }
}
@keyframes rise { to { opacity: 1; transform: translateY(0); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes draw-line { to { stroke-dashoffset: 0; } }

.contact-link, .price-row, nav a, .btn-primary, .btn-secondary {
  transition: border-color .25s ease, color .25s ease, background .25s ease, transform .25s ease;
}
.contact-link:hover { transform: translateX(3px); }
.btn-primary:hover { transform: translateY(-2px); }
.price-row:hover { border-color: var(--line-strong); }
.work-card { transition: transform .3s ease, border-color .3s ease; }
.work-card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.service-card { transition: border-color .3s ease, transform .3s ease; }
.service-card:hover { transform: translateY(-3px); border-color: var(--line-strong); }

/* ---- multi-page additions ---- */
.menu-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-right: -10px;
  background: none; border: 0; color: var(--text); cursor: pointer;
}
.menu-btn svg { width: 22px; height: 22px; }
@media (min-width: 760px) { .menu-btn { display: none; } }
nav a[aria-current="page"] { color: var(--text); }
.mobile-nav {
  display: none; border-top: 1px solid var(--line);
  padding: 8px 24px 16px; max-width: 1080px; margin: 0 auto;
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block; padding: 14px 0; text-decoration: none;
  border-bottom: 1px solid var(--line); font-size: 1rem;
}
.mobile-nav a[aria-current="page"] { color: var(--muted); }
@media (min-width: 760px) { .mobile-nav, .mobile-nav.open { display: none; } }

.page-hero { padding: 72px 0 40px; }
.page-hero .kicker { color: var(--muted); font-size: 0.85rem; margin-bottom: 10px; }
.page-hero h1 {
  font-family: "Manrope", "Noto Sans JP", sans-serif; font-weight: 800;
  font-size: clamp(1.9rem, 6vw, 2.8rem); line-height: 1.35; margin: 0 0 18px;
}
.page-hero p { color: var(--muted); margin: 0; max-width: 40ch; }

.lead-text { color: var(--muted); font-size: 1.02rem; margin: -20px 0 36px; max-width: 46ch; }

.tag-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.tag-list li {
  border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 6px 16px; font-size: 0.95rem;
}

.check-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 0; }
.check-list li {
  display: grid; grid-template-columns: 1.6rem 1fr; gap: 10px;
  padding: 14px 0; border-top: 1px solid var(--line); font-size: 1.02rem;
}
.check-list li:last-child { border-bottom: 1px solid var(--line); }
.check-list svg { width: 18px; height: 18px; margin-top: 6px; color: var(--muted); }

.steps { counter-reset: step; display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.steps li {
  counter-increment: step; position: relative;
  display: grid; grid-template-columns: 3rem 1fr; gap: 14px;
  padding: 22px 0; border-top: 1px solid var(--line);
}
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: "Manrope", sans-serif; font-weight: 800; font-size: 1.3rem;
  color: var(--muted); line-height: 1.6;
}
.steps h3 { margin: 0 0 6px; font-size: 1.1rem; }
.steps p { margin: 0; color: var(--muted); font-size: 1rem; }

.option-table { border-top: 1px solid var(--line-strong); }
.option-row {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 18px 0; border-bottom: 1px solid var(--line);
}
.option-row .name { font-weight: 700; }
.option-row .val { font-family: "Manrope", "Noto Sans JP", sans-serif; font-weight: 700; }
.option-row .note { width: 100%; color: var(--muted); font-size: 0.95rem; margin-top: -6px; }

.cta-band {
  border: 1px solid var(--line-strong); border-radius: 4px;
  padding: 40px 28px; text-align: center;
}
.cta-band h2 {
  font-family: "Manrope", "Noto Sans JP", sans-serif; font-weight: 800;
  font-size: clamp(1.4rem, 4vw, 1.8rem); margin: 0 0 12px;
}
.cta-band p { color: var(--muted); margin: 0 0 24px; }
.cta-band .cta-row { justify-content: center; }

.next-links { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .next-links { grid-template-columns: 1fr 1fr; } }

.message p { margin: 0 0 18px; font-size: 1.05rem; }
.message p:last-child { margin-bottom: 0; }

.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { color: var(--text); }

.line-float {
  position: fixed; z-index: 60;
  left: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; gap: 7px; text-decoration: none;
}
.line-avatar {
  width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--text); color: var(--bg);
  box-shadow: 0 0 0 2.5px #06c755, 0 6px 20px rgba(0,0,0,0.45);
}
.line-avatar svg { width: 24px; height: 24px; }
.line-bubble {
  position: relative; display: flex; align-items: center; gap: 4px;
  background: var(--text); padding: 9px 11px; border-radius: 15px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.45);
}
.line-bubble::before {
  content: ""; position: absolute; left: -5px; top: 50%;
  width: 10px; height: 10px; background: var(--text);
  transform: translateY(-50%) rotate(45deg); border-radius: 2px;
}
.line-bubble i { width: 6px; height: 6px; border-radius: 50%; background: var(--bg); opacity: 0.35; }
@media (prefers-reduced-motion: no-preference) {
  .line-bubble i { animation: typing 1.2s infinite ease-in-out; }
  .line-bubble i:nth-child(2) { animation-delay: .2s; }
  .line-bubble i:nth-child(3) { animation-delay: .4s; }
}
@keyframes typing {
  0%, 60%, 100% { opacity: 0.35; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}
.line-float:hover .line-avatar { transform: translateY(-2px); }
.line-float { touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; transition: left .25s ease, top .25s ease; }
.line-float.dragging { transition: none; cursor: grabbing; }
.line-float.dragging .line-avatar { transform: scale(1.08); }
.line-float svg, .line-float span { pointer-events: none; }
.line-float.right { flex-direction: row-reverse; }
.line-float.right .line-bubble::before { left: auto; right: -5px; }

.policy { max-width: 760px; }
.policy h2 { font-size: 1.15rem; margin: 40px 0 10px; }
.policy h2:first-child { margin-top: 0; }
.policy p, .policy li { color: var(--muted); font-size: 1rem; }
.policy p { margin: 0; }
.policy ul { margin: 0; padding-left: 20px; }
.policy-date { margin-top: 40px !important; }

.hero-eyebrow { color: var(--muted); font-size: 0.9rem; font-weight: 500; letter-spacing: 0.04em; margin: 0 0 18px; }
