/* ==========================================================
   AIクリエイティブ（template-ai-creative.php）
   ========================================================== */

.ac-page {
  --ac-accent: #111214;
  --ac-ink: #111214;
  --ac-body: #3A3B40;
  --ac-muted: #55565B;
  --ac-bg: #F5F4F0;
  --ac-line: #DAD8D2;
  --ac-placeholder: #E6E4DE;
  --ac-dark-text: #C9CACE;
  --ac-dark-label: #E3E2DD;
  --ac-dark-line: #3A3B40;
  --ac-gray: #A9AAAE;
  --ac-font: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
  --ac-en: 'Inter Tight', sans-serif;

  font-family: var(--ac-font);
  color: var(--ac-ink);
  background: var(--ac-bg);
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: normal;
  font-feature-settings: 'palt';
}

.ac-page *,
.ac-page *::before,
.ac-page *::after {
  box-sizing: border-box;
}

.ac-page p,
.ac-page h1,
.ac-page h2,
.ac-page h3 {
  height: auto; /* 追加CSSの h2 { height: 80px } を打ち消す */
  margin: 0;
  font-family: var(--ac-font);
  letter-spacing: normal;
  text-transform: none;
}

.ac-page p {
  font-size: 16px;
  line-height: 1.7;
  color: inherit;
}

.ac-page a {
  color: var(--ac-ink);
}

.ac-page a:hover {
  color: #C93A1F;
}

.ac-page img {
  display: block;
  max-width: 100%;
}

/* デザインは content-box で中身 1240px のため、padding 分を足す */
.ac-inner {
  max-width: 1288px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ---------- 共通パーツ ---------- */

.ac-section {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-top: 88px;
  padding-bottom: 88px;
}

.ac-section--lg {
  gap: 48px;
  padding-top: 104px;
  padding-bottom: 104px;
}

.ac-band {
  background: #FFFFFF;
  border-top: 1px solid var(--ac-line);
  border-bottom: 1px solid var(--ac-line);
}

.ac-band--top {
  border-bottom: 0;
}

.ac-dark {
  background: var(--ac-ink);
  color: #F5F4F0;
}

.ac-section-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ac-page .ac-label {
  font-family: var(--ac-en);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.7;
  letter-spacing: 0.18em;
  color: var(--ac-accent);
}

.ac-page .ac-label--muted {
  color: var(--ac-muted);
}

.ac-page .ac-label--light {
  color: var(--ac-dark-label);
}

.ac-page .ac-heading {
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 900;
  line-height: 1.35;
  color: inherit;
}

.ac-page .ac-heading--lg {
  font-size: clamp(30px, 3.8vw, 48px);
  line-height: 1.3;
}

.ac-page .ac-lead {
  font-size: 16px;
  color: var(--ac-body);
}

.ac-dark .ac-lead {
  color: var(--ac-dark-text);
}

.ac-page .ac-text {
  font-size: 15px;
  color: var(--ac-muted);
}

.ac-page .ac-card-title {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.7;
  color: var(--ac-ink);
}

.ac-page .ac-card-title--lg {
  font-size: 20px;
}

.ac-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.ac-page .ac-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--ac-accent);
  border-radius: 2px;
  background: var(--ac-accent);
  color: #FFFFFF;
  font-family: var(--ac-font);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  transition: opacity 0.2s;
}

.ac-page .ac-btn:hover {
  opacity: 0.8;
  color: #FFFFFF;
}

.ac-page .ac-btn--lg {
  min-height: 56px;
  padding: 0 32px;
  font-size: 16px;
}

.ac-page .ac-btn--outline,
.ac-page .ac-btn--outline:hover {
  padding: 0 28px;
  border-color: var(--ac-ink);
  background: transparent;
  color: var(--ac-ink);
}

.ac-page .ac-btn--white,
.ac-page .ac-btn--white:hover {
  border-color: #FFFFFF;
  background: #FFFFFF;
  color: var(--ac-ink);
}

/* ---------- ページ内ナビ ---------- */

/* 親テーマの body / .edgt-wrapper-inner の overflow: hidden があると sticky が効かないため clip にする */
body.page-template-template-ai-creative {
  overflow-x: clip !important; /* 親テーマは overflow-x: hidden !important */
}

.page-template-template-ai-creative .edgt-wrapper .edgt-wrapper-inner {
  overflow: clip;
}

/* PC はスクロール時に出る固定ヘッダー（高さ 69px）の下に追従させる */
.ac-nav {
  position: sticky;
  top: 69px;
  z-index: 20;
  background: rgba(245, 244, 240, 0.94);
  border-bottom: 1px solid var(--ac-line);
}

