/* ============================================================
   SITEMAKER — Pattern I: Minimalism (Refined)
   ============================================================ */

:root {
  --bg: #FFFFFF;
  --ink: #111111;
  --ink-light: #444444;
  --ink-lighter: #888888;
  --line: 1px solid #111111;
  --line-light: 1px solid #DDDDDD;
  --font-en: 'Inter', sans-serif;
  --font-ja: 'Noto Sans JP', sans-serif;
  --ease: 0.3s ease;
  --max-w: 1200px;
  --sp-xs: 8px;
  --sp-sm: 16px;
  --sp-md: 24px;
  --sp-lg: 32px;
  --sp-xl: 48px;
  --sp-2xl: 64px;
  --sp-3xl: 96px;
  --sp-sec: 200px;
}

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

html {
  font-size: 16px;
  scroll-behavior: auto; /* Lenisを使うためautoに変更 */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-ja);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.8;
  letter-spacing: 0.02em;
  overflow-x: hidden;
}

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

a {
  color: var(--ink);
  text-decoration: none;
  transition: var(--ease);
}

ul, ol {
  list-style: none;
}

::selection {
  background: var(--ink);
  color: var(--bg);
}

/* ============================================================
   Loading Animation (Wave & Brand)
   ============================================================ */
.loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--ink);
  color: var(--bg);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.8s cubic-bezier(0.85, 0, 0.15, 1);
}

.loading.is-loaded {
  transform: translateY(-100%);
}

.loading__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  width: 80%;
  max-width: 400px;
}

.loading__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

/* キャッチコピー（日本語用の美しいフォント指定） */
.loading__copy {
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.25em;
  color: rgba(255, 255, 255, 0.6);
}

/* メインロゴ（太さ400） */
.loading__logo {
  font-family: var(--font-en);
  font-size: clamp(24px, 5vw, 36px);
  font-weight: 400; 
  letter-spacing: 0.15em;
  line-height: 1;
}

/* 波形ローダー */
.loading__wave {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 24px;
}

.loading__wave-bar {
  width: 1px;
  height: 100%;
  background-color: var(--bg);
  animation: wave 1.2s infinite ease-in-out;
}

.loading__wave-bar:nth-child(1) { animation-delay: -1.2s; }
.loading__wave-bar:nth-child(2) { animation-delay: -1.1s; }
.loading__wave-bar:nth-child(3) { animation-delay: -1.0s; }
.loading__wave-bar:nth-child(4) { animation-delay: -0.9s; }
.loading__wave-bar:nth-child(5) { animation-delay: -0.8s; }

@keyframes wave {
  0%, 40%, 100% { transform: scaleY(0.2); }
  20% { transform: scaleY(1); }
}

