/* =============================================
   PRAXIS — トップページ
   ============================================= */

/* ── FIRST VIEW ── */

.hero {
  --p: 0;
  --foot-height: 64px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100svh;
  padding: var(--header-height) var(--gutter) 0;
  overflow: clip;
}

/* 見出しに重ならない位置に、ロゴ全体を大きく置く */
.hero__mark {
  position: absolute;
  right: var(--gutter);
  bottom: calc(var(--foot-height) + 16px);
  height: min(calc(100% - var(--header-height) - var(--foot-height) - 32px), 45vw);
  aspect-ratio: 926 / 962;
}

.hero__mark svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.hero__bar {
  fill: var(--ink);
}

.hero__shard {
  fill: var(--accent);
}

/* スクロールに合わせ、斜線はその先へ伸び、水色の面は離れていく */
.hero__part--bar {
  transform: translate(calc(var(--p) * 300px), calc(var(--p) * -384px));
}

.hero__part--a {
  transform: translate(calc(var(--p) * -130px), calc(var(--p) * -100px));
}

.hero__part--b {
  transform: translate(calc(var(--p) * 130px), calc(var(--p) * 100px));
}

.js .hero__bar {
  transform: translate(-900px, 1152px);
}

.js .hero__shard--a {
  opacity: 0;
  transform: translate(-90px, -115px);
}

.js .hero__shard--b {
  opacity: 0;
  transform: translate(90px, 115px);
}

.js.is-ready .hero__bar,
.js.is-ready .hero__shard {
  opacity: 1;
  transform: none;
}

.js.is-ready .hero__bar {
  transition: transform 1.6s var(--ease-out);
}

.js.is-ready .hero__shard {
  transition: transform 1.3s var(--ease-out) 0.55s, opacity 0.5s linear 0.55s;
}

.hero__body {
  position: relative;
  padding-bottom: clamp(24px, 4.4vh, 48px);
}

.hero__title {
  font-size: clamp(56px, min(9.6vw, 20.5vh), 208px);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.055em;
}

.mask-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;
  margin-bottom: -0.06em;
}

.mask-line > span {
  display: block;
}

.js .mask-line > span {
  transform: translateY(112%);
}

.js.is-ready .mask-line > span {
  transform: none;
  transition: transform 1.3s var(--ease-out) 0.25s;
}

.js.is-ready .mask-line + .mask-line > span {
  transition-delay: 0.36s;
}

.hero__lead {
  margin-top: clamp(14px, 2.2vh, 28px);
  font-size: clamp(16px, 1.3vw, 20px);
  line-height: 1.85;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(18px, 2.8vh, 32px);
}

.hero__actions .btn {
  min-width: 216px;
}

.js .hero__lead,
.js .hero__actions {
  opacity: 0;
}

.js.is-ready .hero__lead,
.js.is-ready .hero__actions {
  opacity: 1;
  transition: opacity 1.2s linear 0.9s;
}

.hero__foot {
  position: relative;
  display: flex;
  align-items: center;
  min-height: var(--foot-height);
  font-size: 16px;
  line-height: 1.6;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

/* ── CONCEPT ── */

.concept {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 32px);
  padding: var(--section-space) var(--gutter);
  overflow: clip;
  background: var(--ink);
  color: var(--paper);
}

.concept__shard {
  position: absolute;
  top: 0;
  right: 0;
  width: clamp(120px, 21vw, 400px);
  fill: var(--accent);
  transform: translate(10%, -6%);
}

.concept .eyebrow {
  position: relative;
  grid-column: 1 / -1;
}

.concept__title {
  position: relative;
  grid-column: 1 / -1;
  margin-top: clamp(28px, 3.4vw, 56px);
  font-size: clamp(40px, 7vw, 132px);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.05em;
}

.concept__row {
  display: block;
}

.concept__row:nth-child(2) {
  padding-left: 0.9em;
}

.concept__row:nth-child(3) {
  padding-left: 1.8em;
}

/* 文字が点く前でも静止状態で読める明るさにする(黒地に対し約6.5:1) */
.js .concept__title .char {
  color: #969696;
  transition: color 0.35s linear;
}

