/* ==========================================================================
   HEADER (バグ修正・完璧な制御)
   ========================================================================== */
.header {
  position: fixed; top: 0; left: 0; width: 100%; height: var(--header-height);
  background: transparent; border-bottom: 1px solid transparent;
  z-index: 1000; backdrop-filter: none;
  transition: background 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

/* スクロール後：白背景を表示 */
.header.is-scrolled {
  background: rgba(255, 255, 255, 0.96) !important;
  border-bottom-color: var(--c-border) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  box-shadow: 0 1px 12px rgba(15, 44, 89, 0.06);
}
.header-inner { height: 100%; display: flex; justify-content: space-between; align-items: center; padding: 0 24px; max-width: var(--container-width); margin: 0 auto; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo__text { font-size: 1.2rem; font-weight: 800; letter-spacing: 0.05em; color: var(--c-black); }

/* Nav PC */
.nav-list { display: none; }
@media (min-width: 769px) {
  .nav-list { display: flex; align-items: center; gap: 16px; flex-wrap: nowrap; }
  .nav-list ul { list-style: none; display: flex; gap: 16px; margin: 0; padding: 0; }
  .nav-link { font-size: 0.82rem; font-weight: bold; color: var(--c-dark); white-space: nowrap; }
  .nav-link.active { color: var(--c-accent); }
  .nav-cta { min-height: 38px; padding: 0 16px; font-size: 0.82rem; margin-inline: 0; width: auto; flex-shrink: 0; white-space: nowrap; }
}

/* Nav SP Hamburger */
.menu-toggle {
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  width: 48px; height: 48px; background: none; border: none; cursor: pointer; z-index: 1002;
  position: relative;
}
@media (min-width: 769px) { .menu-toggle { display: none; } }
.bar { width: 24px; height: 2px; background-color: var(--c-black); transition: 0.3s; }
.menu-close {
  position: absolute;
  top: calc((var(--header-height, 64px) - 72px) / 2);
  right: 16px;
  width: 72px; height: 72px;
  background: none;
  border: 1px solid transparent;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 1;
  transition: border-color 0.25s ease, transform 0.25s ease, opacity 0.25s ease;
}
.menu-close::before,
.menu-close::after {
  content: '';
  position: absolute;
  width: 32px;
  height: 1px;
  background: var(--c-black);
}
.menu-close::before { transform: rotate(45deg); }
.menu-close::after  { transform: rotate(-45deg); }
.menu-close:hover {
  border-color: rgba(15, 44, 89, 0.2);
  transform: rotate(90deg);
  opacity: 0.7;
}

/* Nav Overlay */
.nav-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: var(--c-white);
  z-index: 1001; display: flex; flex-direction: column; justify-content: center; align-items: center;
  opacity: 0; visibility: hidden; transition: 0.3s;
}
.nav-overlay.is-open { opacity: 1; visibility: visible; }
.nav-overlay ul { list-style: none; padding: 0; text-align: center; }
.nav-overlay .nav-link { font-size: 1.5rem; font-weight: bold; color: var(--c-black); display: block; padding: 16px; }

/* Principles & Footer */
.principles-area { border-top: 1px solid var(--c-border); padding: 40px 0; }
.principles-grid { display: grid; grid-template-columns: 1fr; gap: 32px; text-align: center; }
.principle-item p { font-size: 0.85rem; color: var(--c-gray); margin-top: 8px; }
.principles-area .text-accent { color: rgba(195, 60, 60, 0.82); }
@media (min-width: 769px) { .principles-grid { grid-template-columns: repeat(3, 1fr); gap: 40px; } }

.footer { background: var(--c-light); border-top: 1px solid var(--c-border); padding: 60px 0 40px; }
.footer-top { display: grid; grid-template-columns: 1fr; gap: 40px; }
.footer-company-details { font-size: 0.85rem; color: var(--c-gray); }
.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.footer-heading { font-size: 0.85rem; letter-spacing: 0.1em; margin-bottom: 16px; }
.footer-links ul { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 12px; font-size: 0.85rem; color: var(--c-dark); }
.footer-bottom { border-top: 1px solid var(--c-border); padding-top: 24px; margin-top: 40px; text-align: center; font-size: 0.75rem; color: var(--c-gray); }
@media (min-width: 769px) { .footer-top { grid-template-columns: 1fr 2fr; } }

/* ==============================================
   SP Fixed CTA (右下フローティング・カプセル型)
============================================== */
/* モバイルでのスクロール時の下部余白確保 */
@media (max-width: 768px) { 
  body { padding-bottom: 120px; } 
}

/* フローティングコンテナ（右下固定） */
.sp-fixed-cta {
  position: fixed;
  bottom: calc(24px + var(--safe-bottom));
  right: 16px; /* 右下に配置 */
  left: auto; /* 全幅設定を解除 */
  width: auto;
  padding: 0;
  background: transparent;
  border: none;
  z-index: 999;

  /* ボタンを縦に並べるためのFlexbox */
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end; /* 右揃え */

  /* 【重要】透明なコンテナが背後のテキスト選択を邪魔しないようにする */
  pointer-events: none;

  /* スクロール前は非表示 */
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.sp-fixed-cta.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* 中のカプセル型ボタン */
.sp-fixed-cta .btn {
  pointer-events: auto; /* ボタン本体のみタップ可能にする */
  border-radius: 50px !important; /* 完全なカプセル型 */
  padding: 0 24px;
  min-height: 52px;
  box-shadow: 0 10px 25px rgba(15, 44, 89, 0.2); /* 監査カラーの影で浮遊感を出す */
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
  margin: 0;
  width: auto; /* テキスト幅に合わせる */
}

/* メインボタン（画像の上部オレンジに相当）：REMEDORAの黒でソリッドに */
.sp-fixed-cta .btn-primary {
  background: var(--c-black);
  color: var(--c-white);
  border: 1px solid var(--c-black);
}

/* サブボタン（画像の下部白に相当）：白背景＋ガラス質感で高級感を出す */
.sp-fixed-cta .btn-secondary {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--c-black);
  border: 1px solid var(--c-border);
}

/* PCでは非表示 */
@media (min-width: 769px) { 
  .sp-fixed-cta { display: none !important; } 
}

/* ==========================================================================
   SNS SECTION — liquid glass
   ========================================================================== */
.sns-section {
  padding: 80px 0;
  background: linear-gradient(150deg, #eef4fb 0%, #f5f8fc 55%, #edf2f8 100%);
  border-top: 1px solid var(--c-border);
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* 背景装飾：ぼんやりした光の球 */
.sns-section::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(6, 199, 85, 0.10) 0%, transparent 68%);
  pointer-events: none;
}
.sns-section::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -80px;
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(188, 24, 136, 0.08) 0%, transparent 68%);
  pointer-events: none;
}