/* ---------- Header (極細ハンバーガー) ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--sp-xl) var(--sp-2xl); 
  display: flex;
  justify-content: space-between;
  align-items: center;
  mix-blend-mode: difference;
  pointer-events: none;
}

.header__logo,
.header__menu-btn {
  pointer-events: auto;
}

.header__logo {
  font-family: var(--font-en);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--bg);
}

.header__menu-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.header__menu-line {
  display: block;
  width: 100%;
  height: 1px;
  background-color: var(--bg);
  transition: transform 0.3s ease, width 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
  .header__menu-btn:hover .header__menu-line:first-child {
    transform: translateX(4px);
    width: calc(100% - 4px);
  }
  .header__menu-btn:hover .header__menu-line:last-child {
    transform: translateX(-4px);
    width: calc(100% - 4px);
  }
}

/* Menu Overlay */
.header__overlay {
  position: fixed;
  inset: 0;
  background: var(--ink);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.header__overlay.is-open {
  opacity: 1;
  visibility: visible;
}

/* ---------- 修正：CLOSEボタンをMENUボタンと完全同期 ---------- */
.header__overlay-close {
  position: absolute;
  /* ヘッダーの余白（上:48px、右:64px）と完全に一致させる */
  top: var(--sp-xl);
  right: var(--sp-2xl);
  height: 36px; /* MENUボタンと同じ高さの中心軸を作る */
  display: flex;
  align-items: center;
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.2em;
  color: var(--bg);
  background: none;
  border: none;
  cursor: pointer;
  transition: var(--ease);
}

.header__overlay-close:hover {
  opacity: 0.5;
}

.header__overlay-nav {
  display: flex;
  flex-direction: column;
  gap: var(--sp-lg);
  text-align: center;
}

.header__overlay-nav a {
  font-family: var(--font-en);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 200;
  letter-spacing: 0.08em;
  color: var(--bg);
  transition: var(--ease);
}

.header__overlay-nav a:hover {
  opacity: 0.4;
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding: 0 var(--sp-lg) var(--sp-3xl);
  transition: background-color var(--ease);
}

.hero__inner {
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
}

.hero__title {
  font-family: var(--font-en);
  font-size: clamp(48px, 10vw, 140px);
  font-weight: 200;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  transition: color var(--ease), background-color var(--ease);
  pointer-events: none;
}

.hero__sub {
  font-size: 13px;
  font-weight: 400;
  color: var(--ink-light);
  margin-top: var(--sp-lg);
  letter-spacing: 0.06em;
  line-height: 2;
  max-width: 400px;
  transition: color var(--ease), background-color var(--ease);
}

.hero__scroll {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  margin-top: var(--sp-3xl);
}

.hero__scroll-text {
  font-family: var(--font-en);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.2em;
  color: var(--ink-lighter);
  transition: color var(--ease), background-color var(--ease);
}

.hero__scroll-line {
  width: 48px;
  height: 1px;
  background: var(--ink-lighter);
  transition: background-color var(--ease);
}

.hero.is-inverted {
  background-color: var(--ink);
}
.hero.is-inverted .hero__title,
.hero.is-inverted .hero__sub,
.hero.is-inverted .hero__scroll-text {
  color: var(--bg);
}
.hero.is-inverted .hero__scroll-line {
  background-color: var(--bg);
}

/* ---------- Section ---------- */
.section {
  padding: var(--sp-sec) 0;
}

.section__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--sp-lg);
}

.js-fade {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.js-fade.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Works ---------- */
.works__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-3xl) var(--sp-lg);
}

/* 右側だけ下にズラす」抜け感のあるレイアウト */
.works__item:nth-child(even) {
  margin-top: var(--sp-3xl);
}

.works__img-wrap {
  position: relative;
  overflow: hidden;
  /* 綺麗な長方形（4:3）の比率で画像をトリミング */
  aspect-ratio: 4 / 3;
  background: var(--line-light);
  margin-bottom: var(--sp-md);
}

.works__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

/* ホバーで画像がゆっくり拡大する上品なアニメーション */
.works__item:hover .works__img-wrap img {
  transform: scale(1.05);
}

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

.works__cat {
  font-family: var(--font-en);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: var(--ink-lighter);
}

.works__title {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink);
  transition: opacity var(--ease);
}

.works__item:hover .works__title {
  opacity: 0.5;
}

/* Responsive (スマホ表示の調整) */
@media (max-width: 768px) {
  .works__list {
    grid-template-columns: 1fr;
    gap: var(--sp-2xl);
  }
  .works__item:nth-child(even) {
    margin-top: 0; /* スマホではズレを解除して1列に揃える */
  }
}


/* ---------- Problem (Sticky Text Sequence) ---------- */
.problem {
  /* 全体の高さは、行数に合わせてJavaScriptで自動計算します */
  position: relative;
  background-color: var(--bg);
}

/* ▼ これが背景をピタッと固定する魔法 ▼ */
.problem__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.problem__inner {
  position: relative;
  width: 100%;
  height: 100%;
  /* コンテンツ幅を900pxから1100pxに大幅拡張！ */
  max-width: 1100px; 
  margin: 0 auto;
  padding: 0 var(--sp-lg);
}

/* 1行ごとのテキスト設定 */
.problem__line {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  /* 初期状態（画面の中央より少し下で、透明になって待機） */
  transform: translate(-50%, -20%); 
  text-align: center;
  /* 文字サイズを最大64pxまで巨大化してインパクト最強に！ */
  font-size: clamp(28px, 6vw, 64px); 
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.05em;
  line-height: 1.6;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, transform 0.8s ease, visibility 0.8s;
}

