/* ====================================================
   PALETTE. 共通スタイル
   ==================================================== */

:root {
  --orange: #ff7f50;
  --orange-dark: #e85f30;
  --orange-glow: rgba(255, 127, 80, 0.4);
  --cream: #f5f5dc;
  --paper: #f8f8ff;
  --ink: #1c1c1c;
  --rule: rgba(28, 28, 28, 0.12);
}

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

html, body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Manrope', sans-serif;
  font-weight: 400;
  line-height: 1.55;
  overflow-x: hidden;
  cursor: none;
}

@media (max-width: 768px) {
  html, body { cursor: auto; }
}

body.loading { overflow: hidden; }

.display { font-family: 'Familjen Grotesk', sans-serif; }

a { color: inherit; text-decoration: none; }

img, svg, video { max-width: 100%; display: block; }

/* ============ カスタムカーソル ============ */
.cursor {
  position: fixed;
  width: 16px; height: 16px;
  background: var(--ink);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  mix-blend-mode: difference;
  transition: width 0.2s, height 0.2s, background 0.2s;
  transform: translate(-50%, -50%);
}
.cursor.hover {
  width: 60px; height: 60px;
  background: var(--orange);
}
@media (max-width: 768px) { .cursor { display: none; } }

/* ============================================
   ナビゲーション(ダイナミック版)
   ============================================ */
.nav {
  position: fixed;
  top: 20px; left: 20px; right: 20px;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none; /* 子要素だけ反応 */
}

.nav__logo {
  pointer-events: auto;
  background: var(--ink);
  color: var(--paper);
  padding: 14px 24px;
  font-family: 'Familjen Grotesk', sans-serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
  border-radius: 100px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav__logo:hover { transform: scale(1.05); }
.nav__logo .dot {
  display: inline-block;
  color: var(--orange);
  /* オレンジドットが脈打つ */
  animation: pulseDot 2s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.3); }
}

.nav__menu {
  pointer-events: auto;
  display: flex;
  gap: 4px;
  list-style: none;
  background: var(--paper);
  padding: 6px;
  border-radius: 100px;
  border: 2px solid var(--ink);
  position: relative;
}

.nav__menu li {
  position: relative;
}

.nav__menu a {
  display: inline-block;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 100px;
  position: relative;
  z-index: 2;
  transition: color 0.3s;
  letter-spacing: 0.02em;
}

.nav__menu a::before {
  /* ホバー時にオレンジの背景が広がる */
  content: '';
  position: absolute;
  inset: 0;
  background: var(--orange);
  border-radius: 100px;
  transform: scale(0.3);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(.4,0,.2,1), opacity 0.3s;
  z-index: -1;
}

.nav__menu a:hover::before,
.nav__menu a.is-active::before {
  transform: scale(1);
  opacity: 1;
}

.nav__menu a:hover,
.nav__menu a.is-active {
  color: var(--paper);
}

.nav__menu a.is-active::after {
  /* アクティブページにオレンジドット */
  content: '';
  position: absolute;
  bottom: -2px; left: 50%;
  transform: translateX(-50%);
  width: 6px; height: 6px;
  background: var(--orange);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--orange-glow);
}

/* CTAボタン(右端、ナビ内に追加可能) */
.nav__cta {
  pointer-events: auto;
  background: var(--orange);
  color: var(--paper);
  padding: 12px 24px;
  font-family: 'Familjen Grotesk', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.05em;
  border-radius: 100px;
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.3s, box-shadow 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav__cta:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}
.nav__cta-arrow {
  display: inline-block;
  transition: transform 0.3s;
}
.nav__cta:hover .nav__cta-arrow {
  transform: translateX(4px);
}

@media (max-width: 768px) {
  .nav__menu { display: none; }
  .nav__cta { padding: 10px 18px; font-size: 12px; }
}

/* ハンバーガーメニュー (モバイル用) */
.nav__burger {
  display: none;
  pointer-events: auto;
  width: 48px; height: 48px;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}
.nav__burger span {
  width: 20px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s;
}
@media (max-width: 768px) {
  .nav__burger { display: flex; }
}

/* モバイルメニューオーバーレイ */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--orange);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transform: translateY(-100%);
  transition: transform 0.5s cubic-bezier(.7,0,.3,1);
}
.mobile-menu.is-open { transform: translateY(0); }
.mobile-menu a {
  font-family: 'Familjen Grotesk', sans-serif;
  font-weight: 700;
  font-size: 40px;
  color: var(--paper);
  margin: 16px 0;
  letter-spacing: -0.02em;
}
.mobile-menu__close {
  position: absolute;
  top: 24px; right: 24px;
  width: 48px; height: 48px;
  background: var(--paper);
  color: var(--ink);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  border: none;
  font-family: inherit;
}

