/* =========================================================
   Reset & Base
   ========================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400;
  color: #111;
  background: #fff;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.6;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, p {
  margin: 0;
}

/* =========================================================
   Scroll Reveal
   ========================================================= */
:root {
  --ease-quiet: cubic-bezier(0.16, 1, 0.3, 1);
  --reveal-duration: 1.1s;
}

/* フェードアップ（ラベル/本文/ボタン） */
.reveal-up {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity var(--reveal-duration) var(--ease-quiet),
    transform var(--reveal-duration) var(--ease-quiet);
  will-change: opacity, transform;
}
.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* 画像のリベール（フェードアップ。画像はクロップせずそのまま表示） */
.reveal-image {
  position: relative;
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 1.2s var(--ease-quiet),
    transform 1.2s var(--ease-quiet);
  will-change: opacity, transform;
}
.reveal-image.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* セクション見出しの左右ライン伸長 */
.reveal-divider .section-title-center {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.9s var(--ease-quiet) 0.4s,
    transform 0.9s var(--ease-quiet) 0.4s;
}
.reveal-divider.is-visible .section-title-center {
  opacity: 1;
  transform: translateY(0);
}

.section-head::before,
.section-head::after {
  width: 0;
  transition: width 1.2s var(--ease-quiet);
}
.reveal-divider.is-visible.section-head::before,
.reveal-divider.is-visible.section-head::after {
  width: 28%;
}

/* 行ごとマスクリベール（MVと見出し） */
.line {
  display: block;
  overflow: hidden;
}
.line-inner {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1.1s var(--ease-quiet);
  will-change: transform;
}
.line.is-visible .line-inner {
  transform: translateY(0);
}
/* MVは初期表示で順番にリベール */
.mv-copy .line:nth-child(1) .line-inner { transition-delay: 0.15s; }
.mv-copy .line:nth-child(2) .line-inner { transition-delay: 0.35s; }
body.is-loaded .mv-copy .line .line-inner { transform: translateY(0); }
body:not(.is-loaded) .mv-copy .line .line-inner { transform: translateY(110%); }

/* ステージャー（サービスカード等） */
.stagger > * {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity var(--reveal-duration) var(--ease-quiet),
    transform var(--reveal-duration) var(--ease-quiet);
}
.stagger > *.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* リデュースモーション */
@media (prefers-reduced-motion: reduce) {
  .reveal-up,
  .reveal-image,
  .stagger > *,
  .line-inner,
  .reveal-divider .section-title-center {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
    transition: none !important;
  }
  .section-head::before,
  .section-head::after {
    width: 28% !important;
    transition: none !important;
  }
}

/* =========================================================
   Layout
   ========================================================= */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
}

.section {
  padding: 120px 0;
}

.section-label {
  font-size: 12px;
  letter-spacing: 0.2em;
  font-weight: 500;
  margin-bottom: 24px;
  color: #111;
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.04em;
  margin-bottom: 32px;
}

.section-title-center {
  text-align: center;
  position: relative;
  display: inline-block;
  font-size: 18px;
  letter-spacing: 0.2em;
  font-weight: 500;
}

.section-head {
  text-align: center;
  margin-bottom: 64px;
  position: relative;
}

.section-head::before,
.section-head::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 28%;
  height: 1px;
  background: #111;
}

.section-head::before {
  left: 0;
}

.section-head::after {
  right: 0;
}

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s ease, background 0.4s ease;
}

.site-header.is-scrolled {
  border-bottom-color: #eee;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  padding-bottom: 24px;
}

.logo {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.global-nav ul {
  display: flex;
  gap: 40px;
}

.global-nav a {
  font-size: 14px;
  letter-spacing: 0.08em;
  font-weight: 500;
}

/* =========================================================
   Main Visual
   ========================================================= */
.mv {
  min-height: calc(100vh - 80px); /* ヘッダー分を引いてファーストビューに収める */
  padding: 48px 0 0;
  display: flex;
  flex-direction: column;
}

.mv-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  flex: 1; /* ブランドバンドを下端に押し込むため */
}

