/* DevBuddyConnect LP — ink navy lines / white ground / pixel squares / DotGothic16 + M PLUS Rounded 1c */
:root {
  --ink: #14203D;
  --bg: #F4F2FA;
  --white: #FFFFFF;
  --sub: #5B6483;
  --pink: #FC3D99;
  --cyan: #2EB8FD;
  --teal: #01D8BC;
  --yellow: #FEDE20;
  --orange: #FD8401;
  --purple: #A548DC;
  --red: #FC1C4C;
  --blue: #218DFD;
  --border: 3px;
  --radius: 18px;
  --shadow: 5px 5px 0 var(--ink);
  --dot: "DotGothic16", "M PLUS Rounded 1c", sans-serif;
  --round: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", sans-serif;
  --w: 1080px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--round);
  font-weight: 500;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.wrap { width: min(var(--w), 100% - 40px); margin-inline: auto; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-bottom: var(--border) solid var(--ink);
}
.site-header .wrap { display: flex; align-items: center; gap: 12px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { flex: none; width: 38px; height: 38px; aspect-ratio: 1; object-fit: cover; border-radius: 10px; border: 2px solid var(--ink); }
.brand span { font-family: var(--dot); font-size: 20px; letter-spacing: .02em; }
.nav { margin-left: auto; display: flex; gap: 18px; font-weight: 800; font-size: 14px; }
.nav a { text-decoration: none; }
.nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 720px) { .nav { display: none; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 28px;
  font-family: var(--round); font-weight: 800; font-size: 17px;
  color: var(--white); background: var(--ink);
  border: var(--border) solid var(--ink); border-radius: 16px;
  box-shadow: var(--shadow); text-decoration: none;
  transition: transform .12s, box-shadow .12s;
}
.btn:hover { transform: translate(-2px,-2px); box-shadow: 7px 7px 0 var(--ink); }
.btn:active { transform: translate(3px,3px); box-shadow: 2px 2px 0 var(--ink); }
.btn.light { background: var(--white); color: var(--ink); }
.btn small { display: block; font-size: 11px; font-weight: 500; opacity: .8; line-height: 1.2; }
.btn .stack { text-align: left; line-height: 1.25; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, #FF7AB6 0%, #FFB86B 38%, #7FD8FF 100%);
  border-bottom: var(--border) solid var(--ink);
}
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 24px; padding: 56px 0 64px; position: relative; z-index: 2; }
.hero-copy .eyebrow {
  display: inline-block; font-family: var(--dot); font-size: 14px;
  background: var(--ink); color: var(--yellow); padding: 4px 12px; border-radius: 8px;
}
.logo-type { margin: 18px 0 6px; font-family: var(--dot); font-weight: 400; font-size: clamp(44px, 7vw, 84px); line-height: 1; letter-spacing: .01em; color: var(--ink); }
.logo-type .connect {
  display: inline-block; margin-left: 6px; vertical-align: middle;
  font-size: .28em; letter-spacing: .25em; padding: 6px 10px 6px 14px;
  background: var(--white); border: var(--border) solid var(--ink); border-radius: 10px;
}
.tagline { margin: 22px 0 8px; font-weight: 800; font-size: clamp(22px, 3.2vw, 34px); line-height: 1.4; }
.lead { margin: 0 0 28px; font-size: 16px; max-width: 30em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.note { font-size: 13px; color: var(--ink); opacity: .85; margin-top: 12px; }
.hero-visual { position: relative; justify-self: center; width: min(460px, 100%); }
.hero-visual .halo {
  position: absolute; inset: 6% 6% 10%; border-radius: 50%;
  background: var(--white); border: var(--border) solid var(--ink); box-shadow: 8px 8px 0 var(--ink);
}
.hero-visual img { position: relative; width: 100%; filter: drop-shadow(0 6px 0 rgba(20,32,61,.12)); }
.hero-visual .bubble {
  position: absolute; left: -8px; top: 8%;
  background: var(--white); border: var(--border) solid var(--ink); border-radius: 16px;
  padding: 8px 14px; font-weight: 800; font-size: 15px; box-shadow: 4px 4px 0 var(--ink);
}
.pixels span { position: absolute; width: 18px; height: 18px; background: var(--white); border: 2px solid var(--ink); }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; padding-top: 40px; }
  .lead { margin-inline: auto; }
  .cta-row { justify-content: center; }
  .hero-visual { width: min(380px, 92%); order: -1; }
}

