/* Front generic sections
--------------------------------------------- */
.front-page {
  background: #0f0f0f;
  color: #f7f7f7;
  font-family: "Inter", "Noto Sans JP", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

.front-section {
  position: relative;
  padding: clamp(80px, 10vw, 150px) 0;
  background: #0f0f0f;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.front-section:nth-of-type(even) {
  background: #151515;
}

.front-section__inner {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.front-section__header {
  margin-bottom: clamp(36px, 5vw, 64px);
}

.front-section__header--row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
}

.front-section__eyebrow {
  margin: 0 0 14px;
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  line-height: 1.6;
}

.front-section__title {
  margin: 0;
  color: #fff;
  font-size: clamp(30px, 5vw, 64px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0.08em;
}

.front-section__body {
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  line-height: 2.1;
  letter-spacing: 0.04em;
}

.front-section__body--split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 88px);
}

.front-section__lead {
  margin: 0;
  color: #fff;
  font-size: 13px;
  line-height: 1.8;
}

.front-section__link,
.front-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  padding: 14px 22px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-decoration: none;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

.front-section__link:hover,
.front-button:hover {
  opacity: 0.78;
}

.front-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.16);
  margin-bottom: 50px;
}

.front-work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(18px, 2.4vw, 30px);
  row-gap: clamp(22px, 3vw, 34px);
  background: transparent;
  margin-bottom: 50px;
}

.front-card,
.front-work-card {
  background: #0f0f0f;
}

.front-work-card {
  width: 100%;
  min-width: 0;
}

.front-card {
  min-height: 280px;
  padding: clamp(28px, 4vw, 44px);
}

.front-card__number {
  margin: 0 0 38px;
  color: #FFFFFF;
  font-size: 12px;
  letter-spacing: 0.18em;
}

.front-card__title {
  margin: 0 0 18px;
  color: #fff;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.12em;
}

.front-card p:not(.front-card__number) {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 2;
}

.front-work-card__link {
  display: block;
  width: 100%;
  min-height: 100%;
  color: inherit;
  text-decoration: none;
  background: transparent;
}

.front-work-card__thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #202020;
  color: rgba(255, 255, 255, 0.4);
  font-size: 12px;
  letter-spacing: 0.16em;
}

.front-work-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.front-work-card__link:hover .front-work-card__thumb img {
  transform: scale(1.04);
}

.front-work-card__body {
  padding: 14px 0 0;
}

.front-work-card__date,
.front-news-item time {
  color: #FFFFFF;
  font-size: 12px;
  letter-spacing: 0.14em;
  line-height: 2.6;
}

.front-work-card__title {
  margin: 10px 0 0;
  color: #fff;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
}

.front-news-list {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.front-news-item a {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 32px;
  padding: 28px 0;
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.front-news-item h3 {
  margin: 0;
  color: #fff;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.7;
}

.front-placeholder {
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.68);
  line-height: 2;
  letter-spacing: 0.04em;
}

.front-placeholder p {
  margin: 0;
  font-size: 13px;
}

.front-contact-box {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}

.front-contact-box__body p {
  margin: 0 0 32px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  line-height: 2;
  letter-spacing: 0.04em;
}

/* About section background parallax
--------------------------------------------- */
.front-section--about {
  position: relative;
  overflow: hidden;
  min-height: 50svh;
  background: #0f0f0f;
  isolation: isolate;
}

.front-section--about__bg {
  position: absolute;
  inset: -38vh 0;
  z-index: 0;
  opacity: 1;
  filter: brightness(1.45) contrast(1.15) saturate(1.12);
  will-change: transform;
  transform: translate3d(0, 0, 0) scale(1.015);
  pointer-events: none;
}

.front-section--about__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.front-section--about::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(15, 15, 15, 0.76) 0%, rgba(15, 15, 15, 0.34) 48%, rgba(15, 15, 15, 0.72) 100%),
    linear-gradient(180deg, rgba(15, 15, 15, 0.82) 0%, rgba(15, 15, 15, 0.20) 45%, rgba(15, 15, 15, 0.88) 100%);
  pointer-events: none;
}