.mv-copy {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.02em;
  margin-bottom: 32px;
}

.mv-sub {
  font-size: 14px;
  line-height: 2;
  margin-bottom: 48px;
  color: #333;
}

.mv-visual img {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

.mv-visual .floating {
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@media (prefers-reduced-motion: reduce) {
  .mv-visual .floating {
    animation: none;
  }
}

/* =========================================================
   Button
   ========================================================= */
.btn {
  display: inline-block;
  padding: 16px 40px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-align: center;
  border: 1px solid #111;
  background: #fff;
  color: #111;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
  min-width: 220px;
}

.btn-primary:hover {
  background: #111;
  color: #fff;
  opacity: 1;
}

/* =========================================================
   Message
   ========================================================= */
.message-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.message-body {
  font-size: 14px;
  line-height: 2.2;
  color: #333;
}

.message-visual img {
  width: 100%;
  height: auto;
  display: block;
}

/* =========================================================
   Service
   ========================================================= */
.service-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.service-card {
  border: 1px solid #111;
  padding: 40px 28px;
  text-align: center;
  background: #fff;
  transition: transform 0.6s var(--ease-quiet), box-shadow 0.6s var(--ease-quiet);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.25);
}

.service-card-icon {
  width: 144px;
  height: 144px;
  margin: 0 auto 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.6s var(--ease-quiet);
}

.service-card:hover .service-card-icon {
  transform: translateY(-2px) scale(1.04);
}

.service-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.service-card-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #111;
}

.service-card-list {
  text-align: left;
}

.service-card-list li {
  font-size: 13px;
  line-height: 2;
  padding-left: 16px;
  position: relative;
  color: #333;
}

.service-card-list li::before {
  content: "・";
  position: absolute;
  left: 0;
  top: 0;
}

/* =========================================================
   Works (WordPress REST API)
   ========================================================= */
.works-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.works-card {
  background: #fff;
  border: 1px solid #111;
  overflow: hidden;
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.9s var(--ease-quiet),
    transform 0.9s var(--ease-quiet),
    box-shadow 0.6s var(--ease-quiet);
}

.works-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.works-card:hover {
  box-shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.25);
}

.works-card a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.works-card a:hover {
  opacity: 1;
}

.works-card-image {
  aspect-ratio: 1 / 1;
  background: #f5f5f5;
  overflow: hidden;
}

.works-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-quiet);
}

.works-card:hover .works-card-image img {
  transform: scale(1.04);
}

.works-card-body {
  padding: 24px 22px;
}

.works-card-category {
  font-size: 11px;
  letter-spacing: 0.18em;
  font-weight: 500;
  margin-bottom: 10px;
  color: #555;
}

.works-card-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.6;
  margin-bottom: 8px;
  color: #111;
}

.works-card-client {
  font-size: 12px;
  color: #777;
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}

.works-card-desc {
  font-size: 13px;
  line-height: 1.85;
  color: #333;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
}

.works-card-more {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: #111;
  border-bottom: 1px solid #111;
  padding-bottom: 2px;
  margin-top: 4px;
  transition: gap 0.3s var(--ease-quiet);
}

.works-card a:hover .works-card-more {
  letter-spacing: 0.22em;
}

.works-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 0;
  color: #999;
  font-size: 13px;
  letter-spacing: 0.04em;
}

/* 一覧ページへの動線ボタン */
.works-more {
  text-align: center;
  margin-top: 56px;
}

.btn-more {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.16em;
  font-weight: 500;
  padding: 14px 36px;
  border: 1px solid #111;
  color: #111;
  background: #fff;
  transition: background 0.3s var(--ease-quiet), color 0.3s var(--ease-quiet), letter-spacing 0.3s var(--ease-quiet);
}

.btn-more:hover {
  background: #111;
  color: #fff;
  opacity: 1;
  letter-spacing: 0.22em;
}

