/* Detoite（デトイテ）サイト共通スタイル */
:root {
  --navy: #14224f;
  --ink: #1b2a5a;
  --muted: #4b5a82;
  --line: rgba(98, 120, 255, .2);
  --blue: #1560e8;
  --cyan: #19c6ff;
  --violet: #7c3aed;
  --violet-l: #a15cff;
  --pink: #ff8fc8;
  --bg: #f6f8ff;
  --card: #ffffff;
  --grad: linear-gradient(100deg, #19c6ff 0%, #1d7bff 34%, #a15cff 68%, #ff8fc8 100%);
  --grad-btn: linear-gradient(100deg, #1560e8, #7c3aed);
  --radius: 22px;
  --shadow: 0 14px 44px -16px rgba(60, 80, 200, .32);
  --f-body: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  --f-disp: "Sora", "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; color-scheme: light; scroll-padding-top: 84px; }
body { margin: 0; font-family: var(--f-body); font-size: 1rem; line-height: 1.85; color: var(--ink); background: var(--bg); overflow-x: hidden; }
body::before {
  content: ""; position: fixed; inset: -20vmax; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40vmax 40vmax at 12% 8%, rgba(25, 198, 255, .22), transparent 60%),
    radial-gradient(45vmax 45vmax at 90% 20%, rgba(161, 92, 255, .18), transparent 60%),
    radial-gradient(40vmax 40vmax at 60% 95%, rgba(255, 143, 200, .18), transparent 60%);
  animation: drift 28s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translate3d(-3vmax, 2vmax, 0) scale(1.06); } }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.35; margin: 0; color: var(--navy); }