.front-section--about .front-section__inner {
  position: relative;
  z-index: 2;
  min-height: 50svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 768px) {

  .front-section--about {
    min-height: 50svh;
  }

  .front-section--about__bg {
    inset: 0;
    opacity: 1;
    transform: none;
  }

  .front-section--about .front-section__inner {
    min-height: 50svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .front-section {
    padding: 72px 0;
  }

  .front-section__inner {
    width: min(100% - 32px, 100%);
  }

  .front-section__header--row,
  .front-section__body--split,
  .front-contact-box {
    display: block;
  }


  /* Smartphone center alignment: front WORKS / NEWS headers */
  .front-section--works .front-section__header,
  .front-section--news .front-section__header {
    text-align: center;
  }

  .front-section--works .front-section__header--row,
  .front-section--news .front-section__header--row {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
  }

  .front-section--works .front-section__header--row > div,
  .front-section--news .front-section__header--row > div {
    width: 100%;
    text-align: center;
  }

  .front-section--works .front-section__link,
  .front-section--news .front-section__link {
    margin-left: auto;
    margin-right: auto;
  }

  .front-section__link {
    margin-top: 28px;
  }

  .front-card-grid,
  .front-work-grid {
    grid-template-columns: 1fr;
  }

  .front-work-grid {
    row-gap: 28px;
  }

  .front-card {
    min-height: auto;
  }

  .front-news-item a {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 24px 0;
  }
}

/* CONTACT form center layout
--------------------------------------------- */
.front-section--contact .front-contact-box--center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(32px, 5vw, 56px);
  text-align: center;
}

.front-contact-box__head {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
}

.front-contact-box__lead {
  max-width: 680px;
  margin: 24px auto 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  line-height: 2;
  letter-spacing: 0.04em;
}

.front-contact-box--center .front-contact-box__body {
  width: min(100%, 760px);
  margin: 0 auto;
}

.front-contact-form {
  width: 100%;
  max-width: 100%;
  display: grid;
  gap: 18px;
  text-align: left;
  box-sizing: border-box;
}

.front-contact-form *,
.front-contact-form *::before,
.front-contact-form *::after {
  box-sizing: border-box;
}

.front-contact-form__field {
  display: grid;
  gap: 8px;
}

.front-contact-form label {
  color: rgba(255, 255, 255, 0.84);
  font-size: 12px;
  letter-spacing: 0.12em;
  line-height: 1.7;
}

