/* =========================================
   TAKE Design Portfolio — style.css
   Redesign: Light / Sharp / Professional
   ========================================= */

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

:root {
  /* Colors - Light Theme */
  --bg-main: #FAFAFA;        /* クリーンなオフホワイト */
  --bg-card: #FFFFFF;        /* カードの背景 */
  --bg-hover: #F1F5F9;
  --text-main: #0F172A;      /* 濃いスレートグレー */
  --text-sub: #64748B;       /* サブテキスト（グレー） */
  --accent: #2563EB;         /* シャープなブルー */
  --accent-hover: #1D4ED8;
  --border: #E2E8F0;
  --border-strong: #CBD5E1;
  
  /* Fonts */
  --font-en: 'Inter', sans-serif;
  --font-ja: 'Noto Sans JP', sans-serif;
  
  /* Utils */
  --radius: 8px;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-en), var(--font-ja);
  line-height: 1.7;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 40px; }

/* =========================================
   TYPOGRAPHY & TITLES
   ========================================= */
.section-eyebrow, .hero-eyebrow {
  font-family: var(--font-en); font-size: 0.75rem;
  font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-en);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600; line-height: 1.2;
  margin-bottom: 48px;
  letter-spacing: -0.02em;
}

/* =========================================
   HERO
   ========================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
}
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: 60% center;
}
.hero-bg-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0.1) 100%);
}

.hero-inner { position: relative; z-index: 1; width: 100%; padding-top: 0; }

.hero-text { max-width: 680px; }
.hero-title {
  font-family: var(--font-ja);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700; line-height: 1.25;
  letter-spacing: -0.02em; margin-bottom: 24px;
}
.hero-sub {
  font-family: var(--font-en); font-size: clamp(0.9rem, 2vw, 1.1rem);
  color: var(--accent); letter-spacing: 0.1em;
  margin-bottom: 32px; font-weight: 600;
}
.hero-desc {
  font-family: var(--font-ja); font-size: 1rem;
  line-height: 2; color: var(--text-main); font-weight: 500;
  max-width: 580px; margin-bottom: 48px;
}
.hero-desc strong {
  color: var(--accent); font-weight: 700;
}

/* =========================================
   VALUE (できること)
   ========================================= */
.value-section { padding: 120px 0; background: var(--bg-card); }
.value-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.value-card {
  background: var(--bg-main);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 32px;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.value-card:hover {
  transform: translateY(-4px); border-color: var(--accent);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.05);
}
.value-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--accent); font-family: var(--font-en); font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px; font-size: 1.1rem;
}
.value-title {
  font-family: var(--font-ja); font-size: 1.1rem;
  font-weight: 600; margin-bottom: 16px;
}
.value-desc {
  font-family: var(--font-ja); font-size: 0.85rem;
  line-height: 1.8; color: var(--text-sub);
}

/* =========================================
   WORKS (CASE STUDIES)
   ========================================= */
.works-section { padding: 120px 0; }
.cat-nav {
  display: flex; gap: 16px; margin-bottom: 48px;
  overflow-x: auto; padding-bottom: 8px;
}
.cat-btn {
  background: none; border: 1px solid var(--border);
  color: var(--text-sub); padding: 8px 20px;
  border-radius: 100px; cursor: pointer;
  font-family: var(--font-en); font-size: 0.8rem; font-weight: 500;
  transition: all 0.25s; flex-shrink: 0;
}
.cat-btn:hover { color: var(--accent); border-color: var(--accent); }
.cat-btn.active {
  background: var(--text-main); color: #fff;
  border-color: var(--text-main);
}

.works-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
}
.work-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden; cursor: pointer;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.work-card:hover { 
  border-color: var(--border-strong); 
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.05);
  transform: translateY(-4px);
}
.work-card.hidden { display: none; }

/* 一時的に画像だけをまとめて非表示にする 
.cs-images,
.work-img-wrap,
.lightbox-gallery {
  display: none !important;
}
*/

.work-img-wrap {
  aspect-ratio: 16/10;
  background: #F1F5F9;
  overflow: hidden;
}
.work-img-wrap img {
  width: 100%; height: 100%; object-fit: cover; object-position: top center;
  transition: transform 0.5s var(--ease);
}
.work-card:hover .work-img-wrap img { transform: scale(1.03); }

.work-info { padding: 24px; }
.work-cat {
  font-family: var(--font-en); font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.1em; color: var(--accent);
  display: block; margin-bottom: 8px; text-transform: uppercase;
}
.work-title {
  font-family: var(--font-ja); font-size: 1rem;
  font-weight: 600; line-height: 1.4;
}

/* =========================================
   CAREER & SKILLS
   ========================================= */