@media (max-width: 768px) {
  .works-more {
    margin-top: 32px;
  }
  .btn-more {
    width: 100%;
    max-width: 280px;
  }
}

@media (max-width: 768px) {
  .works-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .works-card-body {
    padding: 20px 18px;
  }
}

/* =========================================================
   Works List Page (works.html)
   ========================================================= */
.works-list-page {
  padding: 96px 0 140px;
}

.works-list-page .contact-page-head {
  margin-bottom: 64px;
}

@media (max-width: 768px) {
  .works-list-page {
    padding: 56px 0 100px;
  }
}

/* =========================================================
   Works Detail Page
   ========================================================= */
.works-detail {
  padding: 80px 0 120px;
}

.works-detail-loading,
.works-detail-error {
  text-align: center;
  padding: 80px 20px;
  color: #888;
}

.works-detail-inner {
  max-width: 880px;
}

.works-detail-head {
  text-align: center;
  margin-bottom: 56px;
}

.works-detail-category {
  font-size: 12px;
  letter-spacing: 0.22em;
  font-weight: 500;
  color: #555;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.works-detail-title {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.04em;
  margin-bottom: 28px;
  color: #111;
}

.works-detail-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
  font-size: 13px;
}

.works-detail-meta-item {
  color: #555;
  letter-spacing: 0.04em;
}

.works-detail-meta-item .meta-label {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.2em;
  font-weight: 500;
  color: #999;
  margin-right: 8px;
  text-transform: uppercase;
}

.works-detail-image {
  margin: 0 0 48px;
  background: #f5f5f5;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.works-detail-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.works-detail-summary {
  font-size: 16px;
  line-height: 2;
  margin-bottom: 48px;
  color: #222;
  letter-spacing: 0.04em;
  text-align: center;
}

.works-detail-body {
  font-size: 14px;
  line-height: 2;
  color: #333;
  letter-spacing: 0.04em;
  margin-bottom: 56px;
}

.works-detail-body p {
  margin: 0 0 24px;
}

.works-detail-body img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 24px auto;
}

.works-detail-body h2,
.works-detail-body h3,
.works-detail-body h4 {
  font-weight: 700;
  margin: 40px 0 16px;
}

.works-detail-body h2 { font-size: 20px; }
.works-detail-body h3 { font-size: 18px; }
.works-detail-body h4 { font-size: 16px; }

.works-detail-body a {
  color: #111;
  text-decoration: underline;
}

.works-detail-link {
  text-align: center;
  margin-bottom: 48px;
}

.works-detail-back {
  text-align: center;
  padding-top: 32px;
  border-top: 1px solid #eee;
}

.btn-back {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: #111;
  padding: 8px 4px;
  transition: opacity 0.3s ease;
}

.btn-back:hover {
  opacity: 0.6;
}

@media (max-width: 768px) {
  .works-detail {
    padding: 56px 0 80px;
  }

  .works-detail-title {
    font-size: 24px;
  }

  .works-detail-summary {
    font-size: 14px;
  }

  .works-detail-meta {
    gap: 20px;
  }
}

/* =========================================================
   Contact CTA (横長カード型)
   ========================================================= */
.contact-cta {
  padding: 100px 0;
}

.contact-cta__inner {
  max-width: 1120px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 14px;
  box-shadow: 0 6px 28px -18px rgba(0, 0, 0, 0.18);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0;
  padding: 48px 56px;
}

/* --- 左: アイコン --- */
.contact-cta__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-right: 48px;
}

.contact-cta__icon-ring {
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-cta__icon-circle {
  width: 78px;
  height: 78px;
  background: #111;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-cta__icon-circle img {
  width: 36px;
  height: 36px;
  /* どんな色のアイコンでも白に統一 */
  filter: brightness(0) invert(1);
}

/* --- 中央: テキスト + ボタン --- */
.contact-cta__body {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 0 48px;
  border-left: 1px solid #e8e8e8;
  border-right: 1px solid #e8e8e8;
}

.contact-cta__lead {
  font-size: 14px;
  line-height: 2;
  color: #333;
  letter-spacing: 0.04em;
  margin: 0;
}

.contact-cta__button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 280px;
  padding: 14px 24px;
  border: 1px solid #111;
  background: #fff;
  color: #111;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  transition: background 0.3s ease, color 0.3s ease;
}