/* 画面中央に表示されている状態 */
.problem__line.is-active {
  transform: translate(-50%, -50%); /* ど真ん中に浮上 */
  opacity: 1;
  visibility: visible;
}

/* 通り過ぎたテキスト（上へスッと消えていく） */
.problem__line.is-passed {
  transform: translate(-50%, -80%); 
  opacity: 0;
  visibility: hidden;
}

/* スマホ表示の調整 */
@media (max-width: 768px) {
  .problem__line {
    font-size: clamp(20px, 6vw, 32px);
    line-height: 1.8;
  }
  .sp-only {
    display: block;
  }
}
@media (min-width: 769px) {
  .sp-only {
    display: none;
  }
}

/* ---------- Features ---------- */
.features__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  border-top: var(--line);
}

.features__item {
  padding: var(--sp-2xl) var(--sp-lg);
  border-bottom: var(--line);
  border-right: var(--line);
}

.features__item:nth-child(3n) {
  border-right: none;
}

.features__item-num {
  font-family: var(--font-en);
  font-size: clamp(64px, 8vw, 100px);
  font-weight: 200;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: var(--sp-md);
}

.features__item-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink);
  margin-bottom: var(--sp-xs);
}

.features__item-desc {
  font-size: 12px;
  color: var(--ink-light);
  line-height: 2;
  letter-spacing: 0.04em;
}

/* ---------- Pricing ---------- */
.pricing__table {
  width: 100%;
  border-collapse: collapse;
}

.pricing__table th,
.pricing__table td {
  padding: var(--sp-md) var(--sp-lg);
  border-bottom: var(--line);
  text-align: left;
  vertical-align: top;
}

.pricing__table th {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.14em;
  color: var(--ink-lighter);
  text-transform: uppercase;
  width: 160px;
}

.pricing__table td {
  font-size: 13px;
  color: var(--ink);
  line-height: 1.8;
}

.pricing__plan-name {
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.pricing__plan-price {
  font-family: var(--font-en);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 200;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.pricing__plan-price span {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.04em;
  margin-left: 4px;
}

.pricing__plan-features {
  font-size: 12px;
  color: var(--ink-light);
  line-height: 2;
}

.pricing__campaign {
  font-size: 12px;
  font-style: italic;
  color: var(--ink-light);
  letter-spacing: 0.04em;
  padding-top: var(--sp-lg);
  border-top: none;
  margin-top: none;
}

.section__title-en {
  font-family: var(--font-en);
  font-size: clamp(60px, 10vw, 120px);
  font-weight: 200;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.section__title-ja {
  font-size: 12px;
  color: var(--ink-lighter);
  letter-spacing: 0.1em;
  margin-top: var(--sp-sm);
}

.section__title-wrap {
  margin-bottom: var(--sp-3xl);
}

/* ---------- Flow ---------- */
.flow__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: var(--line);
}

.flow__item {
  padding: var(--sp-xl) var(--sp-md);
  border-bottom: var(--line);
  border-right: var(--line);
  position: relative;
}

.flow__item:last-child {
  border-right: none;
}

.flow__item-num {
  font-family: var(--font-en);
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 200;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: var(--sp-md);
}

.flow__item-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.06em;
  margin-bottom: var(--sp-xs);
}

.flow__item-desc {
  font-size: 12px;
  color: var(--ink-light);
  line-height: 2;
}

/* ---------- Pricing Initial Cost ---------- */
.pricing__initial-wrap {
  margin-bottom: var(--sp-xl);
}

.pricing__initial {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--sp-md) var(--sp-lg);
  border-top: var(--line);
  border-bottom: var(--line);
}

.pricing__initial-title {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pricing__initial-title .en {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.14em;
  color: var(--ink-lighter);
}

.pricing__initial-title .ja {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--ink);
}