.ac-nav__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.ac-nav__tagline {
  font-size: 12px;
  color: var(--ac-muted);
}

.ac-nav__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  font-size: 14px;
}

.ac-page .ac-nav__links a:not(.ac-btn) {
  text-decoration: none;
}

/* ページ内リンクで見出しが固定ヘッダー＋ナビの下に隠れないようにする */
.ac-page [id] {
  scroll-margin-top: 142px;
}

/* ログイン中はアドミンバー（32px）の下に固定ヘッダーが出るため、その分下げる */
.admin-bar .ac-nav {
  top: 101px;
}

.admin-bar .ac-page [id] {
  scroll-margin-top: 174px;
}

/* 1024px 以下はテーマのモバイルヘッダーが「下スクロールで隠れ、上スクロールで出る」動きをするため、
   ナビは上端に追従させ、ヘッダーが出ている間だけ assets/js/ai-creative.js が top を下げる。
   1 行に収めて高さを抑える（見出しを隠さないため） */
@media (max-width: 1024px) {
  .ac-nav,
  .admin-bar .ac-nav {
    top: 0;
    transition: top 0.2s;
  }

  .ac-nav__inner {
    flex-wrap: nowrap;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .ac-nav__tagline {
    display: none;
  }

  .ac-nav__links {
    flex-wrap: nowrap;
    gap: 20px;
    min-width: 0;
    margin-left: auto;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
  }

  .ac-nav__links::-webkit-scrollbar {
    display: none;
  }

  .ac-page .ac-nav__links .ac-btn {
    flex: none;
    min-height: 40px;
  }

  .ac-page [id],
  .admin-bar .ac-page [id] {
    scroll-margin-top: 64px;
  }
}

@media (max-width: 600px) {
  .ac-nav__inner {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* ---------- Hero ---------- */

.ac-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 56px;
  padding-top: 72px;
  padding-bottom: 88px;
}

.ac-hero__bg {
  display: none;
}

.ac-hero__copy {
  display: flex;
  flex-direction: column;
  gap: 28px;
  flex: 1 1 480px;
  min-width: 0;
}

.ac-page .ac-hero__title {
  font-size: clamp(36px, 4.4vw, 56px);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.01em !important; /* 追加CSSの h1 { letter-spacing: 0 !important } に勝たせる */
  color: var(--ac-ink);
}

.ac-hero__title span {
  display: inline-block;
  margin: 0 0.04em;
  padding: 0 0.12em;
  background: var(--ac-ink);
  color: #FFFFFF;
}

.ac-page .ac-hero__lead {
  max-width: 34em;
  font-size: 18px;
  color: var(--ac-body);
}

.ac-hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding-top: 8px;
  border-top: 1px solid var(--ac-line);
  font-size: 13px;
  color: var(--ac-body);
}

.ac-hero__collage {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  flex: 1 1 520px;
  min-width: 0;
}

.ac-shot {
  position: relative;
  overflow: hidden;
  min-height: 254px;
  background: var(--ac-placeholder);
}

.ac-shot--main {
  grid-row: span 2;
  min-height: 520px;
}

.ac-shot--dark {
  background: #1E1F22;
}

.ac-page .ac-shot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ac-shot__cap {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 8px 12px;
  background: var(--ac-bg);
  font-size: 12px;
  line-height: 1.5;
}

.ac-shot--main .ac-shot__cap {
  left: 14px;
  bottom: 14px;
}

.ac-shot__cap--dark {
  background: var(--ac-ink);
  color: var(--ac-bg);
}

.ac-shot__en {
  font-family: var(--ac-en);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ac-accent);
}

.ac-shot__cap--dark .ac-shot__en {
  color: var(--ac-gray);
}

/* ---------- Problem ---------- */

.ac-problem__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: var(--ac-line);
  border: 1px solid var(--ac-line);
}

.ac-problem__item {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 32px;
  background: #FFFFFF;
}

.ac-problem__num {
  font-family: var(--ac-en);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.7;
  color: #C8C6BF;
}

/* ---------- Hybrid pipeline ---------- */

.ac-pipeline {
  gap: 56px;
}

.ac-pipeline__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px 64px;
}

.ac-pipeline__title {
  flex: 1 1 520px;
  min-width: 0;
  gap: 16px;
}

.ac-page .ac-pipeline__lead {
  flex: 1 1 400px;
  min-width: 0;
  color: var(--ac-dark-text);
}

.ac-pipeline__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.ac-stage {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px;
  border: 1px solid var(--ac-dark-line);
}

