/* ============================================================
   Bloom Axis合同会社 — 共通スタイルシート（コーポレートサイト）
   可能性に、成長の軸を。
   ------------------------------------------------------------
   ここには全ページ共通のスタイルのみを記述する。
   ページ固有のスタイルは各HTMLのインライン<style>に書くこと。

   目次:
   01. CSS変数・リセット・ベース
   02. ヘッダー / ナビゲーション
   03. ボタン・リンク
   04. セクション共通・見出し
   05. ページヒーロー（下層ページ共通）
   06. VALUES カード（トップ・会社概要で共用）
   07. お問い合わせ誘導セクション（各ページ最下部・1箇所のみ）
   08. フッター
   09. アニメーション
   10. レスポンシブ
   ============================================================ */

/* ============================================================
   01. CSS変数・リセット・ベース
   ============================================================ */
:root {
  /* ブランドカラー */
  --navy:        #0D1B3D;
  --navy-soft:   #13234B;
  --pink:        #F28BA7;
  --pink-deep:   #E06E8F;
  --blush:       #FFE3EA;
  --lgray:       #E6E8EB;
  --white:       #FFFFFF;

  /* テキストカラー */
  --text:        #1C2333;
  --text-soft:   #5A6272;
  --text-faint:  #9AA1AE;
  --on-navy:     rgba(255,255,255,0.62);

  /* 罫線・淡色 */
  --line:        #E4E6EA;
  --bg-soft:     #F6F7F9;
  --pink-tint:   rgba(242,139,167,0.08);

  /* タイポグラフィ */
  --font-en:   'Inter', sans-serif;
  --font-base: 'Poppins', 'Noto Sans JP', sans-serif;

  /* レイアウト */
  --header-h:  72px;
  --container: 1120px;
  --radius:    4px;
  --ease:      cubic-bezier(0.22, 1, 0.36, 1);

  /* 影 */
  --shadow-sm: 0 2px 12px rgba(13,27,61,0.06);
  --shadow-md: 0 10px 32px rgba(13,27,61,0.09);
}

/* 追加カラー変数 */
:root {
  --sakura:      #FFB7C5;
  --sakura-deep: #E8849A;
  --deep-black:  #060E17;
  --glass-bg:    rgba(13,27,61,0.55);
  --glass-border:rgba(242,139,167,0.18);
  --glow-pink:   0 0 40px rgba(242,139,167,0.22);
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); }

body {
  font-family: var(--font-base);
  color: var(--text);
  background: var(--white);
  line-height: 1.9;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--pink); color: var(--white); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 40px; }

/* ============================================================
   02. ヘッダー / ナビゲーション
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.4s var(--ease), border-color 0.4s;
}
.site-header.scrolled {
  box-shadow: 0 2px 28px rgba(13,27,61,0.09);
  border-bottom-color: var(--line);
}
/* スクロール時: ヘッダー下部にpinkのグラデーションライン */
.site-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--pink), var(--sakura), var(--pink), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}
.site-header.scrolled::after { opacity: 1; }

.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  height: 100%;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand { display: flex; align-items: center; }
.brand img { height: 48px; width: auto; transition: opacity 0.2s; }
.brand:hover img { opacity: 0.8; }

.global-nav { display: flex; align-items: center; gap: 6px; }
.global-nav a {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-soft);
  padding: 8px 16px;
  transition: color 0.2s;
}
.global-nav a::after {
  content: '';
  position: absolute;
  left: 16px; right: 16px; bottom: 2px;
  height: 2px;
  background: var(--pink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.global-nav a:hover { color: var(--navy); }
.global-nav a:hover::after,
.global-nav a.active::after { transform: scaleX(1); }
.global-nav a.active { color: var(--navy); font-weight: 700; }

/* ヘッダー右端のお問い合わせボタン（控えめな1つのみ） */
.nav-contact {
  border: 1px solid rgba(13,27,61,0.3);
  border-radius: var(--radius);
  color: var(--navy) !important;
  font-weight: 600 !important;
  padding: 9px 22px !important;
  margin-left: 10px;
  transition: background 0.25s, color 0.25s, border-color 0.25s !important;
}
.nav-contact::after { display: none; }
.nav-contact:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white) !important;
}

/* ハンバーガー（モバイル） */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  width: 44px; height: 44px;
  position: relative;
  z-index: 1100;
}
.menu-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--navy);
  margin: 5px auto;
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   03. ボタン・リンク
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 15px 38px;
  border-radius: var(--radius);
  border: none;
  transition: all 0.3s var(--ease);
}
.btn .arrow { transition: transform 0.3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover {
  background: var(--navy-soft);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1px solid rgba(13,27,61,0.28);
}
.btn-outline:hover {
  border-color: var(--navy);
  transform: translateY(-2px);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  transition: color 0.2s, gap 0.3s var(--ease);
}
.link-arrow:hover { color: var(--pink-deep); gap: 14px; }

/* ============================================================
   04. セクション共通・見出し
   ============================================================ */
section { padding: 88px 0; }

.sec-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--pink-deep);
  margin-bottom: 18px;
}
.sec-label::before {
  content: '';
  width: 26px; height: 1px;
  background: var(--pink);
}