.contact-cta__button:hover {
  background: #111;
  color: #fff;
  opacity: 1;
}

.contact-cta__button-arrow {
  display: inline-block;
  transition: transform 0.3s var(--ease-quiet);
}

.contact-cta__button:hover .contact-cta__button-arrow {
  transform: translateX(4px);
}

/* --- 右: 補足テキスト --- */
.contact-cta__note {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-left: 48px;
}

.contact-cta__note-main {
  font-size: 12px;
  line-height: 1.85;
  color: #333;
  letter-spacing: 0.04em;
  margin: 0;
}

.contact-cta__note-sub {
  font-size: 11px;
  line-height: 1.85;
  color: #888;
  margin: 0;
}

/* --- レスポンシブ: スマホ --- */
@media (max-width: 900px) {
  .contact-cta {
    padding: 60px 0;
  }

  .contact-cta__inner {
    grid-template-columns: 1fr;
    padding: 32px 24px;
    gap: 24px;
    border-radius: 12px;
  }

  .contact-cta__icon {
    padding-right: 0;
    padding-bottom: 0;
  }

  .contact-cta__body {
    border-left: none;
    border-right: none;
    border-top: 1px solid #e8e8e8;
    border-bottom: 1px solid #e8e8e8;
    padding: 28px 0;
  }

  .contact-cta__button {
    width: 100%;
    max-width: 280px;
    min-width: 0;
  }

  .contact-cta__note {
    padding-left: 0;
    text-align: center;
    align-items: center;
  }
}

/* =========================================================
   旧 Contact（互換用に残す。HTMLからは削除済み）
   ========================================================= */