.js .concept__title .char.is-lit {
  color: var(--paper);
}

.concept__issues {
  grid-column: 1 / span 6;
  margin-top: clamp(64px, 8.4vw, 136px);
  font-size: clamp(18px, 1.6vw, 24px);
  font-weight: 700;
  line-height: 1.6;
  border-top: 1px solid var(--line-dark);
}

.concept__issues li {
  padding-block: clamp(14px, 1.5vw, 22px);
  border-bottom: 1px solid var(--line-dark);
}

.concept__text {
  grid-column: 8 / -1;
  display: grid;
  align-content: start;
  gap: 1.3em;
  max-width: 31em;
  margin-top: clamp(64px, 8.4vw, 136px);
  font-size: clamp(17px, 1.34vw, 20px);
  line-height: 2.05;
}

/* ── SERVICES ── */

.services {
  padding-top: var(--section-space);
}

.services__note {
  max-width: 56em;
  margin-top: 24px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--mute);
}

.services__list {
  margin-top: clamp(56px, 6vw, 96px);
}

.svc {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 32px);
  padding-inline: var(--gutter);
}

.svc__no {
  font-family: var(--font-en);
  font-size: clamp(112px, 17vw, 320px);
  font-weight: 500;
  line-height: 0.84;
  letter-spacing: -0.07em;
  margin-left: -0.04em;
}

.svc__en {
  font-family: var(--font-en);
  font-size: 16px;
  line-height: 1.4;
  color: var(--mute);
}

.svc__title {
  margin-top: 12px;
  font-size: clamp(36px, 4.7vw, 88px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.045em;
}

.svc__title span {
  display: block;
}

.svc__lead {
  font-size: clamp(21px, 2vw, 30px);
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: -0.015em;
}

.svc__text {
  max-width: 34em;
  margin-top: 1em;
  font-size: clamp(16px, 1.2vw, 18px);
  line-height: 2;
}

.svc__items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 24px;
  margin-top: clamp(24px, 2.6vw, 40px);
  border-top: 1px solid var(--line);
}

.svc__items li {
  padding-block: 12px;
  font-size: 16px;
  line-height: 1.6;
  border-bottom: 1px solid var(--line);
}

.svc__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  margin-top: clamp(24px, 2.6vw, 40px);
}

/* 01: 番号と見出しを横に並べ、大きな図版を右端まで広げる */
.svc--web {
  row-gap: clamp(32px, 4vw, 64px);
  padding-block: 0 var(--section-space);
}

.svc--web .svc__head {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-end;
  gap: clamp(24px, 4vw, 72px);
  padding-top: clamp(24px, 2.4vw, 40px);
  border-top: 1px solid var(--line);
}

.svc--web .svc__body {
  grid-column: 1 / span 4;
  grid-row: 2;
  align-self: end;
}

.svc--web .svc__items {
  grid-template-columns: 1fr;
}

.svc--web .svc__visual {
  grid-column: 6 / -1;
  grid-row: 2;
  margin-right: calc(var(--gutter) * -0.4);
}

/* 02: グレーの面に図版を左、番号と文字を右に置く */
.svc--app {
  padding-block: clamp(64px, 7vw, 120px);
  background: var(--mist);
}

.svc--app .svc__visual {
  grid-column: 1 / span 7;
  grid-row: 1 / span 2;
  align-self: center;
}

.svc--app .svc__head {
  grid-column: 8 / -1;
  grid-row: 1;
  padding-left: clamp(0px, 1vw, 24px);
}

.svc--app .svc__no {
  text-align: right;
  margin-left: 0;
}

.svc--app .svc__heading {
  margin-top: clamp(24px, 3vw, 48px);
}

.svc--app .svc__body {
  grid-column: 8 / -1;
  grid-row: 2;
  margin-top: clamp(24px, 3vw, 48px);
  padding-left: clamp(0px, 1vw, 24px);
}

/* 03: 文字を主役に、小さめの図版を番号の下へ */
.svc--excel {
  padding-block: var(--section-space);
  row-gap: clamp(32px, 4vw, 64px);
}

.svc--excel .svc__head {
  display: contents;
}