.pricing__initial-val {
  font-family: var(--font-en);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 200;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.pricing__initial-val span {
  font-family: var(--font-ja);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.04em;
  margin-left: 8px;
}

.pricing__plus {
  text-align: center;
  font-family: var(--font-en);
  font-size: 20px;
  font-weight: 200;
  color: var(--ink-light);
  padding-top: var(--sp-md);
}

/* スマホ表示の調整 */
@media (max-width: 768px) {
  .pricing__initial {
    padding: var(--sp-sm);
  }
  .pricing__initial-title .en {
    font-size: 10px;
  }
  .pricing__initial-title .ja {
    font-size: 11px;
  }
  .pricing__initial-val {
    font-size: 24px;
  }
}

/* ---------- CTA ---------- */
.cta {
  padding: var(--sp-sec) 0 var(--sp-3xl);
  text-align: right;
}

.cta__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--sp-lg);
}

.cta__link {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 4px;
  display: inline-block;
  transition: var(--ease);
}

.cta__link:hover {
  background: var(--ink);
  color: var(--bg);
  padding: 8px 16px;
  border-bottom-color: transparent;
}

.cta__label {
  font-family: var(--font-en);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.2em;
  color: var(--ink-lighter);
  margin-bottom: var(--sp-xs);
}

/* ---------- Footer ---------- */
.footer {
  padding: var(--sp-xl) 0;
  background-color: var(--ink); /* 背景を黒に反転 */
}

.footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--sp-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer__copyright {
  font-family: var(--font-en);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.5); /* 上品な半透明の白 */
}

.footer__links {
  display: flex;
  gap: var(--sp-lg);
  flex-wrap: wrap;
}

.footer__links a {
  font-family: var(--font-en);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: var(--bg); /* 文字を真っ白に */
  transition: var(--ease);
}

.footer__links a:hover {
  opacity: 0.5;
}

/* ---------- Sub-page Hero ---------- */
.p-pricing-hero {
  min-height: 60vh;
  display: flex;
  align-items: flex-end;
  padding: 0 var(--sp-lg) var(--sp-3xl);
}

.p-pricing-hero__inner {
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
}

.p-pricing-hero__title {
  font-family: var(--font-en);
  font-size: clamp(48px, 10vw, 120px);
  font-weight: 200;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.p-pricing-hero__sub {
  font-size: 12px;
  color: var(--ink-lighter);
  letter-spacing: 0.1em;
  margin-top: var(--sp-sm);
}

/* ---------- Plans Grid ---------- */
.p-pricing-plans__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: var(--line);
}

.p-pricing-plans__item {
  padding: var(--sp-xl) var(--sp-md);
  border-bottom: var(--line);
  border-right: var(--line);
}

.p-pricing-plans__item:last-child {
  border-right: none;
}

.p-pricing-plans__name {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-lighter);
  margin-bottom: var(--sp-sm);
}

.p-pricing-plans__price {
  font-family: var(--font-en);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 200;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: var(--sp-sm);
}

.p-pricing-plans__price span {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.p-pricing-plans__desc {
  font-size: 12px;
  color: var(--ink-light);
  line-height: 2;
}

.p-pricing-plans__campaign {
  font-size: 12px;
  font-style: italic;
  color: var(--ink-light);
  letter-spacing: 0.04em;
  padding-top: var(--sp-lg);
  margin-top: var(--sp-xl);
}

/* ---------- Options ---------- */
.p-pricing-options__list {
  border-top: var(--line);
}

.p-pricing-options__item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: var(--sp-md) 0;
  border-bottom: var(--line);
  font-size: 13px;
  color: var(--ink);
}

.p-pricing-options__item-price {
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

/* ---------- FAQ ---------- */
.p-pricing-faq__list {
  border-top: var(--line);
}

.p-pricing-faq__item {
  border-bottom: var(--line);
}

.p-pricing-faq__question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--sp-md) 0;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.04em;
  user-select: none;
  transition: var(--ease);
}

.p-pricing-faq__question:hover {
  opacity: 0.5;
}

.p-pricing-faq__toggle {
  font-family: var(--font-en);
  font-size: 18px;
  font-weight: 200;
  line-height: 1;
  flex-shrink: 0;
  width: 24px;
  text-align: center;
  transition: var(--ease);
}

