@import url("https://use.typekit.net/tdg0hpd.css");
@import url("https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@400;500&display=swap");
:root {
  --main-color:#2B2B2B;
  --sub-color:#FFF;
  --en-font-01: "nimbus-sans", sans-serif;
  --en-font-02: "IBM Plex Sans", sans-serif;
  --jp-font-01:"Noto Serif JP", serif;
  --svg-main-color:invert(10%) sepia(1%) saturate(1531%) hue-rotate(57deg) brightness(104%) contrast(84%);
  --svg-sub-color:invert(100%) sepia(0%) saturate(9999%) hue-rotate(10deg) brightness(999%) contrast(100%);
}

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  vertical-align: baseline;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 67.5%;
  color: var(--main-color);
  overflow-x: hidden;
  font-family: var(--en-font-01);
  color: var(--main-color);
  font-style: 300;
  transform: translate3d(0, 0, 0);
}

a {
  text-decoration: none;
}

.mv {
  width: 100%;
  height: 100vh;
  position: relative;
}

header {
  position: relative;
}

.header-left {
  font-size: 1.4rem;
  position: absolute;
  top: 35px;
  left: 30px;
}

.header-right {
  font-size: 1.4rem;
  position: absolute;
  top: 35px;
  right: 40px;
}
.header-left a {
  color: var(--main-color);
  font-size: 1.5rem;
  text-decoration: none;
  position: relative;
  display: inline-block;
}
.header-left a::before {
  position: absolute;
  top: 50%;
  left: 50%;
  content: "";
  width: 0;
  height: 1px;
  background-color: var(--main-color);
  transition: 0.2s;
  transform: translateX(-50%);
}
.header-left a:hover::before {
  width: 110%;
}

.header-logo {
  width: 130px;
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  fill: var(--main-color);
}
@media screen and (max-width: 768px) {
  .header-logo {
    top: 20px;
    width: 120px;
  }
}
    #mv-logo {
      position: absolute;
      top: 46%; left: 50%;
      transform: translate(-50%, -50%);
      width: 21vw;
      max-width: 300px;
      z-index: 5;
      pointer-events: none;
    }
    @media (max-width: 480px) {
      #mv-logo { width: 58vw; }
    }

    #cur {
      position: fixed;
      width: 5px; height: 5px;
      background: #2B2B2B;
      border-radius: 50%;
      pointer-events: none;
      transform: translate(-50%, -50%);
      z-index: 100;
      mix-blend-mode: difference;
    }



    /* ── WebGL キャンバス（.mv内に絶対配置） ── */
    #mv-canvas {
      position: absolute;
      top: 0; left: 0;
      width: 100%; height: 100%;
      z-index: 1;
      display: block;
    }

    /* ── テキストを canvas の上に ── */
    .mv-innner {
      z-index: 10;
      mix-blend-mode: multiply;
    }

.mv-innner {
  position: absolute;
  bottom: 2vw;
  left: 50%;
  transform: translateX(-50%);
  width: 85%;
  height: auto;
}

.mv-img {
  width: 24.3055555556vw;
  max-width: 350px;
  position: absolute;
  right: 3.4722222222vw;
  bottom: 14.5833333333vw;
  fill: var(--main-color);
}
@media screen and (max-width: 1100px) {
  .mv-img {
    width: 52.0833333333vw;
    position: absolute;
    right: 1.3020833333vw;
    bottom: 39.0625vw;
  }
}

.mtext-top {
  display: flex;
  flex-wrap: nowrap;
}
.mtext-top .mtext-top__l {
  font-size: 10.3703703703vw;
  line-height: 0.8;
  white-space: auto;
  letter-spacing: -0.06em;
}
@media screen and (max-width: 768px) {
  .mtext-top .mtext-top__l {
    font-size: 16.9270833333vw;
  }
}
.mtext-top .mtext-top__r {
  padding-left: 1.5vw;
  letter-spacing: -0.15em;
  padding: 3.8vw 0vw 0vw 1.5vw;
}
@media screen and (max-width: 768px) {
  .mtext-top .mtext-top__r {
    display: none;
  }
}
.mtext-top .mtext-top__r p {
  font-size: 1.9444444444vw;
  line-height: 0.8;
  white-space: nowrap;
  font-weight: 700;
  margin-bottom: 0.7vw;
}