.svc--excel .svc__no {
  grid-column: 1 / span 4;
  grid-row: 1;
}

.svc--excel .svc__heading {
  grid-column: 5 / -1;
  grid-row: 1;
  align-self: end;
}

.svc--excel .svc__title {
  font-size: clamp(36px, 6.2vw, 116px);
}

.svc--excel .svc__title span {
  display: inline;
}

.svc--excel .svc__visual {
  grid-column: 1 / span 5;
  grid-row: 2;
}

.svc--excel .svc__body {
  grid-column: 7 / -1;
  grid-row: 2;
}

.svc--excel .svc__text {
  max-width: 40em;
}

/* 04: 黒の全面に映像を置き、見出しを映像の上に重ねる */
.svc--movie {
  padding-block: clamp(64px, 7vw, 120px);
  row-gap: clamp(32px, 4vw, 64px);
  background: var(--ink);
  color: var(--paper);
}

.svc--movie .svc__head {
  grid-column: 1 / -1;
  grid-row: 1;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding: 0 clamp(24px, 3.2vw, 56px);
  align-self: start;
  margin-top: clamp(24px, 3vw, 48px);
}

.svc--movie .svc__heading {
  order: -1;
}

.svc--movie .svc__en {
  color: var(--paper);
}

.svc--movie .svc__visual {
  grid-column: 1 / -1;
  grid-row: 1;
}

.svc--movie .svc__body {
  grid-column: 1 / -1;
  display: grid;
}

.svc--movie .svc__body > [data-draft] {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 32px);
}

.svc--movie .svc__lead {
  grid-column: 1 / span 5;
}

.svc--movie .svc__text {
  grid-column: 7 / -1;
  margin-top: 0;
}

.svc--movie .svc__items {
  grid-column: 7 / -1;
  border-top-color: var(--line-dark);
}

.svc--movie .svc__items li {
  border-bottom-color: var(--line-dark);
}

.svc--movie .svc__links {
  justify-content: flex-end;
}

/* サービスの図(CONCEPT WORKSと同じ素材の架空イメージ) */

.svc__visual img {
  display: block;
  width: 100%;
  height: auto;
}

/* ── CONCEPT WORKS ── */

.works {
  padding-block: 0 var(--section-space);
  background: var(--ink);
  color: var(--paper);
}

.works__head {
  margin-inline: var(--gutter);
  padding-top: clamp(32px, 4vw, 64px);
  border-top: 1px solid var(--line-dark);
}

.works__note {
  max-width: 44em;
  margin-top: 24px;
  font-size: clamp(16px, 1.2vw, 18px);
  color: #d4d4d4;
}

.works__note span {
  display: inline-block;
}

.works__credit {
  margin: clamp(64px, 7vw, 112px) var(--gutter) 0;
  font-size: 14px;
  line-height: 1.75;
  color: #c4c4c4;
}

.work {
  margin-top: clamp(96px, 11vw, 192px);
}

.work__head {
  padding-inline: var(--gutter);
}

.work__kind {
  font-family: var(--font-en);
  font-size: clamp(52px, 11vw, 208px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.055em;
  margin-left: -0.03em;
}

.work__intro {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 32px);
  align-items: start;
  margin-top: clamp(20px, 2.4vw, 40px);
  padding-top: 16px;
  border-top: 1px solid var(--line-dark);
}

.work__no {
  grid-column: 1;
  font-family: var(--font-en);
  padding-top: 0.45em;
  font-size: 16px;
  line-height: 1.5;
  color: #c4c4c4;
}

.work__intro > div {
  grid-column: 2 / span 6;
}

.work__title {
  font-size: clamp(22px, 2.2vw, 34px);
  font-weight: 700;
  line-height: 1.45;
}

.work__meta {
  margin-top: 8px;
  font-size: 16px;
  line-height: 1.6;
  color: #c4c4c4;
}

.work__lead {
  grid-column: 8 / -1;
  font-size: clamp(16px, 1.2vw, 18px);
  color: #d4d4d4;
}

.work__sample {
  margin: clamp(24px, 2.6vw, 40px) var(--gutter) 0;
  padding: 10px 14px;
  font-size: 16px;
  line-height: 1.75;
  color: #d4d4d4;
  border-left: 3px solid var(--accent);
}