.p-pricing-faq__item.is-open .p-pricing-faq__toggle {
  transform: rotate(45deg);
}

.p-pricing-faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.p-pricing-faq__item.is-open .p-pricing-faq__answer {
  max-height: 400px;
}

.p-pricing-faq__answer-inner {
  padding: 0 0 var(--sp-lg);
  font-size: 12px;
  color: var(--ink-light);
  line-height: 2.2;
  letter-spacing: 0.04em;
}

/* ---------- Contact Form ---------- */
/* ---------- Contact Form (Premium 2-Column) ---------- */
.contact__form-wrap {
  max-width: 100%;
}

.contact__form {
  display: flex;
  flex-direction: column;
  /* フォーム全体の一番上に黒線を引いて、表のように引き締める */
  border-top: var(--line);
}

.contact__item {
  display: grid;
  /* PC表示：左側の項目名を300pxに固定し、右側を入力エリアとして画面いっぱいに広げる */
  grid-template-columns: 300px 1fr;
  gap: var(--sp-xl);
  padding: var(--sp-xl) 0;
  border-bottom: var(--line);
  align-items: flex-start;
}

.contact__label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

/* 必須ラベルを項目名の上に配置（黒背景・白文字でパキッと） */
.contact__label .req {
  background: var(--ink);
  color: var(--bg);
  padding: 4px 10px;
  font-size: 10px;
  font-family: var(--font-en);
  letter-spacing: 0.1em;
  line-height: 1;
}

.contact__label label {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.08em;
  line-height: 1.6;
}

.contact__label label span {
  display: block;
  font-size: 11px;
  font-weight: 300;
  color: var(--ink-lighter);
  margin-top: 6px;
}

/* 入力エリア（2カラムで広々使えるため、下線をなくして極限までシンプルに） */
.contact__input input,
.contact__input textarea {
  width: 100%;
  background: transparent;
  border: none;
  padding: 8px 0;
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  border-radius: 0;
}

.contact__input textarea {
  resize: vertical;
  min-height: 160px; /* PCでは少し高さを出して書きやすく */
}

/* 入力中に枠が出ないようにする */
.contact__input input:focus,
.contact__input textarea:focus {
  outline: none;
}

.contact__input input::placeholder,
.contact__input textarea::placeholder {
  color: #CCCCCC;
  font-size: 14px;
}

.contact__submit {
  margin-top: var(--sp-3xl);
  text-align: center; /* 右寄せにすることで、最後の視線誘導を美しくする */
}

.contact__btn {
  display: inline-block;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.1em;
  padding: 24px 80px;
  border: 1px solid var(--ink);
  cursor: pointer;
  transition: all var(--ease);
}

.contact__btn:hover {
  background: var(--bg);
  color: var(--ink);
}