.mtext-bottom span {
  font-size: 10.3703703703vw;
  white-space: nowrap;
  display: inline-block;
  line-height: 0.8;
  letter-spacing: -0.06em;
}
@media screen and (max-width: 768px) {
  .mtext-bottom span {
    font-size: 16.9270833333vw;
  }
}

.about {
  padding-top: 200px;
  overflow: hidden;
}
@media screen and (max-width: 768px) {
  .about {
    padding-top: 100px;
  }
}
.about-inner {
  max-width: 1360px;
  padding-left: 6.9444444444vw;
  padding-right: 6.9444444444vw;
  margin: 0 auto;
}
.about-top {
  width: auto;
}
.about-top__title {
  font-size: clamp(30px, 10vw, 80px);
  line-height: 1.6;
  letter-spacing: -0.3rem;
}
.about-top__title::before, .about-top__title::after {
  content: "";
  display: block;
  width: 0;
  height: 0;
}
.about-top__title::before {
  margin-top: calc((1 - 2) * 0.5em);
}
.about-top__title::after {
  margin-bottom: calc((1 - 2) * 0.4em);
}
.about-top__lead {
  font-size: clamp(18px, 5vw, 40px);
  letter-spacing: -0.11rem;
  margin-bottom: 7px;
}
.about-top__text {
  font-family: var(--jp-font-01);
  font-size: clamp(10px, 3vw, 21px);
  line-height: 2;
}
.about-top__text::before, .about-top__text::after {
  content: "";
  display: block;
  width: 0;
  height: 0;
}
.about-top__text::before {
  margin-top: calc((1 - 2) * 0.5em);
}
.about-top__text::after {
  margin-bottom: calc((1 - 2) * 0.5em);
}
.about-center {
  margin-top: 200px;
  display: flex;
  justify-content: space-between;
}
@media screen and (max-width: 768px) {
  .about-center {
    margin-top: 0px;
  }
}
.about-center__text {
  font-family: var(--jp-font-01);
  font-size: clamp(10px, 3vw, 15px);
  text-align: justify;
  letter-spacing: 0.2rem;
  line-height: 2;
  max-width: 500px;
  padding-top: 50px;
}
.about-center__img {
  width: 40vw;
  max-width: 420px;
  margin-left: 3vw;
  fill: var(--main-color);
  margin-top: -120px;
}
@media screen and (max-width: 1000px) {
  .about-center__img {
    display: none;
  }
}
.about-bottom {
  margin-top: 200px;
  text-align: center;
}
@media screen and (max-width: 768px) {
  .about-bottom {
    margin-top: 50px;
  }
}
.about-bottom__lead {
  font-size: clamp(22px, 5vw, 60px);
  letter-spacing: -0.2rem;
}
@media screen and (max-width: 768px) {
  .about-bottom__lead {
    font-size: clamp(16px, 8vw, 26px);
    letter-spacing: -0.15rem;
  }
}
.about-bottom__text {
  font-size: clamp(15px, 5vw, 20px);
  letter-spacing: -0.02rem;
  margin-bottom: 20px;
}
@media screen and (max-width: 768px) {
  .about-bottom__text {
    font-size: clamp(10px, 10vw, 13px);
  }
}

