/* ==============================================
   About Page: Supreme Dynamic UX (最終完成版)
============================================== */

/* ページ専用変数 */
:root {
  --abt-blue-light:  rgba(100, 180, 230, 0.10);
  --abt-blue-mid:    rgba(100, 180, 230, 0.30);
  --abt-blue-border: rgba(100, 180, 230, 0.50);
  --abt-blue-accent: rgba(100, 180, 230, 0.85);
}

/* ★親要素の制限解除（Stickyの作動に必須） */
body, main, .section, .container, .reveal { overflow: visible !important; }

/* --- 1. ヒーローエリア --- */
.page-header-minimal { text-align: center; }
.page-header-minimal p { color: var(--c-gray); font-weight: bold; letter-spacing: 0.05em; margin: 0; }

.about-hero-eyebrow {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--c-accent);
  margin-bottom: 20px;
  display: block;
  text-transform: uppercase;
}

.about-hero-lead {
  font-size: 0.95rem;
  color: var(--c-gray);
  font-weight: bold;
  letter-spacing: 0.04em;
  margin: 16px 0 0;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
  /* 薄い水色のアンダーライン */
  border-top: 1px solid var(--abt-blue-border);
  padding-top: 16px;
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.7;
  animation: scrollBounce 2s 3;
}
.scroll-text { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.1em; color: var(--c-dark); }
.scroll-line { width: 1px; height: 40px; background: var(--c-dark); }

@keyframes scrollBounce {
  0%, 100% { transform: translate(-50%, 0); opacity: 0.5; }
  50% { transform: translate(-50%, 10px); opacity: 1; }
}

/* --- 2. ステートメント（同一座標クロスフェード） --- */
.sticky-viewport {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: transparent;
}

.st-item {
  position: absolute;
  width: 100%;
  max-width: 800px;
  padding: 0 24px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease, visibility 0.5s;
  z-index: 1;
  text-align: center;
}

.st-item.is-active { opacity: 1; visibility: visible; transform: translateY(0); z-index: 2; }
.statement-catch-sp { font-size: clamp(1.75rem, 5vw, 2.75rem); font-weight: 900; line-height: 1.5; color: var(--c-black); letter-spacing: 0.05em; margin: 0; }
.st-item p { font-size: 1.15rem; line-height: 2.2; color: var(--c-dark); font-weight: bold; margin: 0; }


/* --- 3. 3つの制作方針（Grid同期レイヤー） --- */
.policy-stack-grid {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 800px;
  margin: 0 auto;
}

.policy-layer {
  grid-row: 1;
  grid-column: 1;
  position: relative;
  height: 100%;
}

.layer-1 { z-index: 1; }
.layer-2 { z-index: 2; pointer-events: none; }
.layer-3 { z-index: 3; pointer-events: none; }

.policy-title {
  position: -webkit-sticky;
  position: sticky;
  top: calc(var(--header-height, 60px) + 16px);
  z-index: 10;
  text-align: center;
  font-size: 1.5rem;
  letter-spacing: 0.1em;
  font-weight: 900;
  color: var(--c-black);
  margin: 0 0 32px 0;
  background: var(--c-light);
  padding: 16px 0;
}

.policy-card {
  position: -webkit-sticky;
  position: sticky;
  top: calc(var(--header-height, 60px) + 90px);
  pointer-events: auto;
  background: var(--c-white);
  border: 1px solid rgba(15, 44, 89, 0.1);
  border-radius: 20px;
  padding: 40px 24px;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
@media (min-width: 769px) { .policy-card { flex-direction: row; padding: 48px; align-items: flex-start; } }

.card-base { margin-top: 0; background: rgba(245, 245, 245, 0.95); }
/* 水色アクセントラインを card02 に適用 */
.overlay-2 { margin-top: 80vh; border-top: 4px solid var(--c-accent); }
.overlay-3 { margin-top: 160vh; border-top: 4px solid var(--c-black); }

.policy-num { font-family: var(--font-mono); font-size: 3rem; font-weight: 900; color: var(--c-accent); line-height: 1; flex-shrink: 0; }
.policy-content h3 { font-size: 1.4rem; font-weight: 900; color: var(--c-black); margin-bottom: 16px; }
.policy-content p { font-size: 1rem; line-height: 2; color: var(--c-dark); margin: 0; font-weight: bold; }


/* --- 4. 代表メッセージ（LINE風・時間差ポップイン） --- */
.ceo-chat-section { max-width: 600px; margin: 0 auto; }
.ceo-intro-simple { text-align: center; margin-bottom: 40px; display: flex; flex-direction: column; align-items: center; }
.ceo-chat-photo-center { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; box-shadow: 0 10px 30px rgba(15, 44, 89, 0.1); margin-bottom: 16px; border: 4px solid var(--c-white); }
.ceo-name-badge-center { display: flex; flex-direction: column; align-items: center; }
.ceo-role-badge { font-size: 0.75rem; font-weight: bold; color: var(--c-accent); margin-bottom: 4px; }
.ceo-name-text { font-size: 1.3rem; font-weight: 900; color: var(--c-black); letter-spacing: 0.1em; }

.chat-timeline { display: flex; flex-direction: column; gap: 24px; padding: 40px 24px; background: rgba(15, 44, 89, 0.03); border-radius: 24px; }

@keyframes linePop {
  0% { opacity: 0; transform: scale(0.8) translateY(10px); }
  60% { opacity: 1; transform: scale(1.02) translateY(-2px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.js-chat-bubble { opacity: 0; transform-origin: left top; }
.js-chat-bubble.is-visible { animation: linePop 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
.chat-bubble { background: var(--c-white); padding: 16px 20px; border-radius: 0 20px 20px 20px; box-shadow: 0 4px 12px rgba(0,0,0,0.05); font-size: 0.95rem; line-height: 1.9; color: var(--c-dark); font-weight: bold; align-self: flex-start; max-width: 90%; }
.chat-bubble.catch-bubble { font-size: 1.2rem; font-weight: 900; color: var(--c-black); border-left: 4px solid var(--c-accent); }


/* --- 5. 制作時に大切にしている約束 --- */
.about-promise-section {
  background: linear-gradient(175deg, var(--abt-blue-light) 0%, rgba(255,255,255,0) 60%);
  border-top: 1px solid var(--c-border);
}

.about-promise-inner {
  max-width: 720px;
  margin: 0 auto;
}

.about-promise-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--c-accent);
  margin-bottom: 12px;
}

.promise-list {
  list-style: none;
  padding: 0;
  margin: 40px 0 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--c-border);
}

@media (min-width: 640px) {
  .promise-list {
    grid-template-columns: repeat(2, 1fr);
    border: 1px solid var(--c-border);
    border-radius: 16px;
    overflow: hidden;
  }
}

.promise-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 24px 20px;
  border-bottom: 1px solid var(--c-border);
  background: var(--c-white);
}

@media (min-width: 640px) {
  .promise-item {
    border-right: 1px solid var(--c-border);
    border-bottom: 1px solid var(--c-border);
  }
  .promise-item:nth-child(2n) { border-right: none; }
  .promise-item:nth-last-child(-n+2) { border-bottom: none; }
}

.promise-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--c-accent);
  flex-shrink: 0;
  line-height: 1.6;
  min-width: 24px;
}