/* スマホ表示の調整（画面が狭いので縦並びに戻す） */
@media (max-width: 768px) {
  .contact__item {
    grid-template-columns: 1fr;
    gap: var(--sp-md);
    padding: var(--sp-lg) 0;
  }
  .contact__label {
    gap: 8px;
  }
  .contact__submit {
    text-align: center; /* スマホでは中央寄せ */
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  :root {
    --sp-sec: 120px;
  }

  .header {
    padding: var(--sp-md) var(--sp-lg);
  }

  .header__logo {
    font-size: 16px; 
  }
  
  .header__menu-btn {
    width: 28px;
    gap: 6px;
  }

  .header__overlay-close {
    top: var(--sp-md);  /* スマホ版ヘッダーの上余白（24px） */
    right: var(--sp-lg); /* スマホ版ヘッダーの右余白（32px） */
    height: 29px;
  }

  .hero {
    min-height: 80vh;
    padding-bottom: var(--sp-2xl);
  }

  .hero__title {
    font-size: clamp(36px, 12vw, 64px);
  }

  .features__grid {
    grid-template-columns: 1fr;
  }

  .features__item {
    border-right: none;
  }

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

  .flow__item:nth-child(2n) {
    border-right: none;
  }

  .flow__item:last-child {
    border-right: none;
  }

  .section__title-en {
    font-size: clamp(40px, 12vw, 72px);
  }

  .pricing__table th {
    width: 100px;
    padding: var(--sp-sm);
  }

  .pricing__table td {
    padding: var(--sp-sm);
  }

  .cta {
    text-align: left;
  }

  .footer__inner {
    flex-direction: column;
    gap: var(--sp-sm);
    align-items: flex-start;
  }

  .p-pricing-hero {
    min-height: 50vh;
  }

  .p-pricing-hero__title {
    font-size: clamp(36px, 12vw, 64px);
  }

  .p-pricing-plans__grid {
    grid-template-columns: 1fr;
  }

  .p-pricing-plans__item {
    border-right: none;
  }

  .header__overlay-nav a {
    font-size: clamp(24px, 7vw, 36px);
  }
}

/* ============================================================
   Global Invert Effect (全画面反転アニメーション)
   ============================================================ */
/* 全画面反転のクラスが付与された時の設定
   hue-rotate(180deg)を入れることで、白黒は維持しつつ
   もし画像や色があった場合に、色が補色に変わるのを防ぎます。
*/
#top.is-global-inverted {
  filter: invert(1) hue-rotate(180deg);
  background-color: var(--ink); /* 反転した瞬間の背景色を黒に固定 */
  transition: filter 0.6s cubic-bezier(0.25, 1, 0.5, 1), background-color 0.6s ease;
}

/* 全画面反転中、バナー自体の色を「黒」から「白」へ反転させる */
#top.is-global-inverted .campaign-badge {
  background: var(--bg); /* バナーを白に */
  color: var(--ink);    /* 文字を黒に */
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3); /* 影を少し強調 */
}

/* 全画面反転中、バナーの中にある「CAMPAIGN」タグの色も反転させる */
#top.is-global-inverted .campaign-badge__en {
  background: var(--ink); /* タグを黒に */
  color: var(--bg);      /* 文字を白に */
}

/* 全画面反転中、バナーホバー時の色を調整（白から薄いグレーへ） */
#top.is-global-inverted .campaign-badge:hover {
  background: #EEEEEE; /* 少しグレーにしてホバー感を出す */
}

/* 【重要】全画面反転中、画像（Worksセクションなど）まで反転して
   色が変になるのを防ぐため、画像だけもう一度反転させて元に戻す。
*/
#top.is-global-inverted img {
  filter: invert(1) hue-rotate(180deg);
}

/* ============================================================
   Smooth Scroll (Lenis)
   ============================================================ */
html.lenis {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto;
}
.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}
.lenis.lenis-stopped {
  overflow: hidden;
}
.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

/* ============================================================
   Custom Cursor (反転エフェクト追加版)
   ============================================================ */
@media (hover: hover) and (pointer: fine) {
  body, a, button {
    cursor: none; 
  }
  
  .cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background-color: #FFFFFF; 
    border-radius: 50%;
    z-index: 10000;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
    mix-blend-mode: difference; 
  }
  
  .cursor-follower {
    position: fixed;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    border: 1px solid #FFFFFF; 
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background-color 0.2s, border-color 0.2s;
    mix-blend-mode: difference; 
  }
  
  .cursor.is-active {
    width: 0;
    height: 0;
  }
  .cursor-follower.is-active {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.2); 
    border-color: transparent;
  }
}

/* ============================================================
   Hero Animation (マスク・スライドアップ)
   ============================================================ */

/* 文字を隠すための「見えない窓」の役割 */
.hero__title-line {
  display: block;
  overflow: hidden; 
  /* ▼ 追加：各行の箱を「文字の長さぴったり」に縮める！ ▼ */
  width: fit-content;
  /* ▼ 追加：文字の行だけ判定を復活させる！ ▼ */
  pointer-events: auto;
}

