/* ═══════════════════════════════════════════════════════════
   Pie Systems Japan — Recruit Site  |  Shared Styles
   Theme: Navy (#1B2D5E) · Crimson (#D61852) · Teal (#18D6BC)
   ═══════════════════════════════════════════════════════════ */

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

/* ─── Brand Tokens ────────────────────────────────────────── */
:root {
  /* Colors */
  --accent:      #D61852;
  --accent-lt:   #FDE8EF;
  --accent-dk:   #A8123F;
  --teal:        #18D6BC;
  --teal-lt:     #E5FAF7;
  --ink:         #1B2D5E;   /* Navy (旧: #1C1F23) */
  --ink-dark:    #0F1A38;   /* footer用 深めのネイビー */
  --ink-2:       #4A5568;
  --ink-3:       #8A9BB8;
  --bg:          #F4F6FA;   /* 少し青みがかった白 */
  --surface:     #FFFFFF;
  --border:      #DDE3EE;

  /* Typography */
  --font-jp:  'Noto Sans JP', sans-serif;
  --font-en:  'Inter', sans-serif;

  /* Radii */
  --radius:    12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(27,45,94,.07);
  --shadow-md: 0 8px 32px rgba(27,45,94,.10);
  --shadow-lg: 0 20px 60px rgba(27,45,94,.14);
}

/* ─── Base ────────────────────────────────────────────────── */
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-jp);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a  { color: inherit; }

h1, h2, h3, h4 {
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.4px;
}

/* ─── Nav ─────────────────────────────────────────────────── */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px;
  height: 68px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.6px;
  text-decoration: none;
  color: var(--ink);
  display: flex; align-items: center; gap: 2px;
}
.nav-logo .dot { color: var(--accent); }

.nav-links {
  display: flex; align-items: center; gap: 28px;
  list-style: none;
}
.nav-links a {
  font-size: 14px; font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  transition: color .18s;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--accent); font-weight: 700; }

.nav-btn {
  background: var(--accent);
  color: #fff !important;
  padding: 9px 20px;
  border-radius: 8px;
  font-weight: 700 !important;
  font-size: 13px !important;
  transition: opacity .2s !important;
}
.nav-btn:hover { opacity: .85; }

/* ─── Section Base ────────────────────────────────────────── */
section { padding: 112px 48px; }
.inner  { max-width: 1100px; margin: 0 auto; }

.section-label {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(28px, 3.5vw, 44px);
  margin-bottom: 16px;
}
.section-lead {
  font-size: 17px;
  color: var(--ink-2);
  max-width: 540px;
}

/* ─── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 15px; font-weight: 700;
  text-decoration: none;
  transition: opacity .2s, transform .18s;
  white-space: nowrap;
}
.btn:hover { opacity: .88; transform: translateY(-1px); }

.btn-primary  { background: var(--accent); color: #fff; }
.btn-teal     { background: var(--teal);   color: #fff; }
.btn-outline  {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--ink-2); }
.btn-white    { background: #fff; color: var(--ink); }
.btn-ghost    {
  background: transparent;
  color: rgba(255,255,255,.8);
  border: 1.5px solid rgba(255,255,255,.3);
}
.btn-ghost:hover { border-color: rgba(255,255,255,.7); background: rgba(255,255,255,.08); }

.btn-lg { padding: 16px 36px; font-size: 16px; }
.btn-sm { padding: 10px 20px; font-size: 13px; }

/* ─── Cards ───────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform .25s, box-shadow .25s;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* ─── Photo Placeholder ───────────────────────────────────── */
.ph-photo {
  background: linear-gradient(135deg, #DCE5F5 0%, #C8D6ED 100%);
  border: 1.5px dashed #A8BEDD;
  border-radius: var(--radius-lg);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 10px; color: #8A9BB8;
  text-align: center;
  position: relative; overflow: hidden;
  user-select: none;
  /* グリッド内で高さを埋める */
  min-height: 160px;
}
.ph-photo::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent 0px, transparent 18px,
    rgba(255,255,255,0.45) 18px, rgba(255,255,255,0.45) 19px
  );
}
.ph-photo-inner {
  position: relative; z-index: 1;
  display: flex; flex-direction: column;
  align-items: center; gap: 8px;
}
.ph-photo-icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,.7);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}
.ph-photo-label {
  font-size: 12px; font-weight: 600; color: #5A7095;
  line-height: 1.4;
}
.ph-photo-size {
  font-size: 11px; color: #8A9BB8; font-family: var(--font-en);
}