.ac-stage--active {
  border-color: #F5F4F0;
  background: #1A1B1E;
}

.ac-stage__img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--ac-bg);
}

.ac-page .ac-stage__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ac-page .ac-stage__img .ac-stage__img--top {
  object-position: center 20%;
}

.ac-stage__pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  aspect-ratio: 4 / 3;
}

.ac-stage__tile {
  position: relative;
  overflow: hidden;
}

.ac-page .ac-stage__tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ac-stage__tile span {
  position: absolute;
  left: 6px;
  bottom: 6px;
  padding: 2px 8px;
  background: var(--ac-ink);
  color: var(--ac-bg);
  font-size: 11px;
}

.ac-stage__label {
  font-family: var(--ac-en);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--ac-gray);
}

.ac-stage--active .ac-stage__label {
  color: var(--ac-dark-label);
}

.ac-page .ac-stage__title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.7;
  color: #F5F4F0;
}

.ac-page .ac-stage__text {
  font-size: 15px;
  color: var(--ac-dark-text);
}

/* ---------- AI art direction（デモ） ---------- */

.ac-demo {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 56px;
}

.ac-demo__copy {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1 1 420px;
  min-width: 0;
}

.ac-demo__app {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1 1 610px; /* デザインは content-box で 560px + padding + border */
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--ac-line);
  background: #FFFFFF;
}

.ac-demo__bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  color: var(--ac-muted);
}

.ac-demo__bar-en {
  font-family: var(--ac-en);
  letter-spacing: 0.1em;
}

.ac-demo__request {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  padding: 14px 16px;
  background: var(--ac-bg);
  font-size: 15px;
}

.ac-demo__request-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--ac-accent);
}

.ac-demo__shots {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ac-page .ac-demo__shots img {
  width: 100%;
  height: auto;
  border: 1px solid var(--ac-line);
}

.ac-demo__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 8px;
  margin-top: 4px;
}

.ac-pick {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 180px;
  min-width: 0;
  min-height: 60px;
  padding: 0 14px;
  border: 3px solid;
  background: #FFFFFF;
  color: var(--ac-ink);
}

.ac-pick--blue {
  border-color: #2457D6;
}

.ac-pick--red {
  border-color: #D7302A;
}

.ac-pick--go {
  justify-content: center;
  gap: 8px;
  flex-basis: 140px;
  border: 0;
  background: var(--ac-ink);
  color: #FFFFFF;
}

.ac-pick__check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 900;
}

.ac-pick--blue .ac-pick__check {
  background: #2457D6;
}

.ac-pick--red .ac-pick__check {
  background: #D7302A;
}

.ac-pick__text {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}

.ac-pick--blue .ac-pick__id {
  color: #2457D6;
}

.ac-pick--red .ac-pick__id {
  color: #C42820;
}

.ac-pick__arrow {
  font-size: 20px;
  font-weight: 700;
}

/* ---------- Use cases ---------- */

.ac-usecase__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.ac-usecase {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
}

.ac-usecase__img {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--ac-placeholder);
}

.ac-page .ac-usecase__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ac-usecase__cap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ac-usecase__en {
  font-family: var(--ac-en);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--ac-muted);
}

.ac-usecase__en--accent {
  color: var(--ac-accent);
}

.ac-usecase__title {
  font-size: 18px;
}

.ac-usecase__text {
  font-size: 14px;
  color: var(--ac-muted);
}

/* ---------- Works ---------- */

.ac-works {
  gap: 40px;
}

.ac-page .ac-works .ac-heading {
  font-size: clamp(26px, 3vw, 40px);
  white-space: nowrap;
}

.ac-page .ac-works .ac-lead {
  font-size: 15px;
  color: var(--ac-muted);
}

.ac-works__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.ac-page .ac-works__grid img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

/* ---------- Quality ---------- */

.ac-quality__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.ac-quality {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px;
  border: 1px solid var(--ac-line);
  background: #FFFFFF;
}

.ac-quality__img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  margin: -32px -32px 8px;
}

.ac-page .ac-quality__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ac-quality__num {
  font-family: var(--ac-en);
  font-size: 44px;
  font-weight: 700;
  line-height: 1;
  color: var(--ac-accent);
}

.ac-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
}

.ac-chips span {
  padding: 4px 10px;
  background: var(--ac-bg);
}

/* ---------- 中間CTA ---------- */

.ac-cta {
  background: var(--ac-accent);
  color: #FFFFFF;
}

.ac-cta__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 56px;
  padding-bottom: 56px;
}

.ac-cta__copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1 1 520px;
  min-width: 0;
  font-size: 15px;
}