.sec-title {
  font-family: 'Shippori Mincho', 'Noto Serif JP', serif;
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.01em;
  color: var(--navy);
  margin-bottom: 18px;
}
.sec-title.light { color: var(--white); }

.sec-lead {
  font-size: 15px;
  color: var(--text-soft);
  line-height: 2;
  max-width: 640px;
}

.sec-head { margin-bottom: 56px; }
.sec-head.split {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
}
.sec-head.center { text-align: center; }
.sec-head.center .sec-label { justify-content: center; }
.sec-head.center .sec-label::before { display: none; }
.sec-head.center .sec-lead { margin: 0 auto; }

/* ============================================================
   05. ページヒーロー（下層ページ共通）
   ============================================================ */
.page-hero {
  background: var(--navy);
  padding: calc(var(--header-h) + 48px) 0 44px;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  top: -200px; right: -140px;
  width: 480px; height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242,139,167,0.14) 0%, transparent 65%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero .sec-label { color: var(--pink); margin-bottom: 14px; }
.page-hero h1 {
  font-family: 'Shippori Mincho', 'Noto Serif JP', serif;
  font-size: clamp(28px, 3.8vw, 42px);
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.02em;
  line-height: 1.5;
  margin-bottom: 12px;
}
.page-hero .lead {
  font-size: 15px;
  color: var(--on-navy);
  max-width: 600px;
  line-height: 2;
}

/* ============================================================
   06. VALUES カード（トップ・会社概要で共用）
   ============================================================ */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.value-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 30px 28px;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.value-card:hover { border-color: var(--pink); box-shadow: var(--shadow-sm); }
.value-card .v-en {
  display: block;
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--pink-deep);
  margin-bottom: 10px;
}
.value-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.6;
  margin-bottom: 8px;
}
.value-card p { font-size: 13px; color: var(--text-soft); line-height: 1.95; }

/* ============================================================
   07. お問い合わせ案内セクション（各ページ最下部・控えめなリンクのみ）
   ============================================================ */
.contact-guide {
  background: linear-gradient(180deg, var(--white) 0%, var(--blush) 180%);
  border-top: 1px solid var(--line);
  text-align: center;
  padding: 88px 0;
}
.contact-guide .sec-label { justify-content: center; }
.contact-guide .sec-label::before { display: none; }
.contact-guide h2 {
  font-size: clamp(22px, 2.8vw, 30px);
  font-weight: 900;
  color: var(--navy);
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}
.contact-guide p {
  font-size: 14.5px;
  color: var(--text-soft);
  line-height: 2.1;
  max-width: 560px;
  margin: 0 auto 28px;
}
.contact-guide .link-arrow { justify-content: center; }

/* お問い合わせ帯のアクション（LINE + ページリンク） */
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px 32px;
}
.contact-guide .line-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: #06C755;
  color: var(--white);
  font-size: 13.5px;
  font-weight: 700;
  padding: 13px 30px;
  border-radius: 8px;
  letter-spacing: 0.04em;
  transition: opacity 0.2s, transform 0.25s;
}
.contact-guide .line-btn:hover { opacity: 0.88; transform: translateY(-2px); }

/* ============================================================
   08. フッター
   ============================================================ */
.site-footer {
  background: var(--deep-black);
  border-top: none;
  padding: 72px 0 32px;
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--pink) 30%, var(--sakura) 50%, var(--pink) 70%, transparent 100%);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 64px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 28px;
}
.footer-brand img { height: 44px; width: auto; margin-bottom: 18px; filter: brightness(0) invert(1) opacity(0.9); }
.footer-brand p { font-size: 12.5px; line-height: 2.1; color: rgba(255,255,255,0.38); }
.footer-brand p a { color: rgba(255,255,255,0.38); transition: color 0.2s; }
.footer-brand p a:hover { color: var(--pink); }

.footer-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer-col h4 {
  font-family: var(--font-en);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,0.38);
  margin-bottom: 10px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-copy { font-size: 11.5px; color: rgba(255,255,255,0.22); }
.footer-tagline-en {
  font-family: var(--font-en);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.18);
}

/* ============================================================
   09. アニメーション
   ============================================================ */