.front-contact-form label span {
  margin-left: 0.6em;
  color: rgba(255, 255, 255, 0.48);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.front-contact-form input,
.front-contact-form textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font: inherit;
  font-size: 13px;
  line-height: 1.8;
  letter-spacing: 0.04em;
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.front-contact-form textarea {
  resize: vertical;
  min-height: 180px;
}

.front-contact-form input:focus,
.front-contact-form textarea:focus {
  border-color: rgba(255, 255, 255, 0.56);
  background: rgba(255, 255, 255, 0.07);
}

.front-contact-form__submit {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.front-contact-form__submit button {
  min-width: 180px;
      border: 1px solid rgba(255, 255, 255, 0.26);
  background: transparent;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  letter-spacing: 0.18em;
  padding: 15px 28px;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

.front-contact-form__submit button:hover {
  background: #fff;
  color: #111;
  border-color: #fff;
}

.front-contact-form__message {
  margin: 0 0 8px;
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.8;
  text-align: center;
}

.front-contact-form__message--success {
  color: #fff;
  background: rgba(255, 255, 255, 0.10);
}

.front-contact-form__message--error {
  color: #fff;
  background: rgba(180, 40, 40, 0.32);
}

.front-contact-form__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 768px) {
  .front-section--contact .front-section__inner {
    width: 90%;
    max-width: none;
    padding-left: 0;
    padding-right: 0;
  }

  .front-contact-box--center .front-contact-box__body {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .front-contact-form input,
  .front-contact-form textarea {
    padding-left: 14px;
    padding-right: 14px;
  }

  .front-contact-form__submit button {
    width: 100%;
    min-width: 0;
  }
}

/* Service flow
--------------------------------------------- */
.front-service-note {
  margin: -18px 0 clamp(64px, 8vw, 110px);
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 2;
  letter-spacing: 0.04em;
}

.front-service-flow {
  position: relative;
  overflow: hidden;
  margin-top: clamp(72px, 9vw, 130px);
  padding: clamp(64px, 8vw, 110px);
  background: #0f0f0f;
  isolation: isolate;
}

.front-service-flow__bg {
  position: absolute;
  inset: -38vh 0;
  z-index: 0;
  opacity: 1;
  filter: brightness(1.45) contrast(1.15) saturate(1.12);
  will-change: transform;
  transform: translate3d(0, 0, 0) scale(1.015);
  pointer-events: none;
}

.front-service-flow__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.front-service-flow::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(15, 15, 15, 0.86) 0%, rgba(15, 15, 15, 0.42) 48%, rgba(15, 15, 15, 0.84) 100%),
    linear-gradient(180deg, rgba(15, 15, 15, 0.88) 0%, rgba(15, 15, 15, 0.30) 45%, rgba(15, 15, 15, 0.92) 100%);
  pointer-events: none;
}

.front-service-flow__header,
.front-service-flow__list {
  position: relative;
  z-index: 2;
}

.front-service-flow__header {
  max-width: 760px;
  margin: 0 0 clamp(36px, 5vw, 64px);
}

.front-service-flow__title {
  margin: 0;
  color: #FFFFFF;
  font-size: clamp(28px, 4.2vw, 52px);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: 0.14em;
}

.front-service-flow__lead {
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 2;
  letter-spacing: 0.04em;
}

.front-service-flow__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: rgba(255, 255, 255, 0.16);
}

.front-service-flow__item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: clamp(18px, 3vw, 32px);
  min-height: 190px;
  padding: clamp(26px, 4vw, 42px);
  background: rgba(15, 15, 15, 0.78);
  backdrop-filter: blur(2px);
}

.front-service-flow__number {
  color: #FFFFFF;
  font-size: 12px;
  letter-spacing: 0.18em;
  line-height: 1.4;
}

.front-service-flow__body h4 {
  margin: 0 0 18px;
  color: #FFFFFF;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.08em;
}

.front-service-flow__body p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 2;
  letter-spacing: 0.04em;
}

@media (max-width: 768px) {
  .front-service-note {
    margin: -12px 0 64px;
    text-align: center;
  }

  .front-service-flow {
    margin-top: 72px;
    padding: 56px 18px;
  }

  .front-service-flow__bg {
    inset: 0;
    transform: none;
  }

  .front-service-flow__header {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  .front-service-flow__list {
    grid-template-columns: 1fr;
  }

  .front-service-flow__item {
    grid-template-columns: 1fr;
    gap: 18px;
    min-height: auto;
    padding: 30px 24px;
    text-align: center;
  }

  .front-service-flow__number {
    margin: 0 auto;
  }
}

/* Move background parallax from ABOUT to SERVICE
--------------------------------------------- */
.front-section--about {
  min-height: auto;
  background: #0f0f0f;
  isolation: auto;
}

.front-section--about::before,
.front-section--about__bg {
  display: none;
}

.front-section--about .front-section__inner {
  min-height: auto;
  display: block;
}

.front-section--service {
  position: relative;
  overflow: hidden;
  background: #0f0f0f;
  isolation: isolate;
  --service-parallax-y: 0px;
}

.front-section--service__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 1;
  overflow: hidden;
  transform: translateZ(0);
  backface-visibility: hidden;
  pointer-events: none;
}

.front-section--service__bg img {
  position: absolute;
  left: 0;
  top: -48vh;
  width: 100%;
  height: calc(100% + 96vh);
  object-fit: cover;
  object-position: center center;
  filter: brightness(1.5) contrast(1.2) saturate(1.16);
  transform: translate3d(0, var(--service-parallax-y), 0) scale(1.015);
  transform-origin: center center;
  transition: none !important;
  will-change: transform;
  backface-visibility: hidden;
}

.front-section--service::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  background: rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