.ac-cta__title {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 900;
  line-height: 1.4;
}

/* ---------- Workflow ---------- */

.ac-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin: 0;
  padding: 0;
  border-top: 2px solid var(--ac-ink);
  list-style: none;
}

.ac-step {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 24px 20px 24px 0;
  border-bottom: 1px solid var(--ac-line);
}

.ac-step__num {
  font-family: var(--ac-en);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--ac-accent);
}

.ac-step__title {
  font-size: 18px;
}

.ac-step__text {
  font-size: 14px;
  color: var(--ac-muted);
}

/* ---------- Governance ---------- */

.ac-governance {
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
}

.ac-governance__head {
  flex: 1 1 400px;
  min-width: 0;
  gap: 16px;
}

.ac-governance__list {
  display: flex;
  flex-direction: column;
  flex: 1 1 560px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--ac-dark-line);
  list-style: none;
}

.ac-governance__list li {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin: 0;
  padding: 22px 0;
  border-bottom: 1px solid var(--ac-dark-line);
  font-size: 17px;
}

.ac-governance__num {
  font-family: var(--ac-en);
  font-size: 13px;
  color: var(--ac-dark-label);
}

/* ---------- FAQ ---------- */

.ac-faq {
  gap: 40px;
  max-width: 1008px; /* 中身 960px + padding（.ac-inner と同じ理由） */
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.ac-faq__list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--ac-line);
}

.ac-faq__item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px 0;
  border-bottom: 1px solid var(--ac-line);
}

.ac-faq__q {
  font-size: 17px;
}

/* ---------- お問い合わせ ---------- */

.ac-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
}

.ac-contact__info {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1 1 360px;
  min-width: 0;
}

.ac-contact__points {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  background: var(--ac-bg);
  font-size: 14px;
}

.ac-contact__form {
  flex: 1 1 560px;
  min-width: 0;
}

.ac-page .ac-contact__points a,
.ac-page .ac-contact__form .wpcf7-acceptance a {
  text-decoration: underline;
}

/* Contact Form 7 のフォームをデザインに合わせる */
.ac-contact__form .wpcf7 p {
  margin: 0;
}

.ac-contact__form .wpcf7 br {
  display: none;
}

.ac-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.ac-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.7;
  color: var(--ac-ink);
}

.ac-field--full,
.ac-form__foot {
  grid-column: 1 / -1;
}

.ac-req,
.ac-any {
  font-size: 12px;
  font-weight: 400;
}

.ac-req {
  color: var(--ac-accent);
}

.ac-any {
  color: var(--ac-muted);
}

.ac-contact__form .wpcf7-form-control-wrap {
  display: block;
}

.ac-contact__form .wpcf7 input[type='text'],
.ac-contact__form .wpcf7 input[type='email'],
.ac-contact__form .wpcf7 input[type='tel'],
.ac-contact__form .wpcf7 select,
.ac-contact__form .wpcf7 textarea {
  width: 100%;
  min-height: 48px;
  margin: 0 !important;
  padding: 0 14px;
  border: 1px solid #B9B7B0;
  border-radius: 2px;
  background: #FFFFFF;
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: normal;
  color: var(--ac-ink);
}

/* テーマで appearance: none になり矢印が消えるため、矢印を描き直す */
.ac-contact__form .wpcf7 select {
  -webkit-appearance: none;
  appearance: none;
  padding: 0 40px 0 12px;
  background: #FFFFFF url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23111214' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 14px center;
  cursor: pointer;
}

.ac-contact__form .wpcf7 textarea {
  height: auto;
  padding: 12px 14px;
  resize: vertical;
}

.ac-form__foot {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ac-contact__form .wpcf7-list-item {
  margin: 0;
}

.ac-contact__form .wpcf7-acceptance label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 14px;
  font-weight: 400;
}

.ac-contact__form .wpcf7-acceptance input[type='checkbox'] {
  width: 20px;
  height: 20px;
  margin: 0;
}

.ac-contact__form .wpcf7 input[type='submit'] {
  width: 100%;
  min-height: 60px;
  margin: 0;
  border: 0;
  border-radius: 2px;
  background: var(--ac-accent);
  color: #FFFFFF;
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: normal;
  cursor: pointer;
  transition: opacity 0.2s;
}

.ac-contact__form .wpcf7 input[type='submit']:hover {
  opacity: 0.8;
}

.ac-contact__form .wpcf7 input[type='submit']:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.ac-form__note {
  font-size: 12px;
  color: var(--ac-muted);
}