.promise-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.promise-head {
  font-size: 0.95rem;
  font-weight: 900;
  color: var(--c-black);
  line-height: 1.4;
}

.promise-desc {
  font-size: 0.875rem;
  color: var(--c-dark);
  line-height: 1.8;
  margin: 0;
}


/* --- 6. セキュリティ・権限付与 → 情報管理・公開作業の方針 --- */
.app-settings-wrapper { max-width: 600px; margin: 0 auto; }
.app-settings-header { text-align: center; margin-bottom: 40px; }
.sec-title-sp { font-size: 1.5rem; font-weight: 900; color: var(--c-black); margin: 0 0 8px 0; letter-spacing: 0.05em; }
.sec-subtitle-sp { font-size: 0.95rem; color: var(--c-accent); font-weight: bold; margin: 0; }
.app-settings-desc { font-size: 0.95rem; line-height: 1.9; color: var(--c-dark); margin-bottom: 32px; font-weight: bold; }

.app-list-ui {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
  background: var(--c-white);
  border-radius: 16px;
  border: 1px solid var(--c-border);
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}
.app-list-ui li { padding: 16px 20px; border-bottom: 1px solid var(--c-border); }
.app-list-ui li:last-child { border-bottom: none; }
.app-list-text strong { display: block; font-size: 1rem; color: var(--c-black); margin-bottom: 4px; font-weight: 900; }
.app-list-text span { display: block; font-size: 0.85rem; color: var(--c-dark); font-weight: bold; }
.app-settings-note { font-size: 0.85rem; color: var(--c-gray); font-weight: bold; margin: 0; text-align: center; }


/* --- 7. CTA --- */
.about-cta-section {
  border-top: 1px solid rgba(100, 180, 230, 0.25);
}

.about-cta-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: rgba(100, 180, 230, 0.7);
  margin-bottom: 16px;
  display: block;
}

.about-cta-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  align-items: center;
  margin-top: 8px;
}

.about-cta-sub-btn {
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 0.9rem;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 4px;
  font-weight: 700;
}

.about-cta-sub-btn:hover {
  color: var(--c-white);
  border-color: rgba(255, 255, 255, 0.6);
}


/* ==========================================================================
   ABOUT PAGE EXTRA COMPATIBILITY
   ========================================================================== */
.about-hero-minimal {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.about-hero-content {
  margin-top: -10vh;
}

.about-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  margin: 0 0 8px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.about-statement-scroll {
  height: 350vh;
  position: relative;
  background: transparent;
}

.about-policy-section {
  background: var(--c-light);
  padding-top: 80px;
  overflow: visible;
}

.about-policy-card-blacktop { border-top-color: var(--c-black); }
.about-policy-num-black { color: var(--c-black); }

.about-ceo-section {
  background: transparent;
  padding: 80px 0;
}

.about-security-section {
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  padding: 60px 0;
}

.about-footer-cta-title {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  margin-bottom: 24px;
  font-weight: 900;
}

.about-footer-cta-text {
  opacity: 0.8;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

.about-footer-cta-btn {
  color: var(--c-white);
  border-color: var(--c-white);
}

/* ==========================================================================
   PC LAYOUT REFINEMENTS (min-width: 900px)
   ========================================================================== */
@media (min-width: 900px) {
  .about-hero-minimal {
    min-height: unset;
    padding-top: calc(var(--header-height) + 72px);
    padding-bottom: 160px;
    justify-content: flex-start;
  }
  .about-hero-content {
    margin-top: 0;
    text-align: center;
  }
  .about-hero-minimal .about-hero-lead {
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }
  .policy-card {
    padding: 32px 40px;
  }
  .ceo-chat-section {
    max-width: 680px;
  }
}