.career-section { padding: 120px 0; background: var(--bg-card); }
.career-grid { display: grid; grid-template-columns: 280px 1fr; gap: 64px; align-items: start; }

.profile-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.profile-img-wrap {
  border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 3/4; background: var(--bg-hover);
}
.profile-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.profile-name {
  font-family: var(--font-ja);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  text-align: center;
  line-height: 1.4;
}
.profile-name span {
  display: block;
  margin-top: 8px;
  font-family: var(--font-en);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-sub);
}

.career-story p {
  font-family: var(--font-ja); font-size: 0.95rem;
  line-height: 2.2; color: var(--text-main); margin-bottom: 24px;
}
.career-story p strong { font-weight: 700; color: var(--accent); }

.skills-wrap { display: flex; flex-direction: column; gap: 32px; margin-top: 40px; }
.skills-group h3 {
  font-family: var(--font-ja); font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.05em; color: var(--text-sub); margin-bottom: 16px;
}
.skills-list { display: flex; flex-wrap: wrap; gap: 10px; }
.skills-list span {
  padding: 8px 16px; background: var(--bg-main);
  border: 1px solid var(--border); border-radius: 100px;
  font-family: var(--font-en); font-size: 0.8rem; font-weight: 500; color: var(--text-main);
}

/* =========================================
   CONTACT
   ========================================= */
.contact-section { padding: 120px 0; text-align: center; }
.contact-links {
  display: flex; flex-direction: column; align-items: center; gap: 24px;
  margin-top: 40px;
}
.contact-link {
  font-family: var(--font-en); font-size: 1.5rem; font-weight: 300;
  color: var(--text-main); display: inline-flex; align-items: center; gap: 12px;
  border-bottom: 1px solid transparent; padding-bottom: 4px;
  transition: border-color 0.3s, color 0.3s;
}
.contact-link:hover { color: var(--accent); border-color: var(--accent); }

/* =========================================
   FOOTER
   ========================================= */
footer {
  padding: 40px 0; border-top: 1px solid var(--border);
  text-align: center; background: var(--bg-card);
}
.copyright {
  font-family: var(--font-en); font-size: 0.75rem; color: var(--text-sub);
}

/* =========================================
   LIGHTBOX (ケーススタディ詳細表示用)
   ========================================= */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(15, 23, 42, 0.95); /* モーダル背景はあえて暗くして没入感を */
  display: flex; opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
.lightbox.active { opacity: 1; pointer-events: auto; }

.lightbox-close {
  position: absolute; top: 24px; right: 32px;
  background: none; border: none; font-size: 1.5rem;
  color: #94A3B8; cursor: pointer; z-index: 10;
  transition: color 0.3s;
}
.lightbox-close:hover { color: #FFFFFF; }

.lightbox-inner {
  display: flex; width: 100%; max-width: 1200px;
  margin: 0 auto; padding: 60px 40px; gap: 60px;
  overflow-y: auto;
}

/* 左側：テキストエリア（モーダル内は白文字ベース） */
.lightbox-info {
  flex: 1; display: flex; flex-direction: column; color: #F8FAFC;
}
.lb-cat {
  font-family: var(--font-en); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em;
  color: #60A5FA; margin-bottom: 12px; text-transform: uppercase;
}
.lb-title {
  font-family: var(--font-ja); font-size: 1.8rem; font-weight: 600;
  margin-bottom: 40px; line-height: 1.4; color: #FFFFFF;
}

/* ケーススタディ詳細のスタイル */
.cs-content h4 {
  font-family: var(--font-ja); font-size: 0.95rem; font-weight: 600;
  color: #FFFFFF; margin-bottom: 12px;
  padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,0.15);
}
.cs-content p {
  font-family: var(--font-ja); font-size: 0.85rem; line-height: 1.9;
  color: #CBD5E1; margin-bottom: 32px;
}

/* 右側：画像エリア */
.lightbox-gallery {
  flex: 1; display: flex; flex-direction: column; gap: 24px;
}
.lightbox-gallery img {
  width: 100%; border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* =========================================
   SCROLL REVEAL
   ========================================= */
.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 992px) {
  .value-grid { grid-template-columns: 1fr; }
  .works-grid { grid-template-columns: repeat(2, 1fr); }
  .career-grid { grid-template-columns: 1fr; gap: 48px; }
  .profile-img-wrap { max-width: 300px; margin: 0 auto; }
  .lightbox-inner { flex-direction: column; gap: 40px; }
}
@media (max-width: 640px) {
  .container { padding: 0 24px; }
  .works-grid { grid-template-columns: 1fr; }
  .lightbox-inner { padding: 60px 24px; }
  .hero-title { font-size: 2.2rem; }
}