/* ---------- marquee of buddies ---------- */
.marquee { background: var(--ink); border-bottom: var(--border) solid var(--ink); overflow: hidden; padding: 14px 0; }
.marquee-track { display: flex; gap: 14px; width: max-content; animation: slide 60s linear infinite; }
.marquee img { flex: none; width: 92px; height: 92px; border-radius: 50%; background: var(--white); border: 3px solid var(--white); object-fit: cover; }
@keyframes slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ---------- story ---------- */
.story { background: #0D1226; color: var(--white); text-align: center; padding: 96px 0; border-bottom: var(--border) solid var(--ink); position: relative; overflow: hidden; }
.story p { font-family: var(--dot); font-size: clamp(19px, 2.6vw, 26px); line-height: 2; margin: 0 0 34px; }
.story p:last-child { margin-bottom: 0; color: var(--yellow); font-size: clamp(24px, 3.4vw, 34px); }
.story .fade { opacity: 0; transform: translateY(12px); transition: opacity .9s, transform .9s; }
.story .fade.on { opacity: 1; transform: none; }
.star { position: absolute; width: 8px; height: 8px; background: var(--white); opacity: .5; }

/* ---------- section heads ---------- */
.section { padding: 96px 0; border-bottom: var(--border) solid var(--ink); }
.section.white { background: var(--white); }
.sec-head { text-align: center; margin-bottom: 56px; }
.sec-head .num { font-family: var(--dot); font-size: 15px; letter-spacing: .2em; }
.sec-head h2 { margin: 6px 0 0; font-family: var(--dot); font-weight: 400; font-size: clamp(30px, 4.4vw, 46px); line-height: 1.3; }
.sec-head h2 mark { background: linear-gradient(transparent 58%, var(--cyan) 58%); color: inherit; padding: 0 4px; }
.sec-head p { margin: 14px auto 0; max-width: 34em; }

/* ---------- features ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; margin-bottom: 112px; }
.feature:last-child { margin-bottom: 0; }
.feature.rev .phones { order: 2; }
.feature .tag {
  display: inline-block; font-family: var(--dot); font-size: 14px; color: var(--white);
  background: var(--accent, var(--pink)); border: var(--border) solid var(--ink); border-radius: 10px; padding: 2px 12px;
}
.feature h3 { margin: 14px 0 12px; font-size: clamp(24px, 3vw, 32px); font-weight: 800; line-height: 1.4; }
.feature p { margin: 0 0 14px; }
.feature ul { margin: 0; padding: 0; list-style: none; }
.feature li { padding-left: 24px; position: relative; margin-bottom: 6px; }
.feature li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 10px; height: 10px; background: var(--accent, var(--pink)); border: 2px solid var(--ink); }
.phones { display: flex; justify-content: center; gap: 18px; position: relative; }
.phone {
  width: 260px; border: 4px solid var(--ink); border-radius: 36px; overflow: hidden;
  background: var(--white); box-shadow: 8px 8px 0 var(--ink);
}
.phone img { width: 100%; }
.phones .phone:nth-child(2) { transform: translateY(36px); }
.phones .bg-block { position: absolute; inset: 10% 8%; background: var(--accent, var(--pink)); border: var(--border) solid var(--ink); border-radius: 28px; z-index: -1; transform: rotate(-3deg); }
.phones { isolation: isolate; }
@media (max-width: 860px) {
  .feature, .feature.rev { grid-template-columns: 1fr; gap: 36px; }
  .feature.rev .phones { order: 0; }
  .phone { width: min(220px, 44vw); }
}

/* ---------- buddies ---------- */
.buddies { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.buddy {
  background: var(--white); border: var(--border) solid var(--ink); border-radius: var(--radius);
  box-shadow: 4px 4px 0 var(--ink); overflow: hidden; text-align: center;
}
.buddy .pic { background: var(--c); border-bottom: var(--border) solid var(--ink); aspect-ratio: 1; }
.buddy .pic img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; }
.buddy .meta { padding: 8px 6px 12px; }
.buddy .name { font-weight: 800; font-size: 15px; line-height: 1.3; }
.buddy .role { font-size: 11px; color: var(--sub); line-height: 1.4; margin-top: 2px; }
@media (max-width: 860px) { .buddies { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .buddies { grid-template-columns: repeat(2, 1fr); } }

/* ---------- points ---------- */
.points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.point { background: var(--white); border: var(--border) solid var(--ink); border-radius: var(--radius); padding: 22px 22px 20px; box-shadow: 4px 4px 0 var(--ink); }
.point .ico { width: 46px; height: 46px; border-radius: 12px; border: var(--border) solid var(--ink); display: grid; place-items: center; background: var(--c); margin-bottom: 10px; }
.point h4 { margin: 0 0 6px; font-size: 18px; font-weight: 800; }
.point p { margin: 0; font-size: 14px; }
@media (max-width: 860px) { .points { grid-template-columns: 1fr; } }

/* ---------- faq ---------- */
.faq { max-width: 780px; margin-inline: auto; }
.faq details { background: var(--white); border: var(--border) solid var(--ink); border-radius: 14px; margin-bottom: 12px; box-shadow: 3px 3px 0 var(--ink); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 52px 16px 20px; font-weight: 800; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; font-family: var(--dot); color: var(--pink); margin-right: 10px; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 12px; font-family: var(--dot); font-size: 22px; }
.faq details[open] summary::after { content: "−"; }
.faq .a { padding: 0 20px 18px 44px; font-size: 15px; }

/* ---------- final cta ---------- */
.final { text-align: center; background: linear-gradient(160deg, #7FD8FF, #B98CFF 55%, #FF7AB6); padding: 96px 0; border-bottom: var(--border) solid var(--ink); }
.final h2 { font-family: var(--dot); font-weight: 400; font-size: clamp(28px, 4.4vw, 44px); margin: 0 0 10px; line-height: 1.4; }
.final p { margin: 0 0 28px; font-weight: 800; }
.final .icon-big { flex: none; width: 112px; height: 112px; aspect-ratio: 1; object-fit: cover; border-radius: 26px; border: 4px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); margin: 0 auto 22px; }

/* ---------- footer ---------- */
.site-footer { background: #0D1226; color: #C9CEE0; padding: 48px 0 36px; font-size: 13px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; justify-content: space-between; }
.site-footer img { flex: none; width: 180px; height: auto; aspect-ratio: 900 / 368; object-fit: contain; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer nav a { text-decoration: none; color: var(--white); font-weight: 800; }
.site-footer nav a:hover { text-decoration: underline; }
.site-footer .copy { width: 100%; margin-top: 18px; opacity: .7; }

/* ---------- legal / support pages ---------- */
.doc { background: var(--white); border: var(--border) solid var(--ink); border-radius: 22px; box-shadow: 6px 6px 0 var(--ink); padding: clamp(24px, 5vw, 56px); margin: 48px auto 72px; max-width: 860px; }
.doc h1 { font-family: var(--dot); font-weight: 400; font-size: clamp(28px, 4vw, 38px); margin: 0 0 6px; line-height: 1.3; }
.doc .updated { color: var(--sub); font-size: 13px; margin: 0 0 28px; }
.doc h2 { font-size: 19px; font-weight: 800; margin: 34px 0 8px; padding-left: 14px; border-left: 6px solid var(--cyan); line-height: 1.5; }
.doc p, .doc li { font-size: 15px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 8px 0 4px; }
.doc th, .doc td { border: 2px solid var(--ink); padding: 8px 10px; vertical-align: top; text-align: left; }
.doc th { background: var(--bg); white-space: nowrap; }
.doc .todo { background: #FFF6B8; padding: 0 4px; border-radius: 4px; }
.doc .contact { background: var(--bg); border: var(--border) solid var(--ink); border-radius: 14px; padding: 18px 20px; }
@media (max-width: 600px) { .doc th { white-space: normal; } }

/* 日本語の見出しを文節で折り返す（対応ブラウザのみ） */
h1, h2, h3, h4, .tagline, .story p, .sec-head p, .final p { word-break: auto-phrase; text-wrap: balance; }