/* ============================================
   ページトランジション(軽量版)
   ============================================ */
.page-transition {
  position: fixed;
  inset: 0;
  background: var(--orange);
  z-index: 9998;
  transform: translateY(100%);
  pointer-events: none;
}
.page-transition.is-entering {
  animation: pageEnter 0.6s cubic-bezier(.7,0,.3,1) forwards;
}
.page-transition.is-leaving {
  animation: pageLeave 0.6s cubic-bezier(.7,0,.3,1) forwards;
}
@keyframes pageEnter {
  0% { transform: translateY(100%); }
  100% { transform: translateY(0); }
}
@keyframes pageLeave {
  0% { transform: translateY(0); }
  100% { transform: translateY(-100%); }
}

/* トランジション中央のロゴ */
.page-transition__logo {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--paper);
  font-family: 'Familjen Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(60px, 12vw, 160px);
  letter-spacing: -0.05em;
  opacity: 0;
}
.page-transition.is-entering .page-transition__logo {
  animation: logoShow 0.6s 0.2s ease forwards;
}
@keyframes logoShow {
  to { opacity: 1; }
}
.page-transition__logo .dot { color: var(--cream); }

/* ============================================
   フッター(共通)
   ============================================ */
.footer {
  background: var(--ink);
  color: var(--paper);
  padding: 100px 20px 40px;
  position: relative;
  overflow: hidden;
}

.footer__big {
  font-family: 'Familjen Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(80px, 18vw, 280px);
  line-height: 0.85;
  letter-spacing: -0.05em;
  margin-bottom: 60px;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}
.footer__big .dot {
  color: var(--orange);
  text-shadow: 0 0 60px var(--orange-glow);
}

.footer__grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 40px 0;
  border-top: 1px solid rgba(248, 248, 255, 0.15);
}
.footer__col h4 {
  font-family: 'Familjen Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 16px;
}
.footer__col p,
.footer__col li {
  font-size: 14px;
  line-height: 1.7;
  opacity: 0.85;
  list-style: none;
}
.footer__col a:hover {
  color: var(--orange);
}
.footer__bottom {
  max-width: 1400px;
  margin: 0 auto;
  padding-top: 32px;
  border-top: 1px solid rgba(248, 248, 255, 0.15);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
  opacity: 0.5;
}

@media (max-width: 768px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__col:first-child { grid-column: 1 / -1; }
}

/* ============================================
   共通ユーティリティ
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s, transform 0.9s;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ページタイトル(下層ページ共通) */
.page-header {
  padding: 180px 20px 80px;
  max-width: 1500px;
  margin: 0 auto;
}
.page-header__crumb {
  display: inline-block;
  font-family: 'Familjen Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 24px;
  padding: 6px 16px;
  border: 2px solid var(--orange);
  border-radius: 100px;
}
.page-header__title {
  font-family: 'Familjen Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(60px, 12vw, 160px);
  line-height: 0.9;
  letter-spacing: -0.05em;
  margin-bottom: 24px;
}
.page-header__title .dot { color: var(--orange); }
.page-header__lead {
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.6;
  max-width: 600px;
  color: rgba(28, 28, 28, 0.75);
}

/* お問い合わせバナー(下層ページ共通) */
.cta-banner {
  margin: 60px 20px;
  background: var(--orange);
  border-radius: 32px;
  padding: clamp(60px, 10vw, 100px) clamp(32px, 6vw, 80px);
  text-align: center;
  color: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: 0 0 60px var(--orange-glow);
  position: relative;
  overflow: hidden;
  max-width: calc(1500px - 40px);
  margin-left: auto;
  margin-right: auto;
}
.cta-banner::before {
  content: '';
  position: absolute;
  width: 320px; height: 320px;
  background: var(--cream);
  border-radius: 50%;
  top: -120px; left: -100px;
  opacity: 0.5;
}
.cta-banner::after {
  content: '';
  position: absolute;
  width: 240px; height: 240px;
  background: var(--paper);
  border-radius: 50%;
  bottom: -100px; right: -80px;
  opacity: 0.3;
}
.cta-banner__inner { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
.cta-banner__title {
  font-family: 'Familjen Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(40px, 7vw, 80px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
}
.cta-banner__text {
  font-size: 17px;
  line-height: 1.6;
  margin-bottom: 32px;
  opacity: 0.95;
}
.cta-banner__btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 22px 48px;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  border-radius: 100px;
  border: 2px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  transition: transform 0.3s, box-shadow 0.3s;
}
.cta-banner__btn:hover {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0 var(--ink);
}
.cta-banner__btn svg { width: 24px; height: 24px; fill: #06C755; }