/* ダークセクション用プレースホルダー */
.ph-photo.ph-dark {
  background: linear-gradient(135deg, rgba(255,255,255,0.07) 0%, rgba(255,255,255,0.03) 100%);
  border: 1.5px dashed rgba(255,255,255,0.2);
}
.ph-photo.ph-dark::before {
  background: repeating-linear-gradient(
    -45deg,
    transparent 0px, transparent 18px,
    rgba(255,255,255,0.04) 18px, rgba(255,255,255,0.04) 19px
  );
}
.ph-photo.ph-dark .ph-photo-icon { background: rgba(255,255,255,.1); }
.ph-photo.ph-dark .ph-photo-label { color: rgba(255,255,255,.5); }
.ph-photo.ph-dark .ph-photo-size  { color: rgba(255,255,255,.3); }

/* 実際の写真が入ったとき（クラス切り替え用） */
.ph-photo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

/* ─── Photo Grid ──────────────────────────────────────────── */
.photo-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.photo-strip-wide {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 12px;
  align-items: stretch;
}
.photo-mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 200px 200px;
  gap: 10px;
}
.photo-mosaic > .ph-photo,
.photo-mosaic > div {
  min-height: 0; /* グリッド内でオーバーフロー防止 */
}
.photo-mosaic .ph-photo:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

/* ─── FAQ Accordion ───────────────────────────────────────── */
.faq-list { display: flex; flex-direction: column; gap: 2px; }

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s;
}
.faq-item[open] { border-color: var(--accent); }

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 28px;
  font-size: 15px; font-weight: 600;
  color: var(--ink);
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; font-size: 22px; font-weight: 300;
  color: var(--accent); flex-shrink: 0;
  transition: transform .25s; line-height: 1;
}
.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-body {
  padding: 0 28px 24px;
  font-size: 14px; line-height: 1.85; color: var(--ink-2);
  border-top: 1px solid var(--border); padding-top: 20px;
}

/* ─── Reveal animation ────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ─── Footer ──────────────────────────────────────────────── */
.site-footer {
  background: var(--ink-dark);
  padding: 40px 48px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.site-footer p { font-size: 12px; color: rgba(255,255,255,.3); }
.footer-links  { display: flex; gap: 24px; }
.footer-links a {
  font-size: 12px; color: rgba(255,255,255,.4);
  text-decoration: none; transition: color .2s;
}
.footer-links a:hover { color: rgba(255,255,255,.75); }

/* ─── Utility ─────────────────────────────────────────────── */
.text-accent { color: var(--accent); }
.text-teal   { color: var(--teal); }
.text-muted  { color: var(--ink-2); }

.tag {
  display: inline-block;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--ink-2);
  font-size: 12px; font-weight: 500;
  padding: 5px 12px; border-radius: 100px;
}

/* Bar chart primitives */
.bar-track {
  height: 10px; background: var(--border);
  border-radius: 100px; overflow: hidden;
}
.bar-fill {
  height: 100%; width: 0;
  background: linear-gradient(90deg, var(--accent), #E8527A);
  border-radius: 100px;
  transition: width 1.2s cubic-bezier(.16,1,.3,1);
}
.bar-fill.teal { background: linear-gradient(90deg, var(--teal), #5EE8D8); }

/* ─── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
  section { padding: 72px 24px; }
  .site-nav {
    padding: 10px 20px;
    height: auto;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0;
  }
  .nav-logo { padding: 4px 0; }
  .nav-links {
    display: flex;
    gap: 0 16px;
    padding: 6px 0 4px;
    width: 100%;
  }
  .nav-links a { font-size: 12px; }
  .site-footer { padding: 32px 24px; }
  .photo-strip       { grid-template-columns: 1fr; }
  .photo-strip-wide  { grid-template-columns: 1fr; }
  .photo-mosaic      { grid-template-columns: repeat(2,1fr); grid-template-rows: auto; }
  .photo-mosaic .ph-photo:first-child { grid-column: span 2; grid-row: span 1; }
}
