/* ========================================
   さりぃ 応募用ポートフォリオ（foriio構造）
   雰囲気は営業用サイトから継承（パステル紫）
   ======================================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #faf8fc;
  --bg-white: #ffffff;
  --bg-purple: #f3eef9;
  --text: #2d2535;
  --text-muted: #6b6078;
  --accent: #7b5ea7;
  --accent-hover: #6a4f94;
  --accent-light: #efe8f7;
  --border: #e8e0f0;
  --shadow: rgba(123, 94, 167, 0.08);
  --shadow-md: rgba(123, 94, 167, 0.14);
  --radius: 16px;
  --font-en: 'Inter', sans-serif;
  --font-jp: 'Zen Maru Gothic', 'Noto Sans JP', sans-serif;
}

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

a { color: inherit; text-decoration: none; }

/* ========================================
   Profile Header
   ======================================== */
.profile {
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 32px 8px;
}

.profile-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.profile-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--bg-white);
  box-shadow: 0 4px 20px var(--shadow-md);
}

.profile-meta {
  flex: 1;
  min-width: 160px;
}

.profile-name {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
}

.profile-location {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

.btn-contact {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 50px;
  box-shadow: 0 4px 16px var(--shadow-md);
  transition: background 0.3s, transform 0.3s;
}

.btn-contact:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

.profile-bio {
  margin-top: 20px;
  font-size: 14px;
  color: var(--text-muted);
  max-width: 720px;
}

/* ========================================
   Works Grid（foriio構造）
   ======================================== */
.works {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 32px 72px;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.work-tile {
  display: block;
  cursor: pointer;
  transition: transform 0.3s;
}

.work-tile:hover {
  transform: translateY(-4px);
}

.work-tile:hover .work-thumb {
  box-shadow: 0 14px 36px var(--shadow-md);
}

.work-thumb {
  aspect-ratio: 16 / 9;
  background: var(--bg-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 20px var(--shadow);
  transition: box-shadow 0.4s;
  margin-bottom: 10px;
  position: relative;
}

.work-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.work-thumb::after {
  content: '▶';
  position: absolute;
  right: 10px;
  bottom: 8px;
  font-size: 11px;
  color: #fff;
  background: rgba(45, 37, 53, 0.55);
  border-radius: 50px;
  padding: 3px 10px;
}

.work-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  padding: 0 4px;
  line-height: 1.5;
}

.work-thumb-portrait .thumb-blur {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(14px) brightness(1.05);
  transform: scale(1.15);
}

.work-thumb-portrait .thumb-fit {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(1.25);
}

/* ========================================
   Lightbox（その場再生）
   ======================================== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(45, 37, 53, 0.72);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 24px;
}

.lightbox.open {
  display: flex;
}

.lightbox-body {
  position: relative;
  width: min(880px, 94vw);
  background: transparent;
  border-radius: var(--radius);
}

.lightbox-body.is-portrait {
  width: min(400px, 92vw);
}

.lightbox-frame {
  width: 100%;
  border: none;
  border-radius: var(--radius);
  background: #000;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
  display: block;
}

.lightbox-body:not(.is-portrait) .lightbox-frame {
  aspect-ratio: 16 / 9;
}

.lightbox-body.is-portrait .lightbox-frame {
  aspect-ratio: 9 / 16;
  max-height: 86vh;
}

.lightbox-close {
  position: absolute;
  top: -44px;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 26px;
  cursor: pointer;
  font-family: var(--font-en);
  padding: 4px 8px;
}

/* ========================================
   Footer
   ======================================== */
.footer {
  border-top: 1px solid var(--border);
  padding: 24px 32px;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 900px) {
  .works-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
}

@media (max-width: 520px) {
  .profile {
    padding: 40px 20px 4px;
  }

  .profile-inner {
    gap: 16px;
  }

  .profile-avatar {
    width: 72px;
    height: 72px;
  }

  .profile-name {
    font-size: 22px;
  }

  .works {
    padding: 24px 20px 56px;
  }
}