.contact-text {
  font-size: 14px;
  line-height: 2;
  margin-bottom: 32px;
  color: #333;
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: #111;
  color: #fff;
  padding: 48px 0 24px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px 48px;
  row-gap: 32px;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-logo {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.footer-mail {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: #ddd;
}

.footer-nav ul {
  display: flex;
  gap: 32px;
}

.footer-nav a {
  font-size: 13px;
  letter-spacing: 0.08em;
  color: #fff;
}

.copyright {
  grid-column: 1 / -1;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #888;
  text-align: center;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #333;
}

/* =========================================================
   Hamburger / SP Drawer Menu
   ========================================================= */
.hamburger {
  display: none;          /* PCでは非表示 */
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  position: relative;
  z-index: 110;           /* ナビドロワーより上 */
}

.hamburger span {
  display: block;
  position: absolute;
  left: 8px;
  width: 24px;
  height: 1.5px;
  background: #111;
  transition: transform 0.35s var(--ease-quiet), opacity 0.25s ease, top 0.35s var(--ease-quiet);
}

.hamburger span:nth-child(1) { top: 13px; }
.hamburger span:nth-child(2) { top: 19px; }
.hamburger span:nth-child(3) { top: 25px; }

.hamburger.is-active span:nth-child(1) {
  top: 19px;
  transform: rotate(45deg);
}
.hamburger.is-active span:nth-child(2) {
  opacity: 0;
}
.hamburger.is-active span:nth-child(3) {
  top: 19px;
  transform: rotate(-45deg);
}

/* =========================================================
   ドロワー内の閉じるボタン
   ========================================================= */
.nav-close {
  display: none;          /* PCでは不要 */
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  z-index: 1;
}

.nav-close span {
  display: block;
  position: absolute;
  left: 10px;
  top: 21px;
  width: 24px;
  height: 1.5px;
  background: #111;
  transition: transform 0.25s ease;
}

.nav-close span:nth-child(1) { transform: rotate(45deg); }
.nav-close span:nth-child(2) { transform: rotate(-45deg); }

.nav-close:hover span {
  background: #555;
}

/* =========================================================
   SP固定フッタCTA
   ========================================================= */
.sp-fixed-cta {
  display: none;
}

.sp-fixed-cta-btn {
  display: block;
  width: 100%;
  padding: 16px;
  background: #111;
  color: #fff;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.12em;
  border-radius: 6px;
}

/* =========================================================
   Brand Band (MV 下端のマーキー)
   ========================================================= */
.brand-band {
  overflow: hidden;
  border-top: 1px solid #111;
  border-bottom: 1px solid #111;
  padding: 18px 0;
  margin: 40px 0 0;
  background: #fff;
}

.brand-band-track {
  display: flex;
  width: max-content;
  animation: bandScroll 30s linear infinite;
  will-change: transform;
}

.brand-band-set {
  display: flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
}

.brand-band-item {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 0 28px;
  color: #111;
  font-family: "Noto Sans JP", sans-serif;
}

.brand-band-dot {
  font-size: 8px;
  color: #111;
  flex-shrink: 0;
}

/* 1セット分（=トラック幅の50%）だけ左へ流す → 永続ループ */
@keyframes bandScroll {
  0%   { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

@media (max-width: 768px) {
  .brand-band {
    padding: 14px 0;
    margin: 24px 0 0;
  }
  .brand-band-item {
    font-size: 20px;
    padding: 0 16px;
  }
  .brand-band-dot {
    font-size: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand-band-track {
    animation: none;
  }
}

/* =========================================================
   Navigation hover underline
   ========================================================= */
.global-nav a,
.footer-nav a {
  position: relative;
  display: inline-block;
}

.global-nav a::after,
.footer-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease-quiet);
}

.global-nav a:hover,
.footer-nav a:hover {
  opacity: 1;
}

.global-nav a:hover::after,
.footer-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* =========================================================
   Button slide effect
   ========================================================= */
.btn-primary {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #111;
  transform: translateY(101%);
  transition: transform 0.5s var(--ease-quiet);
  z-index: -1;
}

.btn-primary:hover {
  background: transparent;
  color: #fff;
  opacity: 1;
}

.btn-primary:hover::before {
  transform: translateY(0);
}

/* =========================================================
   Scroll Indicator (MV右下)
   ========================================================= */
.scroll-indicator {
  position: fixed;
  right: 32px;
  bottom: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 50;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.5s var(--ease-quiet), transform 0.5s var(--ease-quiet);
}

.scroll-indicator.is-hidden {
  opacity: 0;
  transform: translateY(8px);
}

.scroll-indicator-text {
  font-size: 10px;
  letter-spacing: 0.3em;
  font-weight: 500;
  writing-mode: vertical-rl;
  color: #111;
}

.scroll-indicator-line {
  width: 1px;
  height: 60px;
  background: rgba(17, 17, 17, 0.2);
  position: relative;
  overflow: hidden;
}

.scroll-indicator-line::after {
  content: "";
  position: absolute;
  top: -60px;
  left: 0;
  width: 100%;
  height: 60px;
  background: #111;
  animation: scrollLine 2.4s var(--ease-quiet) infinite;
}

@keyframes scrollLine {
  0% { transform: translateY(0); }
  60%, 100% { transform: translateY(120px); }
}

/* =========================================================
   Scroll-top button (帽子の黒猫イラスト)
   ========================================================= */
.scroll-top {
  position: fixed;
  right: 32px;
  bottom: 32px;
  width: 104px;
  height: 104px;
  display: block;
  z-index: 60;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition:
    opacity 0.4s var(--ease-quiet),
    transform 0.4s var(--ease-quiet);
}

.scroll-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.scroll-top.is-hidden {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}

.scroll-top img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  pointer-events: none;
  mix-blend-mode: multiply; /* PNG の白背景をページ背景に溶かす */
}

.scroll-top:hover {
  opacity: 1;
  transform: translateY(-5px);
}

@media (prefers-reduced-motion: reduce) {
  .scroll-indicator-line::after {
    animation: none;
  }
}

/* =========================================================
   Responsive (SP)
   ========================================================= */
@media (max-width: 768px) {

  .container {
    padding: 0 24px;
  }

  .section {
    padding: 80px 0;
  }

  /* Header */
  .site-header {
    /* SPでは下のコンテンツが透けないよう完全不透明に */
    background: #fff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .header-inner {
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .logo {
    font-size: 14px;
  }

  /* ハンバーガー表示 */
  .hamburger {
    display: block;
  }

  /* グローバルナビをドロワー化 */
  .global-nav {
    position: fixed;
    inset: 0;
    background: #fff;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-100%);
    transition: transform 0.45s var(--ease-quiet);
    pointer-events: none;
  }

  /* 閉じるボタンをドロワー右上に表示 */
  .nav-close {
    display: block;
  }

  /* メニュー開時はSP固定CTAを隠す（ナビ項目を確実に見せる） */
  body.menu-open .sp-fixed-cta {
    display: none;
  }

  .global-nav.is-open {
    transform: translateY(0);
    pointer-events: auto;
  }

  .global-nav ul {
    flex-direction: column;
    gap: 32px;
    text-align: center;
  }

  .global-nav a {
    font-size: 18px;
    letter-spacing: 0.1em;
  }

  /* ドロワー時はナビ下線を出さない */
  .global-nav a::after { display: none; }

  /* SP固定CTA表示 */
  .sp-fixed-cta {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: saturate(180%) blur(8px);
    -webkit-backdrop-filter: saturate(180%) blur(8px);
    border-top: 1px solid #eee;
  }

  /* メインコンテンツがCTAに隠れないよう余白追加（CTAがあるページのみ） */
  body.has-sp-cta {
    padding-bottom: 76px;
  }

  /* SPでは上に戻るボタンを表示しない */
  .scroll-top {
    display: none !important;
  }

  /* SP CTA / 猫 を一時的に隠す（フッタ到達時） */
  .sp-fixed-cta {
    transition: transform 0.4s var(--ease-quiet);
  }

  .sp-fixed-cta.is-cta-hidden {
    transform: translateY(120%);
    pointer-events: none;
  }

  .sp-fixed-cta.is-cta-hidden ~ .cat {
    opacity: 0;
    pointer-events: none;
  }

  /* スクロールインジケーター：CTAが非表示なFV時に十分な余白で表示 */
  .scroll-indicator {
    bottom: 32px;
  }

  /* MV */
  .mv {
    min-height: 0; /* SPは内容に合わせる */
    padding: 32px 0 0;
  }

  .mv-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .mv-text {
    order: 1;
  }

  .mv-visual {
    order: 2;
  }

  .mv-copy {
    font-size: 36px;
  }

  .mv-sub {
    font-size: 13px;
    margin-bottom: 32px;
  }

  /* Section title */
  .section-title {
    font-size: 22px;
  }

  .reveal-divider.is-visible.section-head::before,
  .reveal-divider.is-visible.section-head::after {
    width: 18%;
  }

  /* Message */
  .message-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .message-body {
    font-size: 13px;
  }

  /* Service */
  .service-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .service-card {
    padding: 32px 24px;
  }

  .service-card-icon {
    width: 120px;
    height: 120px;
  }

  /* Contact */
  .contact {
    padding: 60px 0 80px;
  }

  .contact-icon {
    width: 132px;
    height: 132px;
  }

  .contact-icon img {
    width: 72px;
    height: 72px;
  }

  /* Button */
  .btn {
    width: 100%;
    max-width: 320px;
    padding: 14px 24px;
  }

  /* Footer */
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
    row-gap: 24px;
  }

  .footer-left {
    align-items: center;
  }

  .footer-nav ul {
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
  }

  .copyright {
    margin-top: 8px;
  }

  /* Scroll Indicator / Top button */
  .scroll-indicator {
    right: 16px;
    bottom: 24px;
  }
  .scroll-indicator-line {
    height: 40px;
  }

  /* SP scroll-top は上で display:none 済み */
}

/* =========================================================
   Contact Page (contact.html)
   ========================================================= */
.contact-page {
  padding: 96px 0 140px;
}

.contact-page-head {
  text-align: center;
  margin-bottom: 72px;
}

.contact-page-head .section-label {
  display: block;
  margin-bottom: 16px;
}

.contact-page-title {
  font-size: 56px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.2;
  margin-bottom: 32px;
}

.contact-page-desc {
  font-size: 14px;
  line-height: 2;
  color: #333;
  max-width: 560px;
  margin: 0 auto;
}

/* ---------- Form ---------- */
.contact-form {
  max-width: 760px;
  margin: 0 auto;
}

.form-row {
  margin-bottom: 36px;
}

.form-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin: 0 0 14px;
  color: #111;
}

.form-required {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: #fff;
  background: #111;
  padding: 3px 8px;
  border-radius: 3px;
}

/* ---------- Inputs ---------- */
.form-input,
.form-textarea {
  width: 100%;
  padding: 16px 20px;
  font-size: 15px;
  font-family: inherit;
  color: #111;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  transition: border-color 0.3s ease, background 0.3s ease;
  -webkit-appearance: none;
  appearance: none;
}

.form-input {
  height: 56px;
}

.form-textarea {
  height: 180px;
  line-height: 1.8;
  resize: vertical;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: #111;
  background: #fff;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #aaa;
}

/* ---------- Radio ---------- */
.form-radios {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 36px;
  padding-top: 4px;
}

.form-radio {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  letter-spacing: 0.02em;
  cursor: pointer;
  user-select: none;
}

.form-radio input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.form-radio-mark {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border: 1px solid #bbb;
  border-radius: 50%;
  background: #fff;
  position: relative;
  transition: border-color 0.2s ease;
}

.form-radio:hover .form-radio-mark {
  border-color: #111;
}

.form-radio input:checked + .form-radio-mark {
  border-color: #111;
}

.form-radio input:checked + .form-radio-mark::after {
  content: "";
  position: absolute;
  inset: 4px;
  background: #111;
  border-radius: 50%;
}

.form-radio input:focus-visible + .form-radio-mark {
  outline: 2px solid #111;
  outline-offset: 2px;
}

/* ---------- Submit ---------- */
.form-submit {
  text-align: center;
  margin-top: 56px;
}

.btn-submit {
  display: inline-block;
  width: 200px;
  padding: 18px 0;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: #fff;
  background: #111;
  border: 1px solid #111;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}

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

.btn-submit:focus-visible {
  outline: 2px solid #111;
  outline-offset: 2px;
}

/* ---------- 帽子の黒猫（装飾） ---------- */
.contact-cat {
  position: fixed;
  right: 28px;
  bottom: 24px;
  width: 88px;
  height: 88px;
  z-index: 30;
  pointer-events: none;
}

.contact-cat img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  mix-blend-mode: multiply;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .contact-page {
    padding: 56px 0 100px;
  }

  .contact-page-head {
    margin-bottom: 48px;
  }

  .contact-page-title {
    font-size: 36px;
    margin-bottom: 24px;
  }

  .contact-page-desc {
    font-size: 13px;
  }

  .contact-form {
    max-width: 100%;
  }

  .form-row {
    margin-bottom: 28px;
  }

  .form-input {
    height: 52px;
    padding: 14px 16px;
    font-size: 14px;
  }

  .form-textarea {
    padding: 14px 16px;
    font-size: 14px;
    height: 160px;
  }

  /* SP：ラジオは縦並び */
  .form-radios {
    flex-direction: column;
    gap: 14px;
  }

  .form-submit {
    margin-top: 40px;
  }

  .btn-submit {
    width: 100%;
    max-width: 320px;
  }

  .contact-cat {
    right: 14px;
    bottom: 14px;
    width: 60px;
    height: 60px;
  }
}