.scroll {
  position: relative;
  white-space: nowrap;
  padding: 0;
  margin: 0;
  will-change: transform;
  overflow: hidden;
  width: 100%;
}
.scroll-text {
  color: var(--main-color);
  font-size: clamp(60px, 30vw, 300px);
  letter-spacing: -1.2rem;
  display: inline-block;
  margin-right: 2rem;
  line-height: 1;
}
.scroll-text img {
  width: 680px;
  vertical-align: -10px;
  filter: var(--svg-main-color);
}
@media screen and (max-width: 768px) {
  .scroll-text img {
    width: 300px;
  }
}

.service-inner {
  max-width: 1360px;
  padding-left: 6.9444444444vw;
  padding-right: 6.9444444444vw;
  margin: 0 auto;
}
.service-top {
  width: auto;
}
.service-top__title {
  font-size: clamp(30px, 10vw, 80px);
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
  letter-spacing: -0.3rem;
  position: relative;
}
.service-top__title::before {
  content: attr(data-number);
  position: absolute;
  font-size: clamp(10px, 2vw, 20px);
  letter-spacing: -0.08rem;
  right: -35px;
  top: 10px;
}
@media screen and (max-width: 768px) {
  .service-top__title::before {
    right: -18px;
    top: 8px;
  }
}
.service-top__lead {
  max-width: 420px;
  text-align: justify;
  font-size: clamp(11px, 5vw, 15px);
  line-height: 1;
  letter-spacing: 0.05rem;
}
@media screen and (max-width: 768px) {
  .service-top__lead {
    font-size: clamp(10px, 10vw, 13px);
  }
}
.service-center {
  margin-top: 100px;
  display: flex;
  justify-content: flex-end;
}
@media screen and (max-width: 768px) {
  .service-content {
    padding: 0 0px 0 20px;
  }
}
.service-content ul {
  list-style: none;
}
.service-content li {
  margin-bottom: 10px;
}
.service-content__title {
  font-size: clamp(28px, 5vw, 50px);
  letter-spacing: -0.2rem;
  position: relative;
}
.service-content__title::before {
  content: attr(data-number);
  position: absolute;
  font-size: 13px;
  letter-spacing: -0.08rem;
  left: -28px;
  top: 9px;
}
.service-content__text {
  font-family: var(--jp-font-01);
  font-size: clamp(10px, 3vw, 13px);
  letter-spacing: 0.05rem;
}
.service-bottom {
  margin-top: 200px;
  text-align: center;
}
.service-bottom__lead {
  font-size: clamp(22px, 5vw, 60px);
  letter-spacing: -0.2rem;
}
.service-bottom__text {
  font-size: clamp(15px, 5vw, 20px);
  letter-spacing: -0.02rem;
}

.center-scroll {
  margin-top: 50px;
  overflow: hidden;
}
.center-scroll__top {
  white-space: nowrap;
  position: relative;
  height: 13.5rem;
  overflow: hidden;
}
.center-scroll__top div {
  position: absolute;
  padding-right: 10px;
  left: 0%;
  top: 0%;
  -webkit-animation-duration: 80s;
          animation-duration: 80s;
  -webkit-animation-timing-function: linear;
          animation-timing-function: linear;
  -webkit-animation-iteration-count: infinite;
          animation-iteration-count: infinite;
  padding-right: 50px;
}
.center-scroll__top div:nth-child(1) {
  -webkit-animation-name: topLeft;
          animation-name: topLeft;
}
@-webkit-keyframes topLeft {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-100%);
  }
}
@keyframes topLeft {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-100%);
  }
}
.center-scroll__top div:nth-child(2) {
  -webkit-animation-name: topRight;
          animation-name: topRight;
}
@-webkit-keyframes topRight {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(0%);
  }
}
@keyframes topRight {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(0%);
  }
}
.center-scroll__top div img {
  height: 160px;
}
.center-scroll__bottom {
  white-space: nowrap;
  position: relative;
  height: 100px;
  overflow: hidden;
}
.center-scroll__bottom div {
  display: inline-block;
  position: absolute;
  left: 0%;
  top: 0%;
  padding-right: 30px;
  -webkit-animation-duration: 70s;
          animation-duration: 70s;
  -webkit-animation-timing-function: linear;
          animation-timing-function: linear;
  -webkit-animation-iteration-count: infinite;
          animation-iteration-count: infinite;
}
.center-scroll__bottom div:nth-child(1) {
  -webkit-animation-name: bottomLeft;
          animation-name: bottomLeft;
}
@-webkit-keyframes bottomLeft {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(100%);
  }
}
@keyframes bottomLeft {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(100%);
  }
}
.center-scroll__bottom div:nth-child(2) {
  -webkit-animation-name: bottomRight;
          animation-name: bottomRight;
}
@-webkit-keyframes bottomRight {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(0%);
  }
}
@keyframes bottomRight {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(0%);
  }
}
.center-scroll__bottom div img {
  height: 60px;
}