/* 窓の下（110%の位置）から上にスライドしてくるアニメーション */
.hero__title-line span {
  display: block;
  transform: translateY(110%); 
  opacity: 0;
  animation: heroSlideUp 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

/* ★修正：ローディング画面（約1.4秒）が終わるのを待ってからスタートさせる！ */
.hero__title-line:nth-child(1) span { animation-delay: 0.1s; }
.hero__title-line:nth-child(2) span { animation-delay: 0.2s; }
.hero__title-line:nth-child(3) span { animation-delay: 0.3s; }

@keyframes heroSlideUp {
  0% {
    transform: translateY(110%);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* サブテキストとスクロールのフワッと出現 */
.js-hero-fade {
  opacity: 0;
  animation: heroFadeIn 1.5s ease forwards;
}

/* タイトルが出終わった頃（2.5秒後）にサブテキストが出る */
.hero__sub.js-hero-fade { animation-delay: 2.5s; }
/* 最後にスクロール表示が出る */
.hero__scroll.js-hero-fade { animation-delay: 2.9s; }

@keyframes heroFadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

/* ============================================================
   Problem Scroll Indicator (下に線が流れるアニメーション)
   ============================================================ */
.problem__scroll {
  position: absolute;
  bottom: var(--sp-2xl);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 1;
  transition: opacity 0.5s ease;
}

/* 最後の行に到達したらフワッと隠すためのクラス */
.problem__scroll.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.problem__scroll-text {
  font-family: var(--font-en);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.2em;
  color: var(--ink-lighter);
}

/* 線のベース部分（薄いグレー） */
.problem__scroll-line {
  width: 1px;
  height: 40px;
  background: var(--line-light);
  position: relative;
  overflow: hidden;
}

/* 上から下に流れる黒い線のアニメーション */
.problem__scroll-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--ink);
  transform: translateY(-100%);
  animation: scrollDownDrop 1.8s cubic-bezier(0.25, 1, 0.5, 1) infinite;
}

@keyframes scrollDownDrop {
  0% { transform: translateY(-100%); }
  50% { transform: translateY(0); }
  100% { transform: translateY(100%); }
}

/* スマホ表示の時は位置を少し上にあげる */
@media (max-width: 768px) {
  .problem__scroll {
    bottom: var(--sp-lg);
  }
}

/* ---------- Campaign Badge (Fixed Banner) ---------- */
.campaign-badge {
  position: fixed;
  bottom: var(--sp-xl);
  right: var(--sp-xl);
  z-index: 900;
  background: var(--ink);
  color: var(--bg);
  padding: 12px 24px 12px 12px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  /* ▼ 追加：白背景に反転した時、背景に溶け込まないようにあらかじめ枠線を仕込む */
  border: 1px solid var(--ink);
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  text-decoration: none;
}

/* ▼ ここが反転の魔法！ ▼ */
.campaign-badge:hover {
  transform: translateY(-8px);
  background: var(--bg); /* 背景を白に */
  color: var(--ink);     /* 文字を黒に */
}

/* 中にある「CAMPAIGN」のタグ（通常時：白背景に黒文字） */
.campaign-badge__en {
  font-family: var(--font-en);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  background: var(--bg);
  color: var(--ink);
  padding: 6px 12px;
  border-radius: 100px;
  transition: all 0.4s ease;
}

/* ▼ ホバー時：中のタグも反転（黒背景に白文字） ▼ */
.campaign-badge:hover .campaign-badge__en {
  background: var(--ink);
  color: var(--bg);
}

.campaign-badge__ja {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
}

/* スマホ表示の調整 */
@media (max-width: 768px) {
  .campaign-badge {
    bottom: var(--sp-md);
    right: var(--sp-md);
    padding: 8px 16px 8px 8px;
    gap: 12px;
  }
  .campaign-badge__en {
    font-size: 9px;
    padding: 4px 8px;
  }
  .campaign-badge__ja {
    font-size: 11px;
  }
}

/* ▼ 追加：FV反転と連動してバナーが白黒反転する魔法 ▼ */
.campaign-badge.is-inverted {
  background: var(--bg); /* 背景を白に */
  color: var(--ink);     /* 文字を黒に */
  border-color: var(--bg); /* 枠線も白にして同化させる */
}

/* 反転中の中のタグ（黒背景に白文字） */
.campaign-badge.is-inverted .campaign-badge__en {
  background: var(--ink);
  color: var(--bg);
}

/* 反転中にバナー自体をホバーした時（少しグレーにして浮遊感を出す） */
.campaign-badge.is-inverted:hover {
  background: #EEEEEE;
}

/* ============================================================
   Loading Sync (ローディングとの連動)
   ============================================================ */
/* bodyに is-ready が付いていない間は、FVのアニメーションを一時停止させる */
body:not(.is-ready) .hero__title-line span {
  animation-play-state: paused !important;
}

/* ============================================================
   TV Scale Page Transition (CodyHouse風)
   ============================================================ */
.transition-tv {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--ink); /* 黒い画面で覆う */
  z-index: 100000;
  pointer-events: none;
  /* 初期状態は画面を覆っている */
  transform: scale(1, 1);
  transform-origin: center center;
}