p { margin: 0 0 1em; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--violet-l); outline-offset: 3px; border-radius: 6px; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.todo { background: #fff1b8; color: #7a4b00; padding: 0 .35em; border-radius: 5px; font-weight: 700; }

/* ── header ── */
.top { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .8); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.brand { display: block; line-height: 0; }
.brand img { height: 44px; width: auto; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.nav a { padding: 8px 12px; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: .92rem; white-space: nowrap; }
.nav a:hover { background: rgba(124, 58, 237, .09); }
.nav a.btn { color: #fff; margin-left: 8px; padding: 9px 18px; }
.nav a.btn:hover { background: var(--grad-btn); }
.menu-btn { display: none; margin-left: auto; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font: inherit; font-weight: 700; color: var(--ink); cursor: pointer; }
@media (max-width: 980px) {
  .menu-btn { display: inline-flex; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; background: #fff; padding: 10px 20px 18px; border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px -20px rgba(40, 60, 160, .4); }
  .nav.open { display: flex; }
  .nav a { padding: 13px 8px; border-radius: 10px; }
  .nav a.btn { margin: 8px 0 0; text-align: center; padding: 13px 18px; }
}

/* ── buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 28px; border: 0; border-radius: 999px; background: var(--grad-btn); color: #fff; font: inherit; font-weight: 800; font-size: 1rem; text-decoration: none; cursor: pointer; box-shadow: 0 10px 26px -10px rgba(90, 60, 230, .7); transition: transform .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -10px rgba(90, 60, 230, .75); }
.btn.ghost { background: #fff; color: var(--navy); border: 1.5px solid rgba(98, 120, 255, .45); box-shadow: none; }
.btn.ghost:hover { background: #f1f3ff; }
.btn.sm { min-height: 40px; padding: 0 16px; font-size: .88rem; box-shadow: none; }
.copy { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1.5px solid rgba(98, 120, 255, .45); background: #fff; color: var(--navy); font: inherit; font-weight: 700; font-size: .88rem; cursor: pointer; }
.copy:hover { background: #f1f3ff; }

/* ── sections ── */
section { position: relative; padding: clamp(64px, 9vw, 112px) 0; }
.sec-head { max-width: 760px; margin: 0 auto clamp(32px, 5vw, 56px); text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px; border-radius: 999px; background: rgba(124, 58, 237, .09); color: var(--violet); font-family: var(--f-disp); font-weight: 600; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
h2 { font-size: clamp(1.65rem, 3.6vw, 2.5rem); font-weight: 900; letter-spacing: .01em; }
.sec-head p { color: var(--muted); margin-top: 14px; }
.alt { background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(226, 233, 255, .55) 30%, rgba(226, 233, 255, .55) 70%, rgba(255, 255, 255, 0)); }

/* ── hero ── */
.hero { padding-top: clamp(40px, 6vw, 84px); padding-bottom: clamp(56px, 8vw, 100px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero h1 { font-family: var(--f-disp); font-weight: 800; font-size: clamp(2.5rem, 6.6vw, 4.6rem); line-height: 1.18; letter-spacing: -.01em; }
.hero h1 .jp { display: block; font-family: var(--f-body); font-weight: 900; }
.lead { font-size: clamp(1.02rem, 1.7vw, 1.2rem); color: var(--muted); margin: 22px 0 28px; max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; }
.ticks { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); font-weight: 700; font-size: .92rem; }
.ticks li { display: flex; align-items: center; gap: 8px; }
.ticks svg { width: 18px; height: 18px; stroke: var(--violet); fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.stage { position: relative; display: grid; place-items: center; min-height: 480px; }
.orb { position: absolute; width: min(430px, 92%); aspect-ratio: 1; border-radius: 50%; background: conic-gradient(from 200deg, #19c6ff, #1d7bff, #a15cff, #ff8fc8, #19c6ff); filter: blur(34px); opacity: .5; animation: spin 22s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.phone { position: relative; width: min(300px, 78vw); border-radius: 40px; padding: 9px; background: linear-gradient(160deg, #1f3a8a, #5b34d6 60%, #c05bd9); box-shadow: 0 40px 70px -26px rgba(40, 40, 150, .55); }
.phone .in { background: #fff; border-radius: 32px; overflow: hidden; }
.phone .bar { display: flex; align-items: center; gap: 10px; padding: 16px 18px 12px; }
.phone .dot { width: 10px; height: 10px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); animation: ping 1.8s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 9px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }
.phone .who { font-weight: 800; font-size: .92rem; color: var(--navy); line-height: 1.3; }
.phone .who small { display: block; font-weight: 500; color: var(--muted); font-size: .72rem; }
.wave { display: flex; align-items: center; justify-content: center; gap: 4px; height: 56px; padding: 0 18px; }
.wave i { display: block; width: 5px; height: 100%; border-radius: 3px; background: var(--grad); transform: scaleY(.18); animation: bar 1.3s ease-in-out infinite; animation-delay: calc(var(--i) * -.11s); }
.phone.talking .wave i { animation-duration: .65s; }
@keyframes bar { 0%, 100% { transform: scaleY(.16); } 50% { transform: scaleY(1); } }
.chat { display: grid; gap: 10px; padding: 8px 14px 18px; min-height: 280px; align-content: start; }
.bub { max-width: 86%; padding: 9px 13px; border-radius: 16px; font-size: .84rem; line-height: 1.6; transition: opacity .45s, transform .45s; }
.bub small { display: block; font-size: .66rem; font-weight: 700; opacity: .7; margin-bottom: 1px; }
.bub.me { justify-self: start; background: #eef1fb; color: var(--navy); border-bottom-left-radius: 4px; }
.bub.ai { justify-self: end; background: var(--grad-btn); color: #fff; border-bottom-right-radius: 4px; }
.bub.hide { opacity: 0; transform: translateY(10px) scale(.96); }
.note { text-align: center; font-size: .7rem; color: var(--muted); padding: 0 14px 12px; margin: 0; }
.chip { position: absolute; padding: 8px 16px; border-radius: 999px; background: rgba(255, 255, 255, .92); border: 1px solid var(--line); box-shadow: var(--shadow); font-weight: 800; font-size: .84rem; color: var(--navy); animation: float 6s ease-in-out infinite; white-space: nowrap; }
.chip { z-index: 3; }
.chip.c1 { left: 0; top: 14%; } .chip.c2 { right: 0; top: 34%; animation-delay: -2s; } .chip.c3 { left: -3%; bottom: 12%; animation-delay: -4s; }
@keyframes float { 50% { transform: translateY(-12px); } }
.spark { position: absolute; width: 26px; height: 26px; fill: var(--violet-l); animation: tw 3.2s ease-in-out infinite; }
.spark.s1 { right: 8%; top: 4%; } .spark.s2 { left: 12%; bottom: 2%; width: 18px; height: 18px; fill: var(--cyan); animation-delay: -1.4s; }
@keyframes tw { 50% { transform: scale(.55) rotate(25deg); opacity: .5; } }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .stage { min-height: 440px; }
  .chip.c1 { left: 0; } .chip.c2 { right: 0; }
}
@media (max-width: 640px) { .chip { display: none; } }

/* ── cards ── */
.grid { display: grid; gap: 20px; }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 900px) { .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .g3, .g2 { grid-template-columns: minmax(0, 1fr); } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; box-shadow: 0 6px 24px -18px rgba(60, 80, 200, .45); transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card h3 { font-size: 1.12rem; font-weight: 900; margin: 16px 0 8px; }
.card p { color: var(--muted); font-size: .95rem; margin: 0; }
.ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--grad); box-shadow: 0 10px 20px -10px rgba(110, 70, 240, .7); }
.ico svg { width: 26px; height: 26px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ── name meaning ── */
.quote { max-width: 780px; margin: 0 auto clamp(28px, 4vw, 44px); text-align: center; font-size: clamp(1.05rem, 2vw, 1.3rem); font-weight: 700; color: var(--navy); }
.acro { list-style: none; margin: 0 0 32px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.acro li { display: flex; align-items: center; gap: 16px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 12px 18px 12px 12px; }
.acro .l { flex: none; width: 52px; height: 52px; border-radius: 14px; background: var(--grad); color: #fff; display: grid; place-items: center; font-family: var(--f-disp); font-weight: 800; font-size: 1.6rem; }
.acro b { display: block; font-family: var(--f-disp); font-weight: 600; font-size: 1rem; color: var(--navy); }
.acro span { color: var(--muted); font-size: .9rem; line-height: 1.5; }
.official { max-width: 820px; margin: 0 auto; padding: 22px 26px; border-radius: var(--radius); background: rgba(255, 255, 255, .7); border: 1px dashed rgba(124, 58, 237, .4); color: var(--muted); font-size: .95rem; }
@media (min-width: 761px) { .acro li:last-child { grid-column: 1 / -1; justify-self: center; width: calc(50% - 9px); } }
@media (max-width: 760px) { .acro { grid-template-columns: minmax(0, 1fr); } }

/* ── flow ── */
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; counter-reset: s; }
.flow li { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 22px 24px; counter-increment: s; }
.flow li::before { content: counter(s); position: absolute; top: -18px; left: 22px; width: 38px; height: 38px; border-radius: 50%; background: var(--grad-btn); color: #fff; font-family: var(--f-disp); font-weight: 800; display: grid; place-items: center; box-shadow: 0 8px 16px -8px rgba(90, 60, 230, .8); }
.flow h3 { font-size: 1.02rem; font-weight: 900; margin-bottom: 6px; }
.flow p { margin: 0; color: var(--muted); font-size: .92rem; }
@media (max-width: 900px) { .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 30px; } }
@media (max-width: 520px) { .flow { grid-template-columns: minmax(0, 1fr); } }

/* ── cases ── */
.case { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(20px, 4vw, 48px); align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow); margin-bottom: 20px; }
.case .badge { display: inline-block; background: linear-gradient(100deg, #12b886, #19c6ff); color: #fff; font-weight: 800; font-size: .78rem; padding: 3px 12px; border-radius: 999px; margin-bottom: 10px; }
.case h3 { font-size: clamp(1.25rem, 2.4vw, 1.7rem); font-weight: 900; }
.case p { color: var(--muted); }
.points { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 8px; }
.points li { position: relative; padding-left: 26px; color: var(--ink); font-size: .95rem; }
.points li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 10px; height: 10px; border-radius: 50%; background: var(--grad); }
.demo { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; background: #f1f3ff; border-radius: 18px; padding: 16px 18px; margin-bottom: 18px; }
.demo .small { flex: 1 1 100%; font-size: .85rem; color: var(--muted); }
.demo b { font-family: var(--f-disp); font-size: 1.35rem; letter-spacing: .04em; color: var(--navy); }
.demo a.tel { text-decoration: none; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 14px 0 0; list-style: none; }
.tags li { padding: 5px 14px; border-radius: 999px; background: #f1f3ff; color: var(--navy); font-weight: 700; font-size: .88rem; }
@media (max-width: 860px) { .case { grid-template-columns: minmax(0, 1fr); } .case .logo-pet { max-width: 360px; } }

/* ── price ── */
.price { position: relative; overflow: hidden; border-radius: 30px; padding: clamp(32px, 6vw, 60px); color: #fff; background: linear-gradient(135deg, #14224f, #2b2c94 58%, #6a3bd6); box-shadow: 0 30px 60px -28px rgba(40, 40, 150, .7); text-align: center; }
.price::before { content: ""; position: absolute; width: 420px; height: 420px; right: -120px; top: -160px; border-radius: 50%; background: conic-gradient(from 90deg, rgba(25, 198, 255, .55), rgba(161, 92, 255, .5), rgba(255, 143, 200, .5), rgba(25, 198, 255, .55)); filter: blur(60px); opacity: .55; }
.price > * { position: relative; }
.price .k { font-weight: 700; opacity: .9; letter-spacing: .08em; }
.price .amt { font-family: var(--f-disp); font-weight: 800; font-size: clamp(3.2rem, 10vw, 5.6rem); line-height: 1.1; margin: 8px 0 4px; }
.price .amt small { font-size: .3em; font-weight: 700; margin-left: .2em; }
.price .sub { font-weight: 700; font-size: 1.05rem; }
.price .fine { max-width: 36em; margin: 18px auto 24px; font-size: .9rem; opacity: .86; }
.price .btn { background: #fff; color: var(--navy); box-shadow: none; }

/* ── faq ── */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 0 22px; }
.faq summary { cursor: pointer; padding: 18px 28px 18px 0; font-weight: 800; color: var(--navy); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-family: var(--f-disp); font-size: 1.5rem; color: var(--violet); transition: transform .25s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 18px; margin: 0; font-size: .95rem; }

/* ── contact ── */
.contact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 880px; margin: 0 auto; }
.contact .card { text-align: center; padding: 34px 24px; }
.contact .card:hover { transform: none; }
.contact .ico { margin: 0 auto; }
.contact .v { display: block; font-family: var(--f-disp); font-weight: 600; font-size: clamp(1.1rem, 2.6vw, 1.45rem); color: var(--navy); text-decoration: none; margin: 10px 0 14px; word-break: break-all; }
.company { text-align: center; color: var(--muted); font-size: .92rem; margin-top: 28px; }
@media (max-width: 620px) { .contact { grid-template-columns: minmax(0, 1fr); } }

/* ── footer ── */
.foot { background: #0f1b45; color: #cdd5f3; padding: 44px 0 36px; }
.foot .wrap { display: grid; gap: 18px; }
.foot a { color: #fff; }
.foot .links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot p { margin: 0; font-size: .85rem; line-height: 1.7; }

/* ── legal pages ── */
.legal { padding: clamp(40px, 7vw, 80px) 0; }
.legal .paper { max-width: 860px; margin: 0 auto; background: var(--card); border: 1px solid var(--line); border-radius: 26px; padding: clamp(24px, 5vw, 52px); box-shadow: var(--shadow); }
.legal h1 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); font-weight: 900; margin-bottom: 18px; }
.legal h2 { font-size: 1.15rem; margin: 34px 0 10px; padding-left: 14px; border-left: 5px solid var(--violet-l); }
.legal ul { padding-left: 1.3em; }
.legal li { margin-bottom: .4em; }
.legal table { width: 100%; border-collapse: collapse; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 14px 12px; border-bottom: 1px solid var(--line); font-size: .95rem; }
.legal th { width: 12.5em; color: var(--navy); font-weight: 800; background: #f7f8ff; }
@media (max-width: 640px) { .legal th, .legal td { display: block; width: 100%; } .legal th { border-bottom: 0; padding-bottom: 4px; } .legal td { padding-top: 4px; } }
.legal .meta { color: var(--muted); font-size: .88rem; margin-top: 30px; }

/* ── reveal ── */
.js .rv { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.js .rv.in { opacity: 1; transform: none; }
.rv.d1 { transition-delay: .08s; } .rv.d2 { transition-delay: .16s; } .rv.d3 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .rv { opacity: 1; transform: none; }
  .wave i { transform: scaleY(.6); }
}