.work {
  position: relative;
  z-index: 5;
}
.work-inner {
  max-width: 1100px;
  width: 85%;
  margin: 0 auto;
  padding-top: 100px;
}
.work-title {
  max-width: 1100px;
  font-size: calc(3vw + 5vh + 13vw);
  letter-spacing: -1rem;
  line-height: 0.8;
  text-align: center;
  margin: 0 auto 0 auto;
  overflow: hidden;
  white-space: nowrap;
}
@media screen and (max-width: 768px) {
  .work-title {
    margin: 0 auto 0 -1.5rem;
  }
}
.work-title span {
  display: inline-block;
}
.work-menu {
  padding: 10rem 0 15rem 0;
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  text-align: right;
}
@media screen and (max-width: 768px) {
  .work-menu {
    padding: 2rem 0 5rem 0;
  }
}
.work-menu__item {
  flex: none;
  display: flex;
  justify-content: flex-end;
  position: relative;
  padding: 0 1rem;
  border-bottom: solid 1px var(--main-color);
}
.work-menu__item:hover::before {
  opacity: 1;
  transform: translateX(0);
}
.work-menu__text {
  position: relative;
  padding: 0.5rem;
  display: flex;
  overflow: hidden;
  letter-spacing: -0.2rem;
  width: 100%;
}
.work-menu__text {
  padding: 1vh 0;
  font-size: clamp(22px, 5vw, 40px);
  transition: all 0.3s cubic-bezier(0.43, 0.59, 0.17, 0.97);
  background: linear-gradient(to right, #CCC, #CCC 50%, #2B2B2B 50%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 100%;
  background-position: 100%;
  transition: background-position 0.8s cubic-bezier(0.43, 0.59, 0.17, 0.97);
  text-decoration: none;
}
.work-menu__text:hover {
  background-position: 0 100%;
}
.work-menu__inner {
  display: block;
  font-weight: 300;
  white-space: nowrap;
  color: var(--color-menu);
  transition-property: color;
  transition-duration: 0.2s;
  transition-timing-function: ease-out;
}
.work-menu__sub {
  display: none;
  font-size: 1.5rem;
  letter-spacing: -0.05rem;
  white-space: nowrap;
  align-items: center;
  position: relative;
  padding-left: 3rem;
  color: var(--main-color);
  opacity: 0;
  transform: translateX(-1rem);
  transition: transform 0.3s, opacity 0.3s;
}
.work .work-menu__item:hover .work-menu__sub {
  opacity: 1;
  transform: translateY(0);
}
.work .work-menu__sub::before {
  content: "";
  position: absolute;
  left: -7rem;
  top: 50%;
  width: 80%;
  height: 1px;
  background: var(--main-color);
  transform-origin: 100% 0;
  transform: scale3d(0, 1, 1);
  transition: transform 0.3s;
}
.work .work-menu__item:hover .work-menu__sub::before {
  transform: scale3d(1, 1, 1);
}
.work .hover-reveal {
  position: absolute;
  z-index: 200;
  width: 500px;
  height: 333px;
  top: -100px;
  left: 0;
  pointer-events: none;
  opacity: 0;
}
@media screen and (max-width: 768px) {
  .work .hover-reveal {
    width: 300px;
    height: 150px;
  }
}
.work .hover-reveal__inner {
  overflow: hidden;
}
.work .hover-reveal__img,
.work .hover-reveal__inner {
  width: 100%;
  height: 100%;
  position: relative;
  border-radius: 10px;
}
.work .hover-reveal__img {
  background-size: cover;
  background-position: 50% 50%;
}
@media screen and (min-width: 53em) {
  .work .menu {
    padding-top: 20vh;
  }
  .work .work-menu__item {
    justify-content: initial;
  }
  .work .work-menu__sub {
    display: flex;
  }
}
.work-logo {
  fill: var(--main-color);
  width: 85vw;
  max-width: 1200px;
  margin: 0 auto;
  margin-bottom: 0.5rem;
}

body {
  transition: 0.5s linear;
  overflow-x: hidden;
}

body.is-scroll {
  background-color: var(--main-color);
  transition: 0.5s linear;
}
body.is-scroll .work-title {
  color: var(--sub-color);
}
body.is-scroll .work-menu__item {
  border-bottom: solid 1px var(--sub-color);
}
body.is-scroll .work-menu__text {
  background: linear-gradient(to right, #CCC, #CCC 50%, var(--sub-color) 50%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 100%;
  background-position: 100%;
}
body.is-scroll .work-menu__sub {
  color: var(--sub-color);
}
body.is-scroll .work-menu__sub::before {
  background: var(--sub-color);
}
body.is-scroll .center-scroll__top img {
  filter: var(--svg-sub-color);
}
body.is-scroll .center-scroll__bottom img {
  filter: var(--svg-sub-color);
}

.contact {
  padding-top: 200px;
}
.contact-inner {
  max-width: 1360px;
  padding-left: 6.9444444444vw;
  padding-right: 6.9444444444vw;
  margin: 0 auto ;
}
.contact-title {
  font-size: calc(12vw + 4vh + 6vmin);
  letter-spacing: -1.2rem;
  margin-left: -20px;
  text-align: center;
  line-height: 1;
  text-transform: uppercase;
}
.contact-sub {
  font-family: var(--jp-font-01);
  font-size: 25px;
  text-align: center;
  margin-bottom: 60px;
}
.contact-sub span {
  display: inline-block;
  position: relative;
  padding: 0 30px;
}
.contact-sub span::before, .contact-sub span::after {
  position: absolute;
  top: 50%;
  content: "";
  width: 2em;
  height: 1px;
  background-color: black;
}
.contact-sub span::before {
  left: 100%;
}
.contact-sub span::after {
  right: 100%;
}
.contact-text {
  font-family: var(--jp-font-01);
  font-size: 15px;
  max-width: 790px;
  letter-spacing: 0.3rem;
  line-height: 2;
  margin: 0 auto 120px auto;
}
.contact-thanks {
  font-size: 1.8rem;
  margin-bottom: 20px;
  text-align: center;
}

.bottom {
  margin-bottom: -60px;
  overflow: hidden;
}
@media screen and (max-width: 768px) {
  .bottom {
    margin-bottom: -25px;
  }
}

footer {
  background-color: var(--main-color);
}

footer * {
  color: var(--sub-color);
}

.footer-inner {
  padding: 50px;
  height: 400px;
  display: flex;
  flex-direction: column;
}
@media screen and (max-width: 768px) {
  .footer-inner {
    padding: 20px;
  }
}

.footer-top {
  display: flex;
  justify-content: space-between;
}
.footer-top__contact p {
  font-family: var(--jp-font-01);
  font-size: 1.3rem;
  margin-bottom: 5px;
}
.footer-top__contact___text {
  font-size: 1.4rem;
  width: 250px;
  position: relative;
}
.footer-top__contact___text::before {
  content: "";
  position: absolute;
  left: -15px;
  bottom: -52px;
  height: 3px;
  width: 15px;
  background-color: var(--sub-color);
}
.footer-top__contact___link {
  font-size: 5.7rem;
  line-height: 5.7rem;
  height: 5.7rem;
  overflow: hidden;
}
.footer-top__contact___link a:hover .letter {
  transform: translateY(-100%);
}
.footer-top__contact___link .letter {
  display: inline-block;
  transition: transform 0.6s cubic-bezier(0.76, 0, 0.24, 1);
}
.footer-top__contact___link .letter:nth-child(1) {
  transition-delay: 0.015s;
}
.footer-top__contact___link .letter:nth-child(2) {
  transition-delay: 0.03s;
}
.footer-top__contact___link .letter:nth-child(3) {
  transition-delay: 0.045s;
}
.footer-top__contact___link .letter:nth-child(4) {
  transition-delay: 0.06s;
}
.footer-top__contact___link .letter:nth-child(5) {
  transition-delay: 0.075s;
}
.footer-top__contact___link .letter:nth-child(6) {
  transition-delay: 0.09s;
}
.footer-top__contact___link .letter:nth-child(7) {
  transition-delay: 0.105s;
}
.footer-top__contact___link .letter:nth-child(8) {
  transition-delay: 0.12s;
}
.footer-top__pagetop a {
  width: 80px;
  height: 80px;
  margin-top: 40px;
  margin-right: 70px;
  overflow: hidden;
  display: block;
}
@media screen and (max-width: 768px) {
  .footer-top__pagetop a {
    display: none;
  }
}
.footer-top__pagetop a:hover svg {
  -webkit-animation-duration: 0.5s;
          animation-duration: 0.5s;
  -webkit-animation-timing-function: cubic-bezier(0.76, 0, 0.24, 1);
          animation-timing-function: cubic-bezier(0.76, 0, 0.24, 1);
}
.footer-top__pagetop a:hover svg {
  -webkit-animation-name: moveTop;
          animation-name: moveTop;
}
.footer-top__pagetop a svg {
  width: 80px;
  height: 80px;
  fill: none;
  stroke: #FFFFFF;
  stroke-width: 8;
}
@-webkit-keyframes moveTop {
  50% {
    transform: translateY(-100px);
  }
  51% {
    opacity: 0;
    transform: translateY(100px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes moveTop {
  50% {
    transform: translateY(-100px);
  }
  51% {
    opacity: 0;
    transform: translateY(100px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.footer-bottom {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.footer-bottom__copy {
  font-size: 1.4rem;
}
@media screen and (max-width: 768px) {
  .footer-bottom__copy {
    font-size: 1.2rem;
  }
}
.footer-bottom__link {
  text-align: right;
}
.footer-bottom__link___lead {
  font-size: 2.05rem;
  margin-bottom: 10px;
}
@media screen and (max-width: 768px) {
  .footer-bottom__link___lead {
    font-size: 1.7rem;
  }
}
.footer-bottom__link___text, .footer-bottom__link___text a {
  font-size: 1.15rem;
  margin-top: 3px;
  letter-spacing: 0.08rem;
}
@media screen and (max-width: 768px) {
  .footer-bottom__link___text, .footer-bottom__link___text a {
    font-size: 1rem;
  }
}
.footer-bottom__link___text a {
  position: relative;
  display: inline-block;
}
.footer-bottom__link___text a::before {
  position: absolute;
  top: 50%;
  left: 50%;
  content: "";
  width: 0;
  height: 1px;
  background-color: var(--sub-color);
  transition: 0.2s;
  transform: translateX(-50%);
}
.footer-bottom__link___text a:hover::before {
  width: 110%;
}

/* ----- Row（1フィールドのまとまり） ----- */

.contact-form{
    max-width: 620px;
    padding: 0 20px;
    margin: 0 auto 100px auto;
}

.cf-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 24px 0;

}

.cf-row:first-child { padding-top: 0; }
.cf-row:last-of-type { border-bottom: none; }


/* ----- Label ----- */
.cf-label {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #111;
    cursor: default;
}

.cf-label-en {
    font-size: 11px;
    font-weight: 400;
    color: #9ca3af;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}


/* ----- Badge（必須 / 任意） ----- */
.cf-badge {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 3px;
    letter-spacing: 0.03em;
    line-height: 1.6;
}

.cf-badge--req {
    background: #fee2e2;
    color: #b91c1c;
}

.cf-badge--opt {
    background: #f3f4f6;
    color: #6b7280;
}


/* ----- Field（input / select / textarea 共通） ----- */
.cf-field {
    width: 100%;
}

.cf-field input[type="text"],
.cf-field input[type="email"],
.cf-field input[type="url"],
.cf-field select,
.cf-field textarea {
    width: 100%;
    padding: 10px 14px;
    font-size: 15px;
    line-height: 1.5;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    color: #111;
    transition: border-color 0.18s, box-shadow 0.18s;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
}

.cf-field input:focus,
.cf-field select:focus,
.cf-field textarea:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.cf-field input::placeholder,
.cf-field textarea::placeholder {
    color: #c4c9d4;
}

/* select arrow */
.cf-field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 38px;
    cursor: pointer;
}

.cf-field textarea {
    resize: vertical;
    min-height: 140px;
}


/* ----- 姓 / 名 横並びレイアウト ----- */
.cf-field--name {
    display: flex;
    gap: 20px;
}

.cf-name-unit {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.cf-name-kana {
    font-size: 14px;
    color: #6b7280;
    white-space: nowrap;
    flex-shrink: 0;
}

.cf-name-unit input {
    flex: 1;
    min-width: 0;
}


/* ----- エラー表示 ----- */
.cf-error-summary {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 28px;
    font-size: 14px;
    color: #b91c1c;
    line-height: 1.7;
}

.cf-error {
    font-size: 13px;
    color: #b91c1c;
    margin-top: 6px;
}

.cf-field input.is-error,
.cf-field select.is-error,
.cf-field textarea.is-error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}


/* ----- ボタン ----- */
.cf-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    padding-top: 36px;
}

.cf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 44px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    letter-spacing: 0.04em;
    transition: background 0.18s, transform 0.1s;
}

.cf-btn--submit {
    background: #111;
    color: #fff;
}

.cf-btn--submit:hover { background: #333; }

.cf-btn--back {
    background: #f3f4f6;
    color: #374151;
}

.cf-btn--back:hover { background: #e5e7eb; }

.cf-btn:active { transform: scale(0.97); }


/* ----- 確認画面テーブル ----- */
.cf-confirm {
    width: 100%;
}

.cf-confirm-row {
    display: flex;
    gap: 24px;
    padding: 20px 0;
    border-bottom: 1px solid #e5e7eb;
}

.cf-confirm-row:last-of-type { border-bottom: none; }

.cf-confirm-term {
    flex: 0 0 160px;
    font-size: 13px;
    color: #6b7280;
    padding-top: 2px;
    line-height: 1.5;
}

.cf-confirm-term-en {
    display: block;
    font-size: 11px;
    color: #9ca3af;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-top: 2px;
}

.cf-confirm-desc {
    flex: 1;
    font-size: 15px;
    color: #111;
    line-height: 1.7;
    word-break: break-all;
    min-width: 0;
}


/* ----- レスポンシブ ----- */
@media (max-width: 600px) {
    .cf-field--name {
        flex-direction: column;
        gap: 12px;
    }

    .cf-confirm-row {
        flex-direction: column;
        gap: 4px;
    }

    .cf-confirm-term {
        flex: none;
        font-size: 12px;
    }

    .cf-actions {
        flex-direction: column-reverse;
        gap: 12px;
    }

    .cf-btn {
        width: 100%;
    }
}