.wk-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(32px, 4vw, 64px) clamp(16px, 2vw, 32px);
  margin-top: clamp(32px, 4vw, 64px);
  padding-inline: var(--gutter);
  align-items: start;
}

.wk {
  min-width: 0;
}

.wk picture,
.wk img,
.wk-web__hero img,
.wk-mv__main img {
  display: block;
  width: 100%;
  height: auto;
}

.wk figcaption,
.wk-mv__main figcaption {
  margin-top: 10px;
  font-size: 16px;
  line-height: 1.6;
  color: #c4c4c4;
}

.wk figcaption span,
.wk-mv__main figcaption span {
  margin-right: 10px;
  font-family: var(--font-en);
  font-weight: 500;
  color: #62c0ee;
}

.wk-web__phone img,
.wk-app__phone1 img,
.wk-app__phone2 img {
  border-radius: 13.5% / 6.3%;
}

/* 01 Web: 写真を全幅に置き、画面を重ねて見せる */
.wk-web__hero {
  margin-top: clamp(32px, 4vw, 64px);
}

.wk-web__hero img {
  aspect-ratio: 2 / 1;
  object-fit: cover;
  object-position: center 62%;
}

.work--web .wk-grid {
  margin-top: 0;
}

.wk-web__pc {
  position: relative;
  grid-column: 1 / span 9;
  margin-top: clamp(-200px, -11vw, -64px);
}

.wk-web__phone {
  position: relative;
  grid-column: 10 / -1;
  margin-top: clamp(-320px, -19vw, -96px);
}

.wk-web__room {
  grid-column: 1 / span 5;
}

.wk-web__exp {
  grid-column: 6 / span 4;
  margin-top: clamp(40px, 7vw, 128px);
}

.wk-web__meal {
  grid-column: 10 / -1;
}

.wk-web__way {
  grid-column: 1 / span 7;
  align-self: end;
}

.wk-web__booking {
  grid-column: 8 / -1;
}

.wk-web__brand {
  grid-column: 1 / -1;
}

/* 02 Webアプリ: 大きな全体画面に、細部の拡大とスマートフォンを添える */
.wk-app__main {
  grid-column: 1 / -1;
}

.wk-app__kpi,
.wk-app__map {
  display: none;
}

.wk-app__schedule {
  grid-column: 1 / span 7;
}

.wk-app__fleet {
  grid-column: 8 / -1;
}

.wk-app__master {
  grid-column: 2 / span 10;
}

.wk-app__phone1 {
  grid-column: 1 / span 3;
}

.wk-app__phone2 {
  grid-column: 4 / span 3;
}

.wk-app__detail {
  grid-column: 7 / span 3;
}

.wk-app__notice {
  grid-column: 10 / -1;
}

.work__link {
  grid-column: 8 / -1;
  justify-self: start;
  margin-top: 16px;
}

.work__excel-overview {
  max-width: 1312px;
  margin: clamp(32px, 4vw, 64px) auto 0;
  padding-inline: var(--gutter);
}

.work__excel-overview img {
  width: 100%;
  height: auto;
}

/* 04 動画: インタビューを主役に、大小のカットで組む */
.wk-mv__main {
  margin-top: clamp(32px, 4vw, 64px);
}

.wk-mv__main img {
  aspect-ratio: 2.39 / 1;
  object-fit: cover;
  object-position: center 12%;
}

.wk-mv__main figcaption {
  padding-inline: var(--gutter);
}

.wk-mv__hands {
  grid-column: 1 / span 7;
}

.wk-mv__product {
  grid-column: 8 / span 4;
  margin-top: clamp(32px, 6vw, 112px);
}

.wk-mv__workshop {
  grid-column: 2 / span 5;
}

.wk-mv__exterior {
  grid-column: 7 / -1;
  margin-top: clamp(-96px, -5vw, -32px);
}

.wk-mv__board,
.wk-mv__timeline {
  grid-column: 1 / -1;
}

/* ── WHY PRAXIS ── */

.why {
  padding-top: var(--section-space);
}

