/* =========================================================
   PRiMUS — site styles
   ========================================================= */
:root {
  --accent: #FCC900;      /* ブランドの黄色（暗い背景で使う） */
  --purple: #400C5F;      /* ブランドの紫（明るい背景で使う） */
  --ink: #1D1D1F;
  --gray: #6E6E73;
  --gray-light: #86868B;
  --gray-dark-bg: #A1A1A6;
  --line: #D2D2D7;
  --bg-soft: #F5F5F7;
  --black: #000000;
  --panel: #1D1D1F;
  --panel-2: #2C2C2E;
  --radius-lg: 28px;
  --container: 1120px;
  --section-y: clamp(72px, 11vw, 152px);
  --font: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: #FFFFFF;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--purple); }
a:hover { text-decoration: underline; }
h1, h2, h3, p, dd, li, span { word-break: auto-phrase; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
.ph { display: inline-block; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { max-width: var(--container); margin: 0 auto; }
.section { padding: var(--section-y) 24px; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--black); color: #F5F5F7; }

/* ---------- section heads ---------- */
.head { text-align: center; max-width: 820px; margin: 0 auto clamp(48px, 6vw, 72px); }
.eyebrow { margin: 0 0 12px; font-size: 19px; font-weight: 600; color: var(--purple); }
.section--dark .eyebrow { color: var(--accent); }
.h2 { margin: 0; font-size: clamp(28px, 7vw, 60px); line-height: 1.16; font-weight: 700; letter-spacing: .01em; }
.lede { margin: 20px auto 0; max-width: 30em; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.6; color: var(--gray); }
.section--dark .lede { color: var(--gray-dark-bg); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  max-width: var(--container); margin: 0 auto; padding: 0 24px; min-height: 60px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 24px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; padding: 10px 0; }
.brand:hover { text-decoration: none; }
.brand__mark { height: 38px; width: auto; }
.brand__type { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.brand__tagline { height: 10px; width: auto; }
.brand__word { height: 19px; width: auto; }
.nav__links { display: flex; flex-wrap: wrap; align-items: center; gap: 0 28px; font-size: 13px; }
.nav__links a { color: var(--ink); text-decoration: none; padding: 14px 0; }
.nav__toggle { display: none; }
.nav__menu[hidden] { display: none; }
.nav__links .nav__cta { color: #FFFFFF; background: var(--purple); padding: 7px 16px; border-radius: 999px; font-weight: 500; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 30px; border-radius: 999px;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: background-color .3s, border-color .3s, transform .3s;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--accent { background: var(--accent); color: #000000; }
.btn--ghost { background: transparent; color: #F5F5F7; border-color: #6E6E73; }
.btn--ghost:hover { background: var(--panel); border-color: #F5F5F7; }
.btn--dark { background: var(--ink); color: #FFFFFF; }
.btn--purple { background: var(--purple); color: #FFFFFF; border: none; }
.link-more { text-decoration: none; padding: 13px 0; }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 32px; }
.hero .cta-row { gap: 12px; margin-top: 40px; }

/* ---------- hero ---------- */
.hero { background: var(--black); color: #F5F5F7; padding: clamp(88px, 10vw, 128px) 24px clamp(64px, 7vw, 96px); overflow: hidden; }
.hero__head { text-align: center; max-width: 980px; margin: 0 auto; }
.hero__title { margin: 0; font-size: clamp(30px, 7.6vw, 80px); line-height: 1.12; font-weight: 700; letter-spacing: .01em; }
.hero__lede { margin: 24px auto 0; max-width: 30em; font-size: clamp(17px, 1.5vw, 21px); color: var(--gray-dark-bg); }
.hero__map { max-width: 760px; margin: clamp(56px, 7vw, 88px) auto 0; }
.hero__map svg { width: 100%; height: auto; display: block; }
.hero__area { margin: 24px 0 0; text-align: center; font-size: 14px; color: var(--gray-light); }

/* ---------- photo ---------- */
.photo-section { background: #FFFFFF; padding: var(--section-y) 24px 0; }
.photo-frame { position: relative; overflow: hidden; border-radius: var(--radius-lg); height: clamp(300px, 46vw, 620px); background: #000; }
.photo-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }

/* ---------- manifesto ---------- */
.manifesto { max-width: 920px; margin: 0 auto; font-size: clamp(26px, 3.2vw, 42px); line-height: 1.45; font-weight: 700; color: var(--ink); }
.manifesto__sub { color: var(--gray-light); }
.hl {
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat; background-position: 0 92%; background-size: 100% .26em;
}

/* ---------- tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 760px) { .tiles { grid-template-columns: 1fr; } }
.tile { flex: 1 1 320px; min-width: 0; background: #FFFFFF; border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; }
.tile--dark { background: var(--black); color: #F5F5F7; }
.tile__body { padding: 40px 40px 32px; }
.tile__label { margin: 0 0 8px; font-size: 15px; font-weight: 600; color: var(--purple); }
.tile--dark .tile__label { color: var(--accent); }
.tile__title { margin: 0; font-size: clamp(24px, 2.2vw, 30px); line-height: 1.3; font-weight: 700; }
.tile__text { margin: 12px 0 0; color: var(--gray); }
.tile--dark .tile__text { color: var(--gray-dark-bg); }
.tile img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-top: auto; }

/* ---------- OS ---------- */
.seg { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 4px; padding: 4px; background: var(--panel); border-radius: 999px; margin-top: 40px; }
.seg button {
  font: inherit; font-size: 15px; font-weight: 500; padding: 10px 24px; border-radius: 999px; border: none; cursor: pointer; min-height: 44px;
  background: transparent; color: var(--gray-dark-bg); transition: background-color .25s, color .25s;
}
.seg button[aria-selected="true"] { background: #F5F5F7; color: #000000; }
.os-panel { background: var(--panel); border-radius: var(--radius-lg); padding: clamp(32px, 4.4vw, 56px); display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.os-panel__text { flex: 1 1 360px; min-width: 0; }
.os-panel__no { margin: 0 0 8px; font-size: 15px; font-weight: 600; color: var(--gray-light); }
.os-panel__title { margin: 0 0 16px; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.3; font-weight: 700; color: #F5F5F7; }
.os-panel__body { margin: 0; color: var(--gray-dark-bg); }
.modules { flex: 1 1 420px; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.module { background: var(--panel-2); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.module__icon { width: 44px; height: 44px; border-radius: 13px; background: rgba(252,201,0,.14); color: var(--accent); display: flex; align-items: center; justify-content: center; margin-bottom: 6px; }
.module__title { font-size: 17px; font-weight: 700; line-height: 1.4; color: #F5F5F7; }
.module__desc { font-size: 14px; line-height: 1.6; color: var(--gray-dark-bg); }

/* ---------- step lists (roadmap / driver) ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 40px 24px; }
.step { flex: 1 1 300px; min-width: 0; border-top: 2px solid #3A3A3C; padding-top: 24px; }
.steps--light .step { flex-basis: 180px; border-top-color: var(--ink); }
.step--active { border-top-color: var(--accent) !important; }
.steps--light .step--active { border-top-color: var(--purple) !important; }
.step__label { margin: 0 0 8px; font-size: 15px; font-weight: 600; color: var(--gray-light); }
.steps--light .step__label { color: var(--gray); }
.step--active .step__label { color: var(--accent); }
.steps--light .step--active .step__label { color: var(--purple); }
.step__title { margin: 0 0 10px; font-size: clamp(21px, 1.8vw, 24px); font-weight: 700; }
.step__text { margin: 0; color: var(--gray-dark-bg); }
.steps--light .step__text { font-size: 15px; color: var(--gray); }
.roadmap-head { margin-top: var(--section-y); }

.wide-photo { width: 100%; aspect-ratio: 21 / 9; min-height: 240px; object-fit: cover; border-radius: var(--radius-lg); margin-bottom: clamp(48px, 6vw, 72px); }

/* ---------- connect cards ---------- */
.cards { display: flex; flex-wrap: wrap; gap: 20px; }
.card {
  flex: 1 1 440px; min-width: 0; position: relative; overflow: hidden; isolation: isolate;
  text-decoration: none; border-radius: var(--radius-lg); padding: 40px; min-height: 420px;
  display: flex; flex-direction: column; justify-content: flex-end; background: #FFFFFF; color: var(--ink);
}
.card:hover { text-decoration: none; }
.card--dark { background: var(--black); color: #F5F5F7; }
.card__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .45; z-index: -1; }
.card__label { margin-bottom: 8px; font-size: 15px; font-weight: 600; color: var(--purple); }
.card--dark .card__label { color: var(--accent); }
.card__title { font-size: clamp(24px, 2.6vw, 34px); font-weight: 700; line-height: 1.3; }
.card__text { margin-top: 12px; max-width: 26em; color: var(--gray); }
.card--dark .card__text { color: var(--line); }
.card__more { margin-top: 20px; color: var(--purple); }
.card--dark .card__more { color: var(--accent); }

/* ---------- company ---------- */
.company { display: flex; flex-wrap: wrap; gap: 48px; align-items: stretch; }
.company__photo { flex: 1 1 380px; min-width: 0; width: 100%; min-height: 360px; object-fit: cover; border-radius: var(--radius-lg); }
.company__list { flex: 1 1 480px; min-width: 0; margin: 0; border-top: 1px solid var(--line); }
.company__row { display: flex; flex-wrap: wrap; gap: 4px 24px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.company__row dt { flex: 0 0 120px; font-size: 15px; font-weight: 600; color: var(--gray); }
.company__row dd { margin: 0; flex: 1 1 260px; }
.company__row ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.company__links { display: flex; flex-direction: column; gap: 4px; }
.company__links a { text-decoration: none; }

/* ---------- contact form ---------- */
.contact-mail { margin: 16px 0 0; }
.contact-mail a { text-decoration: none; }
.form { max-width: 760px; margin: 0 auto; background: #FFFFFF; border-radius: var(--radius-lg); padding: clamp(32px, 4.4vw, 56px); display: flex; flex-direction: column; gap: 24px; }
.form fieldset { border: none; margin: 0; padding: 0; }
.form legend { font-size: 15px; font-weight: 600; margin-bottom: 12px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: inherit; font-size: 15px; padding: 10px 18px; border-radius: 999px; cursor: pointer; min-height: 44px; background: #FFFFFF; color: var(--ink); border: 1px solid var(--line); }
.chip[aria-pressed="true"] { background: var(--ink); color: #FFFFFF; border-color: var(--ink); }
.choices { display: flex; flex-wrap: wrap; gap: 12px; }
.choice { flex: 1 1 240px; min-width: 0; text-align: left; font: inherit; padding: 16px 18px; border-radius: 16px; cursor: pointer; background: #FFFFFF; border: 2px solid var(--line); }
.choice[aria-pressed="true"] { background: #F7F2FA; border-color: var(--purple); }
.choice__title { display: block; font-size: 17px; font-weight: 700; color: var(--ink); }
.choice__sub { display: block; margin-top: 4px; font-size: 14px; color: var(--gray); }
.form__intro { margin: -4px 0 0; padding: 16px 20px; border-radius: 14px; background: var(--bg-soft); font-size: 15px; color: #424245; }
.fields { display: flex; flex-wrap: wrap; gap: 22px 24px; }
.field { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.field--full { flex-basis: 100%; }
.field label { font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.req { font-size: 11px; font-weight: 600; color: #FFFFFF; background: var(--purple); padding: 2px 8px; border-radius: 999px; }
.field input, .field select, .field textarea {
  font: inherit; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: #FFFFFF; color: var(--ink); min-width: 0; width: 100%;
}
.field select { min-height: 52px; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--purple); outline-offset: 1px; border-color: var(--purple); }
.form__submit { align-self: center; padding: 15px 48px; }
.form__note { margin: 0; font-size: 13px; color: var(--gray); text-align: center; }
.form__status { margin: 0; padding: 16px 20px; border-radius: 14px; font-size: 15px; text-align: center; }
.form__status--ok { background: #F7F2FA; color: var(--purple); }
.form__status--error { background: #FFF1F0; color: #A1160A; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- footer ---------- */
.footer { background: var(--bg-soft); color: var(--gray); font-size: 12px; line-height: 1.7; padding: 0 24px; }
.footer__logo { max-width: var(--container); margin: 0 auto; padding: 16px 0 32px; }
.footer__logo img { height: 64px; width: auto; }
.footer__bottom { max-width: var(--container); margin: 0 auto; padding: 20px 0 32px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.footer__bottom p { margin: 0; }
.footer__links { display: flex; flex-wrap: wrap; gap: 0 20px; }
.footer__links a { color: #424245; text-decoration: none; }

/* ---------- simple pages (privacy / 404) ---------- */
.page { max-width: 760px; margin: 0 auto; padding: clamp(64px, 9vw, 120px) 24px; }
.page h1 { font-size: clamp(30px, 5vw, 44px); line-height: 1.2; margin: 0 0 32px; }
.page h2 { font-size: 21px; margin: 40px 0 12px; }
.page p, .page li { color: #424245; }

/* ---------- motion ---------- */
@keyframes flow { to { stroke-dashoffset: -60; } }
.flow { stroke-dasharray: 6 14; animation: flow 1.6s linear infinite; }
@keyframes pop { 0% { transform: scale(0); opacity: 0; } 4% { transform: scale(1.35); opacity: 1; } 8% { transform: scale(1); } 78% { opacity: 1; transform: scale(1); } 88%, 100% { opacity: 0; transform: scale(1); } }
.stop { transform-box: fill-box; transform-origin: center; animation: pop 12s cubic-bezier(.2,.8,.2,1) infinite both; }
/* ---------- platform / crew ---------- */
.hero__pill { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 28px; padding: 7px 16px 7px 8px; border: 1px solid #3A3A3C; border-radius: 999px; color: #F5F5F7; font-size: 14px; text-decoration: none; background: rgba(255,255,255,.04); }
.hero__pill span { padding: 3px 9px; border-radius: 999px; background: var(--accent); color: #000; font-size: 11px; font-weight: 700; letter-spacing: .04em; }
.hero__pill i { font-style: normal; }
.hero__pill:hover { text-decoration: none; border-color: #6E6E73; }
.pf-map { display: grid; grid-template-columns: 1fr minmax(180px, 240px) 1fr; grid-template-areas: "r1 core r2" "r3 core r4"; gap: 16px; max-width: 980px; margin: 0 auto; align-items: stretch; }
.pf-role { background: #FFFFFF; border-radius: 24px; padding: 28px; }
.pf-role--1 { grid-area: r1; } .pf-role--2 { grid-area: r2; } .pf-role--3 { grid-area: r3; } .pf-role--4 { grid-area: r4; }
.pf-role__ic { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 14px; background: #F3EEF7; color: var(--purple); }
.pf-role__ic svg { width: 24px; height: 24px; }
.pf-role__name { margin: 16px 0 6px; font-size: 19px; font-weight: 700; }
.pf-role__text { margin: 0; color: var(--gray); line-height: 1.6; }
.pf-core { grid-area: core; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; border-radius: 28px; background: #0B0B0C; border: 2px solid var(--accent); color: #F5F5F7; padding: 28px; }
.pf-core img { width: 84px; height: auto; background: #FFF; border-radius: 50%; padding: 10px; box-sizing: content-box; }
.pf-core p { margin: 0; font-weight: 700; letter-spacing: .06em; }
.crew-head { margin-top: clamp(80px, 10vw, 128px); }
.crew { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 980px; margin: 0 auto; }
.crew__card { background: #FFFFFF; border-radius: var(--radius-lg); padding: clamp(28px, 3.4vw, 40px); display: flex; flex-direction: column; }
.crew__no { margin: 0 0 14px; font-size: 13px; font-weight: 700; color: var(--purple); letter-spacing: .08em; }
.crew__title { margin: 0; font-size: clamp(21px, 2vw, 26px); line-height: 1.35; }
.crew__who { margin: 14px 0 0; font-weight: 600; line-height: 1.6; }
.crew__do { margin: 8px 0 24px; color: var(--gray); line-height: 1.7; }
.crew__more { margin-top: auto; text-decoration: none; font-weight: 500; }
@media (max-width: 760px) {
  .pf-map { grid-template-columns: 1fr 1fr; grid-template-areas: "core core" "r1 r2" "r3 r4"; gap: 12px; }
  .pf-role { padding: 20px; border-radius: 20px; }
  .pf-role__name { font-size: 17px; }
  .pf-role__text { font-size: 14px; }
  .pf-core { flex-direction: row; padding: 18px; }
  .pf-core img { width: 44px; padding: 6px; }
  .crew { grid-template-columns: 1fr; }
  .hero__pill { font-size: 13px; }
  .hero__pill-l { display: none; }
}

/* ---------- open promise ---------- */
.open { margin-top: clamp(80px, 10vw, 128px); padding: clamp(56px, 7vw, 88px) clamp(20px, 4vw, 56px); background: #0B0B0C; border-radius: 36px; color: #F5F5F7; }
.open .eyebrow { color: var(--accent); }
.open .lede { color: var(--gray-dark-bg); max-width: 34em; }
.promises { list-style: none; margin: 0 auto; padding: 0; max-width: 980px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.promise { border: 1px solid #2C2C2E; border-radius: 24px; padding: clamp(24px, 3vw, 32px); background: #141416; }
.promise__top { margin: 0 0 16px; display: flex; justify-content: space-between; align-items: center; }
.promise__no { font-size: 13px; font-weight: 700; letter-spacing: .08em; color: var(--accent); }
.promise__tag { font-size: 12px; padding: 3px 10px; border-radius: 999px; border: 1px solid #3A3A3C; color: var(--gray-dark-bg); }
.promise__title { margin: 0; font-size: clamp(20px, 2vw, 24px); }
.promise__text { margin: 10px 0 0; color: var(--gray-dark-bg); line-height: 1.7; }
.company__row--mission dd { font-weight: 600; }
.sp-only { display: none; }
@media (max-width: 760px) {
  .promises { grid-template-columns: 1fr; }
  .open { border-radius: 28px; }
  .sp-only { display: inline; }
}

/* ---------- loader ---------- */
.loader { display: none; }
html.has-loader { overflow: hidden; }
html.has-loader .loader { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; background: #000; }
html.loader-out .loader { animation: loaderOut .6s cubic-bezier(.7,0,.3,1) forwards; }
.loader__inner { display: flex; flex-direction: column; align-items: center; }
.loader__badge { position: relative; width: 132px; height: 132px; }
.loader__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.loader__ring circle { fill: none; stroke-width: 3; }
.loader__track { stroke: #1C1C1E; }
.loader__arc { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: loaderArc 1.25s cubic-bezier(.6,0,.2,1) .1s forwards; }
.loader__disc { position: absolute; inset: 14px; border-radius: 50%; background: #FFFFFF; display: flex; align-items: center; justify-content: center; transform: scale(.4); opacity: 0; animation: loaderPop .7s cubic-bezier(.2,.9,.25,1.25) .05s forwards; }
.loader__mark { width: 74%; height: auto; animation: loaderSpin 1.3s cubic-bezier(.2,.7,.1,1) both; }
.loader__word { margin-top: 26px; height: 24px; width: auto; opacity: 0; transform: translateY(10px); animation: loaderUp .6s ease .55s forwards; }
.loader__tag { margin: 10px 0 0; font-size: 12px; letter-spacing: .4em; color: #A1A1A6; opacity: 0; animation: loaderUp .6s ease .75s forwards; }
@keyframes loaderArc { to { stroke-dashoffset: 0; } }
@keyframes loaderPop { to { transform: scale(1); opacity: 1; } }
@keyframes loaderSpin { from { transform: rotate(-200deg); } to { transform: rotate(0); } }
@keyframes loaderUp { to { opacity: 1; transform: none; } }
@keyframes loaderOut { 0% { clip-path: inset(0 0 0 0); } 100% { clip-path: inset(0 0 100% 0); } }
html.loader-out .loader__inner { transition: transform .6s cubic-bezier(.7,0,.3,1), opacity .4s; transform: translateY(-40px); opacity: 0; }
/* 幕が上がるまでヒーローの動きは止めておく */
html.has-loader:not(.loader-out) .hub * { animation-play-state: paused !important; }
html.has-loader:not(.loader-out) .hero .rv { transition: none !important; opacity: 0 !important; }

/* scroll effects (main.js adds html.motion; without JS everything is simply visible) */
html.motion .rv { opacity: 0; transform: translateY(36px); transition: opacity 1s cubic-bezier(.25,.6,.2,1), transform 1.2s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
html.motion .rv.in { opacity: 1; transform: none; }
html.motion .hl { background-size: 0% .26em; transition: background-size 1.2s .45s cubic-bezier(.6,0,.2,1); }
html.motion .in .hl, html.motion .hl.in { background-size: 100% .26em; }
html.motion .manifesto .ch { color: #D2D2D7; transition: color .35s ease; }
html.motion .manifesto .ch.on { color: var(--ink); }
html.motion .manifesto .manifesto__sub .ch.on { color: var(--gray); }
html.motion .photo-frame { transform: scale(var(--fs, 1)); border-radius: var(--fr, 28px); will-change: transform; }
html.motion .photo-frame img { transform: translateY(var(--py, 0)) scale(1.14); will-change: transform; }
html.motion .tile img, html.motion .card__bg { transform: translateY(var(--py, 0)) scale(1.12); will-change: transform; }
html.motion .wide-photo, html.motion .company__photo { clip-path: inset(var(--ci, 0) round var(--radius-lg)); }
html.motion .hero__map { transform: translateY(var(--hy, 0)); opacity: var(--ho, 1); }
.step { position: relative; }
html.motion .step { border-top-color: #3A3A3C; }
html.motion .steps--light .step { border-top-color: var(--line); }
html.motion .step::after { content: ""; position: absolute; left: 0; top: -2px; height: 2px; width: calc(var(--f, 0) * 100%); background: var(--accent); }
html.motion .steps--light .step::after { background: var(--purple); }
html.motion .step--active { border-top-color: #3A3A3C !important; }
html.motion .steps--light .step--active { border-top-color: var(--line) !important; }
html.motion .step .step__label { transition: color .4s; }
html.motion .step.done .step__label { color: var(--accent); }
html.motion .steps--light .step.done .step__label { color: var(--purple); }
.nav { transition: box-shadow .3s ease; }
.nav.scrolled { box-shadow: 0 8px 24px -16px rgba(0,0,0,.25); }
.scroll-bar { position: fixed; left: 0; top: 0; z-index: 101; height: 3px; width: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(var(--sp, 0)); pointer-events: none; }
@keyframes float { 50% { transform: translateY(-7px); } }
.node { transform-box: fill-box; animation: float 5s ease-in-out infinite; }
.lift { transition: transform .5s cubic-bezier(.25,.6,.2,1), box-shadow .5s; }
.lift:hover { transform: scale(1.012); box-shadow: 0 30px 60px -30px rgba(0,0,0,.28); }



/* hub illustration intro + idle effects */
@keyframes drawIn { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.hub .draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: drawIn 1.2s cubic-bezier(.6,0,.2,1) forwards; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.hub .fade { opacity: 0; animation: fadeIn .8s ease forwards; }
.hub .flow.fade { animation: flow 1.6s linear infinite, fadeIn .8s ease forwards; }
@keyframes popIn { 0% { opacity: 0; transform: scale(.4); } 70% { opacity: 1; transform: scale(1.08); } 100% { opacity: 1; transform: scale(1); } }
.hub .popin { opacity: 0; transform-box: fill-box; transform-origin: center; animation: popIn .7s cubic-bezier(.2,.8,.2,1) forwards; }
@keyframes flyIn { from { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(45deg); } to { opacity: 1; transform: translate(0, 0) rotate(45deg); } }
.hub .fly { opacity: 0; transform-box: fill-box; transform-origin: center; animation: flyIn .9s cubic-bezier(.2,.8,.2,1) forwards; }
@keyframes streak { from { stroke-dashoffset: .1; } to { stroke-dashoffset: -1; } }
@keyframes hubPulse { 0% { opacity: .7; transform: scale(1); } 100% { opacity: 0; transform: scale(1.32); } }
.hub .hubpulse { transform-box: fill-box; transform-origin: center; animation: hubPulse 2.6s ease-out infinite; }
.hub .streak { stroke-dasharray: .1 1; stroke-dashoffset: .1; animation: streak 2.6s linear infinite; }
/* ---------- LINE ---------- */
.line-ic { width: 1.25em; height: 1.25em; flex: none; }
.btn--line { background: #06C755; color: #FFFFFF; border: none; display: inline-flex; align-items: center; gap: 8px; }
.line-box { margin: clamp(48px, 6vw, 72px) auto 0; max-width: 880px; display: flex; align-items: center; justify-content: space-between; gap: 32px 48px; padding: clamp(28px, 4vw, 44px) clamp(24px, 4vw, 52px); background: var(--bg-soft); border-radius: var(--radius-lg); }
.line-box__label { margin: 0 0 8px; font-size: 14px; font-weight: 600; color: #06A247; }
.line-box__title { margin: 0; font-size: clamp(22px, 2.4vw, 28px); line-height: 1.3; letter-spacing: -0.01em; }
.line-box__desc { margin: 12px 0 24px; color: var(--gray); line-height: 1.7; max-width: 30em; }
.line-box__qr { margin: 0; flex: none; text-align: center; font-size: 12px; line-height: 1.6; color: var(--gray); }
.line-box__qr img { display: block; width: 136px; height: 136px; margin: 0 auto 10px; padding: 10px; background: #FFFFFF; border-radius: 16px; }
.contact-mail { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; }
.contact-line { display: inline-flex; align-items: center; gap: 6px; color: #06A247; }
.line-float { display: none; }
@media (max-width: 760px) {
  .line-box { flex-direction: column; text-align: center; }
  .line-box__desc { margin-left: auto; margin-right: auto; }
  .line-box__qr { display: none; }
  .line-float { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 60; display: inline-flex; align-items: center; gap: 6px; padding: 12px 18px; border-radius: 999px; background: #06C755; color: #FFFFFF; font-size: 15px; font-weight: 600; text-decoration: none; box-shadow: 0 8px 24px rgba(0,0,0,.18); }
  .footer { padding-bottom: 72px; }
}

@media (prefers-reduced-motion: reduce) {
  .hub .draw, .hub .fade, .hub .popin, .hub .fly { animation: none; opacity: 1; stroke-dashoffset: 0; }
  .hub .fly { transform: rotate(45deg); }
  .hub .streak { display: none; }
}

@media (max-width: 760px) {
  .nav__links a:not(.nav__cta) { display: none; }
  .nav__links { gap: 0 8px; flex-wrap: nowrap; }
  .nav__toggle { display: inline-flex; flex-direction: column; justify-content: center; gap: 6px; width: 44px; height: 44px; margin-right: -10px; padding: 0 11px; border: 0; background: transparent; cursor: pointer; }
  .nav__toggle span { display: block; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .25s ease; }
  .nav.is-open .nav__toggle span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav.is-open .nav__toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav__menu { padding: 4px 24px 24px; border-top: 1px solid var(--line); max-height: calc(100vh - 61px); overflow-y: auto; }
  .nav__menu ul { list-style: none; margin: 0; padding: 0; }
  .nav__menu li a { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
  .nav__menu li a span { color: var(--gray-light); font-weight: 400; }
  .nav__menu-line { display: block; margin-top: 20px; padding: 14px; border-radius: 999px; background: #06C755; color: #FFFFFF; text-align: center; font-weight: 600; text-decoration: none; }
  .seg { flex-wrap: nowrap; }
  .seg button { padding: 10px 13px; font-size: 14px; }
  .hero .cta-row .btn { width: 100%; }
  .modules { grid-template-columns: minmax(0, 1fr); }
  .tile__body, .card { padding: 32px 28px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .flow, .stop, .node { animation: none; }
  .lift, .lift:hover, .btn:hover { transition: none; transform: none; }
}
html.motion .step--active:not(.done) .step__label { color: var(--gray-light) !important; }
html.motion .steps--light .step--active:not(.done) .step__label { color: var(--gray) !important; }
/* スマホでは「ご用件」を縦並びのリストにする */
@media (max-width: 760px) {
  .chips { display: grid; grid-template-columns: 1fr; gap: 8px; }
  .chip { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 54px; padding: 14px 18px; border-radius: 16px; text-align: left; font-size: 16px; font-weight: 500; }
  .chip::after { content: ""; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line); flex: none; }
  .chip[aria-pressed="true"] { background: #F7F2FA; color: var(--purple); border: 2px solid var(--purple); padding: 13px 17px; }
  .chip[aria-pressed="true"]::after { border-color: var(--purple); background: var(--purple) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat; }
}