.ac-page .ac-form__note a {
  font-size: 12px;
}

/* ---------- レスポンシブ ---------- */

@media (max-width: 760px) {
  /* SP はヒーロー画像を背景に敷き、コラージュを隠す */
  .ac-hero {
    position: relative;
    overflow: hidden;
    align-items: flex-end;
    min-height: 660px;
    padding: 140px 20px 36px;
    color: #FFFFFF;
  }

  .ac-hero__bg {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 0;
  }

  .ac-page .ac-hero__bg img {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center 18%;
  }

  .ac-hero__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(17, 18, 20, 0.05) 0%, rgba(17, 18, 20, 0.35) 38%, rgba(17, 18, 20, 0.88) 100%);
  }

  .ac-hero__copy {
    position: relative;
    z-index: 1;
    gap: 18px;
  }

  .ac-hero__collage {
    display: none;
  }

  .ac-page .ac-hero__eyebrow {
    font-size: 11px;
    color: var(--ac-dark-label);
  }

  .ac-page .ac-hero__title {
    font-size: 31px;
    color: #FFFFFF;
  }

  .ac-hero__title span {
    background: #FFFFFF;
    color: var(--ac-ink);
  }

  .ac-page .ac-hero__lead {
    font-size: 15px;
    color: var(--ac-dark-label);
  }

  .ac-page .ac-hero__btn1,
  .ac-page .ac-hero__btn1:hover {
    flex: 1 1 100%;
    border-color: #FFFFFF;
    background: #FFFFFF;
    color: var(--ac-ink);
  }

  .ac-page .ac-hero__btn2,
  .ac-page .ac-hero__btn2:hover {
    flex: 1 1 100%;
    border-color: #FFFFFF;
    color: #FFFFFF;
  }

  .ac-hero__trust {
    border-top-color: rgba(255, 255, 255, 0.3);
    font-size: 12px;
    color: var(--ac-dark-label);
  }

  .ac-works__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ac-page .ac-works .ac-heading {
    font-size: 24px;
    white-space: normal;
  }
}

/* ---------- パスワード保護ページ ---------- */

.ac-protected__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  max-width: 560px;
  margin: 0 auto;
  padding: 120px 24px;
  text-align: center;
}

.ac-page .ac-protected__title {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 900;
  line-height: 1.4;
}

.ac-protected .post-password-form p {
  margin-bottom: 12px;
}

.ac-protected .post-password-form label {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.ac-protected .post-password-form input[type='password'] {
  width: 100%;
  max-width: 280px;
  min-height: 48px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid #B9B7B0;
  border-radius: 2px;
  background: #FFFFFF;
  font-size: 16px;
}

.ac-protected .post-password-form input[type='submit'] {
  min-height: 48px;
  padding: 0 32px;
  border: 0;
  border-radius: 2px;
  background: var(--ac-accent);
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

/* ---------- Client logos（自動で流れるロゴスライダー） ---------- */
/* PC は全ロゴ1段で左→右、スマホは上段 右→左・下段 左→右の2段 */

/* 余白・見出しとの間隔は .ac-section--lg に揃える */
.ac-logos {
  background: #FFFFFF;
  border-top: 1px solid var(--ac-line);
}

/* flex 子要素だと margin: auto で内容幅に縮むため、全幅にして他セクション同様の左揃えにする */
.ac-logos > .ac-inner {
  width: 100%;
  box-sizing: border-box;
}

.ac-logos__rows {
  overflow: hidden;
  pointer-events: none;
}

.ac-logos__row--a,
.ac-logos__row--b {
  display: none;
}

.ac-logos__track {
  display: flex;
  width: max-content;
  /* ロゴ数に比例させ、段ごとの流れる速さを揃える */
  animation: ac-logos-slide calc(var(--ac-logos-count, 13) * 3.7s) linear infinite;
}

.ac-logos__row--reverse .ac-logos__track {
  animation-direction: reverse;
}

.ac-page .ac-logos__list {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ac-page .ac-logos__list li {
  flex-shrink: 0;
  margin: 0;
  padding: 0;
}

.ac-page .ac-logos__list img {
  width: 160px;
  height: 80px;
  object-fit: contain;
}

@keyframes ac-logos-slide {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}

@media (max-width: 600px) {
  .ac-logos__rows {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .ac-logos__row--all {
    display: none;
  }

  .ac-logos__row--a,
  .ac-logos__row--b {
    display: block;
  }

  .ac-page .ac-logos__list img {
    width: 112px;
    height: 56px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ac-logos__track {
    animation-duration: calc(var(--ac-logos-count, 13) * 11s);
  }
}