.why__list {
  margin-top: clamp(32px, 4vw, 56px);
  padding-inline: var(--gutter);
}

/* 見出しだけロゴの斜線に沿って右へずらし、説明の位置と余白は3項目で揃える */
.why__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 26em);
  align-items: center;
  column-gap: clamp(24px, 4vw, 72px);
  min-height: clamp(180px, 16vw, 280px);
  padding-block: clamp(28px, 3vw, 48px);
  border-top: 1px solid var(--line);
}

.why__item:last-child {
  border-bottom: 1px solid var(--line);
}

.why__title {
  padding-left: calc(var(--i) * clamp(0px, 6vw, 112px));
  font-size: clamp(56px, 8.4vw, 168px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.055em;
  white-space: nowrap;
}

.why__en {
  font-family: var(--font-en);
  font-size: 16px;
  line-height: 1.4;
  color: var(--mute);
}

.why__text {
  margin-top: 12px;
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.95;
}

/* ── PROCESS ── */

.process {
  margin-top: var(--section-space);
  padding-block: var(--section-space);
  background: var(--mist);
}

/* 右側に余白を残して階段状に下げる */
.process__steps {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 32px);
  max-width: 1600px;
  margin-top: clamp(56px, 6vw, 96px);
  padding-inline: var(--gutter) calc(var(--gutter) + 5vw);
}

.step {
  margin-top: calc(var(--i) * clamp(0px, 4.2vw, 76px));
  padding-top: 14px;
  border-top: 1.5px solid var(--ink);
}

.js .step.reveal {
  transition-delay: calc(var(--i) * 90ms);
}

.step__no {
  display: block;
  font-family: var(--font-en);
  font-size: clamp(64px, 7vw, 124px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.06em;
}

.step__title {
  margin-top: clamp(14px, 1.6vw, 24px);
  font-size: clamp(18px, 1.5vw, 22px);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -0.01em;
}

.step__text {
  max-width: 15em;
  margin-top: 10px;
  font-size: 16px;
  line-height: 1.85;
  color: #4d4d4d;
}

/* ── ABOUT ── */

.about {
  padding-block: var(--section-space);
}

.about__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 32px);
  padding-inline: var(--gutter);
}

.about__head {
  position: relative;
  z-index: 1;
  grid-column: 1 / span 9;
  grid-row: 1;
}

.about__title {
  margin-top: clamp(24px, 3vw, 40px);
  font-size: clamp(36px, 5.2vw, 100px);
  font-weight: 700;
  line-height: 1.24;
  letter-spacing: -0.045em;
}

/* 背景を飛ばした写真を、ロゴの水色の面に重ねる */
.about__photo {
  position: relative;
  grid-column: 8 / -1;
  grid-row: 1 / span 3;
  align-self: start;
  justify-self: end;
  isolation: isolate;
  width: min(29vw, 440px);
  margin-top: clamp(16px, 3vw, 48px);
  margin-right: clamp(0px, 2vw, 40px);
}

.about__photo img {
  position: relative;
  width: 100%;
  mix-blend-mode: multiply;
}

.about__shard {
  position: absolute;
  z-index: -1;
  left: -9%;
  top: 2%;
  width: 46%;
  fill: var(--accent);
}

.about__intro {
  grid-column: 1 / span 6;
  grid-row: 2;
  margin-top: clamp(40px, 5vw, 80px);
  font-size: clamp(19px, 1.7vw, 25px);
  font-weight: 500;
  line-height: 1.9;
}