/* ページに入ってきた時のアニメーション（TVオン） */
.transition-tv.is-enter {
  animation: tvEnter 1s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

/* リンクをクリックしてページから出る時のアニメーション（TVオフ） */
.transition-tv.is-leave {
  animation: tvLeave 1s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

/* Enter（ページを開く）: 全画面 -> 細い線に潰れる -> 短くなる -> 消える */
@keyframes tvEnter {
  0%   { transform: scale(1, 1); opacity: 1; }
  40%  { transform: scale(1, 0.002); opacity: 1; }
  80%  { transform: scale(0.2, 0.002); opacity: 1; }
  100% { transform: scale(0.2, 0.002); opacity: 0; }
}

/* Leave（リンクをクリック）: 短い線が現れる -> 左右に伸びる -> 全画面に広がる */
@keyframes tvLeave {
  0%   { transform: scale(0.2, 0.002); opacity: 0; }
  20%  { transform: scale(0.2, 0.002); opacity: 1; }
  60%  { transform: scale(1, 0.002); opacity: 1; }
  100% { transform: scale(1, 1); opacity: 1; }
}

/* ============================================================
   Campaign Page Styles
   ============================================================ */
.p-campaign-details {
  border: var(--line);
  padding: var(--sp-2xl) var(--sp-lg);
  text-align: center;
  margin-bottom: var(--sp-3xl);
}

.p-campaign-details__title {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--ink);
}

.p-campaign-details__price {
  font-family: var(--font-en);
  font-size: clamp(40px, 8vw, 80px);
  font-weight: 200;
  color: var(--ink);
  margin: var(--sp-md) 0;
  line-height: 1;
}

/* 取り消し線（55,000円）の装飾 */
.p-campaign-details__price span.strike {
  text-decoration: line-through;
  color: var(--ink-lighter);
  font-size: 0.5em;
  margin-right: 16px;
}

.p-campaign-details__price span.free {
  font-family: var(--font-ja);
  font-size: 0.4em;
  font-weight: 700;
  margin-left: 8px;
  letter-spacing: 0.05em;
}

/* 適用条件ボックス */
.p-campaign-condition {
  display: inline-block;
  text-align: left;
  background: #FAFAFA;
  padding: var(--sp-lg) var(--sp-xl);
  margin-top: var(--sp-lg);
  border-left: 4px solid var(--ink);
}

.p-campaign-condition__title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
  letter-spacing: 0.06em;
}

.p-campaign-condition__text {
  font-size: 12px;
  color: var(--ink-light);
  line-height: 1.8;
}

/* お申し込みフォームのチェックボックス */
.contact__checkbox-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  margin-top: 8px;
}

.contact__checkbox-wrap input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border: 1px solid var(--ink);
  border-radius: 0;
  cursor: pointer;
  position: relative;
  transition: all var(--ease);
}

.contact__checkbox-wrap input[type="checkbox"]:checked {
  background-color: var(--ink);
}

.contact__checkbox-wrap input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 7px;
  width: 4px;
  height: 8px;
  border-right: 2px solid var(--bg);
  border-bottom: 2px solid var(--bg);
  transform: rotate(45deg);
}

.contact__checkbox-wrap span {
  font-size: 13px;
  color: var(--ink);
  font-weight: 500;
}