/* スクロールフェードイン（IntersectionObserverで .in を付与） */
.fade {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.fade.in { opacity: 1; transform: translateY(0); }

.fade-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.fade-left.in { opacity: 1; transform: translateX(0); }

.fade-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.fade-right.in { opacity: 1; transform: translateX(0); }

.fade-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.fade-scale.in { opacity: 1; transform: scale(1); }

/* stagger遅延 */
.s1 { transition-delay: 0.08s !important; }
.s2 { transition-delay: 0.16s !important; }
.s3 { transition-delay: 0.24s !important; }
.s4 { transition-delay: 0.32s !important; }
.s5 { transition-delay: 0.40s !important; }
.s6 { transition-delay: 0.48s !important; }

/* ページ表示時の時差フェード */
.reveal { opacity: 0; animation: fadeUp 0.9s var(--ease) forwards; }
.reveal.d1 { animation-delay: 0.1s; }
.reveal.d2 { animation-delay: 0.25s; }
.reveal.d3 { animation-delay: 0.42s; }
.reveal.d4 { animation-delay: 0.58s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.88); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes slideLeft {
  from { opacity: 0; transform: translateX(-32px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes gradShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33%       { transform: translateY(-14px) rotate(1deg); }
  66%       { transform: translateY(-6px) rotate(-1deg); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 rgba(242,139,167,0); }
  50%       { box-shadow: 0 0 60px rgba(242,139,167,0.18); }
}

@keyframes shimmer {
  0%   { transform: translateX(-100%) skewX(-15deg); }
  100% { transform: translateX(200%) skewX(-15deg); }
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50%       { transform: translateY(6px); opacity: 0.5; }
}

/* モーション低減設定に配慮 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   10. レスポンシブ（共通部分）
   ============================================================ */
@media (max-width: 860px) {
  .container { padding: 0 20px; }
  section { padding: 52px 0; }
  .header-inner { padding: 0 20px; }
  .brand img { height: 40px; }

  /* モバイルナビ */
  .menu-toggle { display: block; }
  .global-nav {
    position: fixed;
    top: var(--header-h); left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 24px 28px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    transform: translateY(-16px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s var(--ease), opacity 0.3s;
  }
  .global-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .global-nav a { padding: 14px 4px; font-size: 15px; border-bottom: 1px solid var(--line); }
  .global-nav a::after { display: none; }
  .nav-contact {
    margin: 14px 0 0 !important;
    text-align: center;
    justify-content: center;
    display: flex;
    border-bottom: 1px solid rgba(13,27,61,0.3) !important;
  }

  /* 見出し・ヒーロー */
  .sec-head.split { flex-direction: column; align-items: flex-start; gap: 12px; }
  .page-hero { padding: calc(var(--header-h) + 36px) 0 36px; }
  .sec-head { margin-bottom: 32px; }

  /* お問い合わせ案内 */
  .contact-guide { padding: 48px 0; }

  /* フッター */
  .site-footer { padding: 44px 0 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  /* スマホは左右2列: 左にMENU、右にSERVICES+COMPANYを縦積み */
  .footer-nav { grid-template-columns: repeat(2, 1fr); gap: 26px 18px; }
  .footer-nav .footer-col:first-child { grid-row: span 2; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 4px; }
  .footer-brand img { height: 48px; }
  .footer-brand p { font-size: 12px; }
}

@media (max-width: 480px) {
  /* お問い合わせ帯: スマホでもLINEボタンとリンクを横並びに */
  .cta-actions { gap: 10px 14px; }
  .contact-guide .line-btn { padding: 11px 16px; font-size: 12.5px; gap: 7px; }
  .contact-guide .line-btn svg { width: 14px; height: 14px; }
  .contact-guide .link-arrow { font-size: 12.5px; }
}

@media (min-width: 861px) and (max-width: 1080px) {
  .values-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ════════════════════════════════════════
   ページ遷移カーテン + イントロスプラッシュ
════════════════════════════════════════ */

/* ─ ページ遷移カーテン ─ */
#page-curtain {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: linear-gradient(160deg, #0D1B3D 0%, #060E17 55%, #12082a 100%);
  pointer-events: none;
  will-change: transform;
}
#page-curtain::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, #F28BA7 30%, #fff 50%, #F28BA7 70%, transparent 100%);
  box-shadow: 0 0 20px rgba(242,139,167,1), 0 0 50px rgba(242,139,167,0.5);
}

/* ─ イントロカバーページ ─ */
#intro-screen {
  position: fixed;
  inset: 0;
  z-index: 9500;
  background-image: url('intro-pc.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  overflow: hidden;
  animation: introScreenIn 0.5s ease forwards;
}
@media (max-width: 767px) {
  #intro-screen {
    background-image: url('intro-sp.png');
  }
}
@keyframes introScreenIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
/* プログレスバー */
.intro-footer {
  position: absolute;
  bottom: 44px; left: 0; right: 0;
  display: flex;
  justify-content: center;
}
.intro-progress-wrap {
  width: min(240px, 42vw);
  height: 2px;
  background: rgba(255,255,255,0.22);
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}
.intro-progress-bar {
  position: absolute;
  inset: 0 100% 0 0;
  background: linear-gradient(90deg, rgba(242,139,167,0.7), #ffffff);
  box-shadow: 0 0 10px rgba(255,255,255,0.7);
  animation: introProgress 3s linear 0.3s forwards;
}
@keyframes introProgress {
  from { right: 100%; }
  to   { right: 0%; }
}
