/*
Theme Name: &CREW Theme
Theme URI: https://andcrew.okinawa
Author: CODEVISION
Author URI: https://codevision.co.jp
Description: &CREW（アンドクルー）- AI人材チームによるBPOサービスの公式テーマ
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: andcrew
*/

/* ═══════════════════════════════════════════
   &CREW Design System v2
   ═══════════════════════════════════════════ */

:root {
  --navy: #132c4d;
  --navy-deep: #0a1a2f;
  --navy-light: #1e4578;
  --navy-muted: #5a7494;

  --coral: #e87a59;
  --coral-soft: #f0a48e;
  --coral-deep: #d96a48;
  --coral-glow: rgba(232, 122, 89, 0.2);
  --coral-subtle: rgba(232, 122, 89, 0.09);

  --paper: #f8f7f4;
  --paper-warm: #efeee9;
  --ink: #1a1816;
  --ink-muted: #5c5854;

  --shadow-sm: 0 2px 8px rgba(19, 44, 77, 0.06);
  --shadow-md: 0 12px 32px rgba(19, 44, 77, 0.08);
  --shadow-lg: 0 24px 48px rgba(19, 44, 77, 0.1);

  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ── タイポ ── */
.font-display, h1, h2 {
  font-family: 'Shippori Mincho', 'Noto Serif JP', serif;
  font-weight: 600;
  letter-spacing: 0.02em;
}

h3, h4, h5, h6, .font-heading {
  font-family: 'Zen Kaku Gothic New', 'Noto Sans JP', sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
}

body {
  font-family: 'Zen Kaku Gothic New', 'Noto Sans JP', sans-serif;
  color: var(--ink-muted);
  -webkit-font-smoothing: antialiased;
  background-color: var(--paper);
  line-height: 1.75;
  letter-spacing: 0.03em;
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

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

/* ── ヒーロー ── */
.ac-hero {
  position: relative;
  background:
    radial-gradient(ellipse 120% 80% at 100% 0%, rgba(232, 122, 89, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse 80% 60% at 0% 100%, rgba(19, 44, 77, 0.05) 0%, transparent 55%),
    linear-gradient(180deg, #fdfcfa 0%, var(--paper) 100%);
}

.ac-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cpath d='M30 0v60M0 30h60' stroke='%23132c4d' stroke-opacity='0.03' stroke-width='1'/%3E%3C/svg%3E");
  opacity: 0.6;
  pointer-events: none;
}

.ac-hero__inner { position: relative; z-index: 1; }

/* ── セクションラベル ── */
.ac-kicker {
  display: inline-block;
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--navy-muted);
  border-left: 3px solid var(--coral);
  padding-left: 0.875rem;
  margin-bottom: 1.25rem;
}

/* ── カード ── */
.ac-card {
  background: #fff;
  border: 1px solid rgba(19, 44, 77, 0.08);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}

.ac-card:hover {
  border-color: rgba(19, 44, 77, 0.18);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* ── ボタン ── */
.btn-accent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 700;
  font-size: 0.9375rem;
  cursor: pointer;
  background: var(--coral);
  color: #fff;
  padding: 1rem 2rem;
  border: none;
  text-decoration: none;
  letter-spacing: 0.06em;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
  box-shadow: 0 2px 0 var(--coral-deep);
}

.btn-accent:hover {
  background: var(--coral-deep);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px var(--coral-glow);
  color: #fff;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 700;
  font-size: 0.9375rem;
  cursor: pointer;
  background: transparent;
  color: var(--navy);
  padding: 1rem 2rem;
  border: 2px solid var(--navy);
  text-decoration: none;
  letter-spacing: 0.06em;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn-ghost:hover {
  background: var(--navy);
  color: #fff;
}

/* ── ヘッダー ── */
.site-header { transition: background 0.3s var(--ease), border-color 0.3s; }
.site-header__inner { border-bottom: 1px solid transparent; }

.site-header.header-scrolled .site-header__inner {
  background: rgba(248, 247, 244, 0.92);
  border-bottom-color: rgba(19, 44, 77, 0.08);
  backdrop-filter: blur(12px);
}

.custom-logo-link { display: inline-flex; align-items: center; line-height: 0; }
.site-header .custom-logo { max-height: 2.75rem; width: auto; height: auto; }

/* ── テーブル ── */
.ac-table td, .ac-table th {
  padding: 0.85rem 1rem;
  text-align: center;
  border-bottom: 1px solid rgba(19, 44, 77, 0.08);
}
.ac-table th { font-weight: 700; font-size: 0.8125rem; }
.ac-table tr:last-child td, .ac-table tr:last-child th { border-bottom: none; }

/* ── FAQ ── */
details summary::-webkit-details-marker { display: none; }
details summary { list-style: none; }

.ac-faq {
  border: 1px solid rgba(19, 44, 77, 0.1);
  background: #fff;
}
.ac-faq details { border-bottom: 1px solid rgba(19, 44, 77, 0.08); }
.ac-faq details:last-child { border-bottom: none; }
.ac-faq summary { padding: 1.125rem 1.25rem; transition: background 0.15s; }
.ac-faq summary:hover { background: var(--paper); }
.ac-faq details[open] summary { background: rgba(232, 122, 89, 0.04); }

/* ── CTA帯 ── */
.ac-cta {
  position: relative;
  overflow: hidden;
  background: linear-gradient(165deg, var(--navy-deep) 0%, #040a14 55%, var(--navy-deep) 100%);
}
.ac-cta::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 80% 20%, rgba(232, 122, 89, 0.15) 0%, transparent 55%);
  pointer-events: none;
}

/* ── スクロール表示 ── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
.fade-up.is-visible { opacity: 1; transform: translateY(0); }

.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.16s; }
.delay-3 { transition-delay: 0.24s; }

/* ── ヒーロー入場 ── */
@keyframes ac-rise {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-enter-1 { animation: ac-rise 0.8s var(--ease) 0.05s both; }
.hero-enter-2 { animation: ac-rise 0.8s var(--ease) 0.18s both; }
.hero-enter-3 { animation: ac-rise 0.8s var(--ease) 0.3s both; }
.hero-enter-4 { animation: ac-rise 0.8s var(--ease) 0.42s both; }

/* ── フッター ── */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.85);
}
.site-footer .custom-logo { max-height: 2.25rem; width: auto; height: auto; }

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .fade-up { opacity: 1; transform: none; }
}