.about__profile {
  grid-column: 1 / span 6;
  grid-row: 3;
  margin-top: clamp(32px, 3.4vw, 56px);
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.about__role {
  font-size: 16px;
  color: var(--mute);
}

.about__name {
  font-size: clamp(26px, 2.4vw, 36px);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.about__story {
  max-width: 36em;
  margin-top: 14px;
  line-height: 2;
}

.about__facts {
  grid-column: 1 / -1;
  grid-row: 4;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 32px);
  margin-top: clamp(48px, 6vw, 96px);
  font-size: 16px;
  line-height: 1.75;
}

.about__facts > div {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.about__facts dt {
  font-size: 16px;
  color: var(--mute);
}

.about__facts dd {
  margin-top: 4px;
}

.about__mail {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── FAQ ── */

.faq {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 32px);
  padding: 0 var(--gutter) var(--section-space);
}

.faq__head {
  grid-column: 1 / span 4;
}

.faq__head .section-head__title {
  font-size: clamp(36px, 4vw, 72px);
}

.faq__list {
  grid-column: 5 / -1;
  border-top: 1px solid var(--line);
}

.faq__item {
  border-bottom: 1px solid var(--line);
}

.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding-block: 16px;
  font-size: clamp(17px, 1.45vw, 21px);
  font-weight: 700;
  line-height: 1.55;
  cursor: pointer;
  list-style: none;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__icon {
  position: relative;
  flex: none;
  width: 18px;
  height: 18px;
}

.faq__icon::before,
.faq__icon::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.5s var(--ease-out);
}

.faq__icon::after {
  transform: rotate(90deg);
}

.faq__item[open] .faq__icon::after {
  transform: rotate(0);
}

.faq__item p {
  max-width: 42em;
  padding-bottom: 24px;
  font-size: clamp(16px, 1.2vw, 18px);
  line-height: 2;
}

/* ── CONTACT ── */

.contact {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 32px);
  row-gap: 56px;
  padding: var(--section-space) var(--gutter);
  background: var(--ink);
  color: var(--paper);
}

.contact__intro {
  grid-column: 1 / span 6;
}

.contact__title {
  margin-top: clamp(24px, 3vw, 40px);
  font-size: clamp(44px, 6.6vw, 124px);
  font-weight: 900;
  line-height: 1.16;
  letter-spacing: -0.05em;
}

.contact__lead {
  margin-top: clamp(32px, 4vw, 56px);
  font-size: clamp(19px, 1.7vw, 24px);
  font-weight: 700;
  line-height: 1.6;
}

.contact__text {
  max-width: 30em;
  margin-top: 14px;
  color: #d0d0d0;
}

.contact__points {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  margin-top: 24px;
  font-weight: 700;
}

.contact__points li::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  vertical-align: 2px;
  background: var(--accent);
}

.contact-form {
  grid-column: 8 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px clamp(16px, 2vw, 32px);
  align-content: start;
  padding-top: 38px;
}

.contact-form__note {
  grid-column: 1 / -1;
  color: #d0d0d0;
}