.sns-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--c-gray);
  margin-bottom: 14px;
  position: relative;
}

.sns-title {
  font-size: clamp(1.1rem, 2.5vw, 1.45rem);
  font-weight: 900;
  color: var(--c-black);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
  position: relative;
}

.sns-desc {
  font-size: 0.88rem;
  color: var(--c-dark);
  line-height: 1.9;
  max-width: 420px;
  margin: 0 auto 40px;
  position: relative;
}

.sns-cards {
  display: flex;
  gap: 16px;
  justify-content: center;
  position: relative;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .sns-cards { flex-direction: column; }
  .sns-cards .sns-card { width: 100%; }
}

/* liquid glass カード — 横並びピル型 */
.sns-card {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  padding: 12px 28px 12px 12px;
  border-radius: 60px;
  text-decoration: none;
  color: var(--c-black);

  background: rgba(255, 255, 255, 0.52);
  backdrop-filter: blur(24px) saturate(1.6);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow:
    0 6px 24px rgba(15, 44, 89, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);

  transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.26s ease;
}

.sns-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow:
    0 14px 36px rgba(15, 44, 89, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* プラットフォームカラーのアイコン台座 */
.sns-card__icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: transform 0.24s ease;
}
.sns-card:hover .sns-card__icon {
  transform: scale(1.08);
}

.sns-card--line .sns-card__icon {
  background: #06C755;
  box-shadow: 0 4px 14px rgba(6, 199, 85, 0.35);
  color: #fff;
}

.sns-card--instagram .sns-card__icon {
  background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  box-shadow: 0 4px 14px rgba(188, 24, 136, 0.28);
  color: #fff;
}

.sns-card__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}

.sns-card__name {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--c-black);
  line-height: 1;
}

.sns-card__handle {
  font-size: 0.75rem;
  color: var(--c-gray);
  line-height: 1;
}

/* フッター内 SNS アイコン */
.footer-sns {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  margin-bottom: 4px;
}

.footer-sns-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: var(--c-gray);
  border: 1px solid var(--c-border);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.footer-sns-link--line:hover {
  color: #06C755;
  border-color: #06C755;
  box-shadow: 0 0 0 3px rgba(6, 199, 85, 0.12);
}

.footer-sns-link--instagram:hover {
  color: #dc2743;
  border-color: #dc2743;
  box-shadow: 0 0 0 3px rgba(220, 39, 67, 0.10);
}

/* Load Screen */
#loading-screen { position: fixed; inset: 0; background: var(--c-white); z-index: 9999; display: flex; flex-direction: column; justify-content: center; align-items: center; animation: loading-auto-hide 0.4s ease-out 0.9s both; }
#loading-screen.is-hidden { opacity: 0; pointer-events: none; visibility: hidden; animation: none; }
@keyframes loading-auto-hide { to { opacity: 0; visibility: hidden; } }
.loading-text { font-weight: bold; letter-spacing: 0.1em; font-family: monospace; }
.loading-bar-wrap { width: 120px; height: 2px; background: var(--c-border); border-radius: 2px; margin-top: 16px; }
.loading-bar { height: 100%; background: var(--c-black); border-radius: 2px; transform: scaleX(0); transform-origin: left; animation: loading-progress 0.85s cubic-bezier(0.4, 0, 0.2, 1) forwards; }
@keyframes loading-progress { 0% { transform: scaleX(0); } 100% { transform: scaleX(1); } }