.front-section--service .front-section__inner {
  position: relative;
  z-index: 2;
}

.front-section--service .front-card,
.front-section--service .front-service-flow {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(1px);
}

.front-service-flow {
  overflow: visible;
}

.front-service-flow::before,
.front-service-flow__bg {
  display: none;
}

@media (max-width: 768px) {
  .front-section--about {
    min-height: auto;
  }

  .front-section--about .front-section__inner {
    min-height: auto;
    display: block;
  }

  .front-section--service__bg {
    inset: 0;
  }

  .front-section--service__bg img {
    top: -70vh;
    height: calc(100% + 140vh);
    transform: translate3d(0, var(--service-parallax-y), 0) scale(1.012);
  }
}

/* SERVICE card overlap fix */
.front-section--service .front-card-grid {
  gap: clamp(16px, 2.4vw, 28px);
  background: transparent;
  align-items: stretch;
}

.front-section--service .front-card {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow: hidden;
  word-break: normal;
  overflow-wrap: anywhere;
}

.front-section--service .front-card__title,
.front-section--service .front-card p {
  max-width: 100%;
}

@media (max-width: 1024px) {
  .front-section--service .front-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .front-section--service .front-card-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}


/* =============================================================
   Contact Form 7 対応 — ダークテーマ維持
   ============================================================= */

/* CF7ラッパーをgridレイアウトから透過させる */
.front-contact-form > .wpcf7 {
  display: contents;
}
.front-contact-form .wpcf7-form {
  display: contents;
}

/* wpcf7-form-control-wrap の余分なpaddingをリセット */
.front-contact-form .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
  padding-bottom: 0;
}

/* CF7入力欄: form.cssのeeeeee背景を強制上書き */
.front-contact-form div .wpcf7-text,
.front-contact-form div .wpcf7-textarea {
  background: rgba(255, 255, 255, 0.04);
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  border-radius: 0;
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.8;
  letter-spacing: 0.04em;
  width: 100%;
  display: block;
}
.front-contact-form div .wpcf7-text:focus,
.front-contact-form div .wpcf7-textarea:focus {
  border-color: rgba(255, 255, 255, 0.56);
  background: rgba(255, 255, 255, 0.07);
  background-color: rgba(255, 255, 255, 0.07);
  outline: none;
}

/* プレースホルダー色 */
.front-contact-form .wpcf7-text::placeholder,
.front-contact-form .wpcf7-textarea::placeholder {
  color: rgba(255, 255, 255, 0.28);
}

/* CF7 submit button */
.front-contact-form__submit input[type='submit'],
.cf7-confirm-actions input[type='submit'] {
  -webkit-appearance: none;
  min-width: 180px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: transparent;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  letter-spacing: 0.18em;
  padding: 15px 28px;
  border-radius: 0;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}
.front-contact-form__submit input[type='submit']:hover,
.cf7-confirm-actions input[type='submit']:hover {
  background: #fff;
  color: #111;
  border-color: #fff;
}

/* CF7スピナー */
.front-contact-form .wpcf7-spinner {
  display: block;
  margin: 8px auto 0;
}

/* CF7バリデーションエラー */
.front-contact-form .wpcf7-not-valid-tip {
  color: rgba(255, 100, 100, 0.9);
  font-size: 11px;
  margin-top: 4px;
  display: block;
}

/* CF7送信結果メッセージ */
.front-contact-form .wpcf7-response-output {
  margin: 0 0 16px;
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.8;
  text-align: center;
  border: none !important;
}
.front-contact-form .wpcf7-form.sent .wpcf7-response-output {
  color: #fff;
  background: rgba(255, 255, 255, 0.10);
}
.front-contact-form .wpcf7-form.failed .wpcf7-response-output,
.front-contact-form .wpcf7-form.invalid .wpcf7-response-output,
.front-contact-form .wpcf7-form.spam .wpcf7-response-output {
  color: #fff;
  background: rgba(180, 40, 40, 0.32);
}

/* SP対応 */
@media (max-width: 768px) {
  .front-contact-form__submit input[type='submit'] {
    width: 100%;
    min-width: 0;
  }
}