.contact-form__honey {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.field {
  grid-column: 1 / -1;
}

.field--half {
  grid-column: span 1;
}

.field label {
  display: block;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
}

.field__req {
  display: inline-block;
  margin-left: 6px;
  padding: 0 7px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
  vertical-align: 1px;
  color: var(--ink);
  background: #62c0ee;
}

.field__hint {
  font-size: 16px;
  color: #d0d0d0;
}

/* 入力欄の境界は黒地に対して3:1以上を確保する */
.field input,
.field select,
.field textarea {
  display: block;
  width: 100%;
  min-height: 52px;
  margin-top: 8px;
  padding: 12px 14px;
  background: #1a1a1a;
  border: 1.5px solid #9a9a9a;
  border-radius: 0;
  font-size: 16px;
  outline-offset: 2px;
  transition: border-color 0.3s;
}

.field select {
  appearance: none;
  padding-right: 38px;
  background: #1a1a1a no-repeat right 14px center / 12px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='1.5' d='m1 1 5 5 5-5'/%3E%3C/svg%3E");
}

.field select option {
  color: var(--ink);
  background: var(--paper);
}

.field textarea {
  resize: vertical;
  line-height: 1.8;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: #62c0ee;
}

.field [aria-invalid='true'] {
  border-color: #ff9d9d;
}

.contact-form__status {
  grid-column: 1 / -1;
  min-height: 1.8em;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.7;
}

.contact-form__status.is-error {
  color: #ff9d9d;
}

.submit {
  position: relative;
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding-inline: 28px;
  overflow: hidden;
  isolation: isolate;
  background: var(--paper);
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
  transition: color 0.3s;
}

.submit::before {
  content: '';
  position: absolute;
  inset: 0 -30%;
  z-index: -1;
  background: var(--accent);
  transform: skewX(calc(var(--logo-angle) * -1)) translateX(-115%);
  transition: transform 0.7s var(--ease-out);
}

.submit[disabled] {
  cursor: progress;
  opacity: 0.7;
}

.contact-form__privacy {
  grid-column: 1 / -1;
  font-size: 16px;
  color: #d0d0d0;
}

.contact-form__privacy .text-button {
  min-height: 44px;
}

@media (hover: hover) {
  .submit:not([disabled]):hover::before {
    transform: skewX(calc(var(--logo-angle) * -1)) translateX(0);
  }

  .submit:not([disabled]):hover .arrow-link__icon {
    transform: translateX(8px);
  }
}

/* ── タブレットの幅は強みと工程を縦に並べる ── */

@media (max-width: 1199px) {
  .why__item {
    display: block;
    min-height: 0;
  }

  .why__title {
    padding-left: 0;
    font-size: min(15vw, 120px);
  }

  .why__detail {
    margin-top: 20px;
  }

  .process__steps {
    display: block;
    margin-top: 48px;
    padding-inline: var(--gutter);
  }

  /* 左に1本の線を通し、縦の流れとして読ませる */
  .step {
    position: relative;
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    column-gap: 12px;
    margin-top: 0;
    padding-block: 0 36px;
    border-top: 0;
  }

  .step:last-child {
    padding-bottom: 0;
  }

  .step::before {
    content: '';
    position: absolute;
    top: 8px;
    bottom: -8px;
    left: 14px;
    width: 1.5px;
    background: var(--ink);
  }

  .step:last-child::before {
    display: none;
  }

  .step__no {
    grid-row: 1 / span 2;
    position: relative;
    width: 30px;
    padding-bottom: 6px;
    font-size: 40px;
    letter-spacing: 0;
    text-align: center;
    background: var(--mist);
  }

  .step__title {
    margin-top: 6px;
    font-size: 20px;
  }

  .step__text {
    max-width: 32em;
  }
}

/* ── スマートフォン・タブレット ── */

@media (max-width: 900px) {
  /* ロゴと見出しを縦に積み、重ならないようにする */
  .hero {
    --foot-height: 60px;
    justify-content: flex-start;
  }

  .hero__mark {
    position: relative;
    inset: auto;
    flex: 1 1 0;
    width: auto;
    height: auto;
    aspect-ratio: auto;
    min-height: clamp(150px, 36vw, 340px);
    margin-top: 8px;
  }

  .hero__mark svg {
    position: absolute;
    inset: 0;
  }

  .hero__body {
    flex: none;
    padding-top: 20px;
  }

  .hero__title {
    font-size: min(15vw, 104px);
    line-height: 1.14;
  }

  .hero__lead {
    font-size: 16px;
  }

  /* モバイルでは主要な説明と導線を待たせず表示する */
  .js .hero__lead,
  .js .hero__actions {
    opacity: 1;
    transition: none;
  }

  .hero__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .hero__actions .btn {
    min-width: 0;
    gap: 8px;
    padding-inline: 14px;
    white-space: nowrap;
  }

  .hero__foot {
    flex: none;
    padding-block: 10px;
    font-size: 15px;
  }

  .concept {
    display: block;
  }

  .concept__title {
    margin-block: 32px 0;
    font-size: min(11.4vw, 84px);
  }

  .concept__row:nth-child(2) {
    padding-left: 0.4em;
  }

  .concept__row:nth-child(3) {
    padding-left: 0.8em;
  }

  .concept__issues,
  .concept__text {
    margin-top: 48px;
  }

  .concept__issues {
    font-size: 18px;
  }

  .concept__text {
    max-width: none;
    font-size: 17px;
  }

  /* 4事業はすべて「番号→見出し→図版→本文」の順に読む */
  .svc,
  .svc--web,
  .svc--excel,
  .svc--app,
  .svc--movie {
    display: block;
    padding-block: 56px;
  }

  .svc--web {
    padding-top: 0;
  }

  .svc--web .svc__head,
  .svc--excel .svc__head,
  .svc--app .svc__head,
  .svc--movie .svc__head {
    display: block;
    margin: 0;
    padding: 0;
  }

  .svc--web .svc__head {
    padding-top: 24px;
  }

  .svc__no,
  .svc--app .svc__no {
    font-size: min(30vw, 200px);
    margin-left: -0.04em;
    text-align: left;
  }

  .svc__heading,
  .svc--app .svc__heading {
    margin-top: 20px;
  }

  .svc__title,
  .svc--excel .svc__title {
    font-size: min(10vw, 72px);
  }

  .svc--excel .svc__title span {
    display: block;
  }

  .svc__visual,
  .svc--web .svc__visual,
  .svc--movie .svc__visual {
    margin: 28px 0 0;
  }

  .svc--excel .svc__visual {
    max-width: 560px;
  }

  .svc__body,
  .svc--app .svc__body {
    margin-top: 28px;
    padding: 0;
  }

  .svc--movie .svc__body > [data-draft] {
    display: block;
  }

  .svc--movie .svc__text {
    margin-top: 1em;
  }

  .svc__lead {
    font-size: 21px;
  }

  .svc__items,
  .svc--web .svc__items {
    grid-template-columns: 1fr;
  }

  .svc__links,
  .svc--movie .svc__links {
    display: grid;
    justify-content: stretch;
  }

  .svc__links .arrow-link {
    width: 100%;
  }

  .work__kind {
    font-size: min(15vw, 104px);
  }

  .work__intro {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 14px;
  }

  .work__no {
    grid-column: 1;
  }

  .work__intro > div {
    grid-column: 2;
  }

  .work__lead {
    grid-column: 1 / -1;
    margin-top: 16px;
  }

  .work__link {
    grid-column: 1 / -1;
  }

  .wk-grid {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 36px;
  }

  .wk-web__hero img,
  .wk-mv__main img {
    aspect-ratio: 4 / 3;
  }

  .wk-mv__main img {
    object-position: 74% center;
  }

  .work--web .wk-grid {
    margin-top: 0;
  }

  .wk-web__pc {
    margin-top: -40px;
  }

  .wk-web__phone {
    width: 66%;
    margin: 0 0 0 auto;
  }

  .wk-web__way {
    align-self: stretch;
  }

  .wk-web__exp,
  .wk-mv__product,
  .wk-mv__exterior {
    margin-top: 0;
  }

  .wk-web__meal,
  .wk-mv__product {
    width: 74%;
  }

  .wk-mv__product {
    margin-left: auto;
  }

  .wk-app__kpi,
  .wk-app__map {
    display: block;
  }

  .wk-app__master {
    display: none;
  }

  .wk-app__phone1,
  .wk-app__phone2 {
    width: 74%;
  }

  .wk-app__phone2 {
    margin-left: auto;
  }

  .about__grid {
    display: block;
  }

  .about__title {
    font-size: min(10.4vw, 72px);
  }

  .about__photo {
    width: min(68vw, 280px);
    margin: 40px auto 0;
  }

  .about__intro {
    margin-top: 32px;
    font-size: 19px;
  }

  .about__facts {
    display: block;
  }

  .about__facts > div {
    padding-block: 12px;
  }

  .faq {
    display: block;
  }

  .faq__list {
    margin-top: 40px;
  }

  .contact {
    display: block;
  }

  .contact__title {
    font-size: min(14.6vw, 104px);
  }

  .contact-form {
    margin-top: 48px;
    padding-top: 0;
  }

  .field--half {
    grid-column: 1 / -1;
  }
}

/* 狭い画面ではボタンの文字を1行に収めるため矢印を省く */
@media (max-width: 420px) {
  .hero__actions .btn {
    justify-content: center;
    padding-inline: 8px;
  }

  .hero__actions .arrow-link__icon {
    display: none;
  }
}

/* 動きを減らす設定では、ロゴと図を完成した形のまま止める */
@media (prefers-reduced-motion: reduce) {
  .hero__part,
  .js .hero__bar,
  .js .hero__shard {
    opacity: 1;
    transform: none !important;
  }

  .js .mask-line > span {
    transform: none;
  }

  .js .hero__lead,
  .js .hero__actions {
    opacity: 1;
  }

  .js .concept__title .char {
    color: var(--paper);
  }
}
